R
Rigel
I have a workbook that contains multiple worksheets that
are my database.The database is updated every weekday
(using VBA code)when the user presses a button. Each entry
in the database is stamped with the date the button is
pressed(TODAY).The data is collected on a "master"
worksheet,each column is a weekday with the data below.See
below.....
(wed) (thur) (fri)
B C D E
1 1/21/2004 1/22/2004 1/23/2004
2 xa DATA DATA =VLOOKUP($E$1,INDIRECT(EV6),5,FALSE)
3 yb DATA DATA
4 zc DATA DATA
(cells marked DATA are also VLOOKUP formulas)
The problem I'm having is with the Friday column.There is
a possibility that the database will not be updated on
friday, it might not be updated till Sat. or Sun. Since
the database is stamped with the date it is updated my
VLOOKUP formula will not work if this occures on SAT or
SUN.I know this is wrong but in the example above the
formula would look like this...
VLOOKUP(1/23/2004,1/24/2004,1/25/2004,INDIRECT
(EV6),5,FALSE)
(I think I might need to use MATCH but not sure)
I hope I have made myself clear.
Thanks in advance,
Rigel
are my database.The database is updated every weekday
(using VBA code)when the user presses a button. Each entry
in the database is stamped with the date the button is
pressed(TODAY).The data is collected on a "master"
worksheet,each column is a weekday with the data below.See
below.....
(wed) (thur) (fri)
B C D E
1 1/21/2004 1/22/2004 1/23/2004
2 xa DATA DATA =VLOOKUP($E$1,INDIRECT(EV6),5,FALSE)
3 yb DATA DATA
4 zc DATA DATA
(cells marked DATA are also VLOOKUP formulas)
The problem I'm having is with the Friday column.There is
a possibility that the database will not be updated on
friday, it might not be updated till Sat. or Sun. Since
the database is stamped with the date it is updated my
VLOOKUP formula will not work if this occures on SAT or
SUN.I know this is wrong but in the example above the
formula would look like this...
VLOOKUP(1/23/2004,1/24/2004,1/25/2004,INDIRECT
(EV6),5,FALSE)
(I think I might need to use MATCH but not sure)
I hope I have made myself clear.
Thanks in advance,
Rigel