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.

1/1/201912345
1/8/20191020304050
1/15/2019100200300400500

<colgroup><col><col span="4"><col></colgroup><tbody>
</tbody>

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

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
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,214,792
Messages
6,121,612
Members
449,039
Latest member
Mbone Mathonsi

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