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

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
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,214,424
Messages
6,119,400
Members
448,893
Latest member
AtariBaby

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