Help with if and vlookup

cmkayak

New Member
Joined
Sep 14, 2011
Messages
2
I am having problems getting the correct lookup value based on the date with the following forumula:

=if)c7>=10/1/2011,(vlookup(d8,fy2012drgwts,2)),(vlookup(d8,fy2011drgwts,2)))

If I enter a date < 10/1/2011 I get the fy2012drgts instead of fy2011drgwts. What am I doing wrong?
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Excel reads 10/1/2011 as 10 divided by 1 divided by 2011, which equates to 0.00497265. Therefore, try entering the date value as follows...

"10/1/2011"+0

or

DATE(2011,10,1)
 
Upvote 0
I am having problems getting the correct lookup value based on the date with the following forumula:

=if)c7>=10/1/2011,(vlookup(d8,fy2012drgwts,2)),(vlookup(d8,fy2011drgwts,2)))

If I enter a date < 10/1/2011 I get the fy2012drgts instead of fy2011drgwts. What am I doing wrong?
Use a cell to hold the date:

A1 = 10/1/2011

Then:

=IF(C7>=A1,VLOOKUP(D8,fy2012drgwts,2),VLOOKUP(D8,fy2011drgwts,2))
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,719
Members
452,939
Latest member
WCrawford

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top