Changing row reference +1 in HLOOKUP when date changes

cmclux

New Member
Joined
Mar 24, 2011
Messages
12
I want to do a HLOOKUP on a specific value in a sheet and reference to a specific row based on the date. Once a month has passed I want the row to increase by one so it takes the value for the following month.
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
You can use the Month of that date as your row reference..

=HLOOKUP(A1,B1:F13,MONTH(A2)+1,0)

A2 is your date.
 
Upvote 0
The sheet has the following rows

Name Value


The HLOOKUP function is in the value column and searches another worksheet for the value of the specific name, in a specific row.

This is the formula I am using =HLOOKUP(A3,'SOURCE SHEET',17,FALSE) where A3 references to the name column.

The value in the source sheet changes on a monthly basis and has to be updated in the sheet described above. Right now I want it to show the value from the source sheet for the name for 30 April 2011, but next month it will have to show the value of 31 May 2011.

The old value does not have to be kept in the destination sheet.

Thank you for your help.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,575
Messages
6,179,637
Members
452,934
Latest member
Jdsonne31

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