extract data based on todays date

isriam

New Member
Joined
Apr 6, 2016
Messages
5
I'm looking to make a sheet that has columns A as dates 7 days apart, and columns B:F have data. Flow is left to right, row A1:F1. I'd like to then select the row based on a today through the date in A1.

[TABLE="width: 399"]
<colgroup><col><col span="4"><col></colgroup><tbody>[TR]
[TD="align: right"]1/1/2019[/TD]
[TD="align: right"]1[/TD]
[TD="align: right"]2[/TD]
[TD="align: right"]3[/TD]
[TD="align: right"]4[/TD]
[TD="align: right"]5[/TD]
[/TR]
[TR]
[TD="align: right"]1/8/2019[/TD]
[TD="align: right"]10[/TD]
[TD="align: right"]20[/TD]
[TD="align: right"]30[/TD]
[TD="align: right"]40[/TD]
[TD="align: right"]50[/TD]
[/TR]
[TR]
[TD="align: right"]1/15/2019[/TD]
[TD="align: right"]100[/TD]
[TD="align: right"]200[/TD]
[TD="align: right"]300[/TD]
[TD="align: right"]400[/TD]
[TD="align: right"]500[/TD]
[/TR]
</tbody>[/TABLE]

So if today is 1/5/2019, output in row 5 what appears in row 1. This will be done in separate sheets, so sheet1 has the output, and sheets2-10 are the input data. Tried VLOOKUP and it doesn't work well for the variable date being anytime >= A1 but <A2.
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
Do you mean like this?

=VLOOKUP(TODAY(),$A$1:$F$3,COLUMNS($A$1:A1),1)

You can replace TODAY() with a cell reference if you want.
 
Upvote 0
oh thank, you, i got it to work! i had to apply it across the row and not expect it to pull the entire row. so copy paste the formula from A6:F6.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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