omagoodness
Board Regular
- Joined
- Apr 17, 2016
- Messages
- 56
I need to lookup a table value based on a date in another cell (V7)
For example Column N has dates and Column P has a currency value in table tblCardTips. (table Columns indexes 1, 3 respectively)
In another cell, V7 there is a date.
I want the formula to match the date in V7 to the same date in the respective table column and then print the corresponding currency value from Amount column in Y7
The code I am using was working fine ut suddenly it returns a 0 even though the value of both dates is the same (43836 for the test date)
I'm a stumped student
For example Column N has dates and Column P has a currency value in table tblCardTips. (table Columns indexes 1, 3 respectively)
In another cell, V7 there is a date.
I want the formula to match the date in V7 to the same date in the respective table column and then print the corresponding currency value from Amount column in Y7
The code I am using was working fine ut suddenly it returns a 0 even though the value of both dates is the same (43836 for the test date)
VBA Code:
=IF(tblCardTips[@WeekEnd]=V7,tblCardTips[@Amount],0)