Vlookup by System date

msarfaraz

New Member
Joined
Oct 18, 2012
Messages
46
I have two sheets (A is ) history and (B is) forecast, I am doing Vlookup on sheet C, both sheets (A and B) column A is date and B is value, what I am looking on sheet C the vlookup by today date, for example, if today is 30 October, my vlookup bring all value from Sheet A till 29th October and from 30th October will bring from sheet C. any help
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
Does this do what you want?

=IF(A1 < TODAY(),VLOOKUP(A1,A!A:B,2,FALSE),VLOOKUP(A1,B!A:B,2,FALSE))
<today(),vlookup(a1,a!a:b,2,false),vlookup(a1,b!a:b,2,false))[ html]
<today(),vlookup(a1,a!a:b,2,false),vlookup(a1,b!a:b,2,false))<today(),vlookup(a1,a!a:b,2,false),vlookup(a1,b!a:b,2,false))[ code]<today(),vlookup(a1,a!a:b,2,false),vlookup(a1,b!a:b,2,false))[="" code]<="" html=""></today(),vlookup(a1,a!a:b,2,false),vlookup(a1,b!a:b,2,false))<today(),vlookup(a1,a!a:b,2,false),vlookup(a1,b!a:b,2,false))[></today(),vlookup(a1,a!a:b,2,false),vlookup(a1,b!a:b,2,false))[>
(Remove the spaces around the < - Forum seems to think it's HTML no matter what I do :-/ )
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,175
Members
453,021
Latest member
Justyna P

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