vlookup and return from same row

velohead

Board Regular
Joined
Aug 22, 2007
Messages
205
Hi All,


I just want to do a vlookup (albeit into one row) and return a value 3 cells to the right of the found value.



The long version….

Sheet ‘Report’ contains some dates, and I wish to vlookup (or equivalent) into sheet ‘Data’ row 1, find the date then return the value 3 cells to the right of the found date.

Sheet ‘Data’ row 1 is very wide and contains lots of dates, but the value I want to return is always 3 cells right of the date.

Hope this is clear.



I only really use vlookups, sumif, and sumifs.

I am not up-to-speed on offset, index, match etc which may give the answer.



Any ideas at all ?
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
Can you include a picture or table of what the data looks like to make it easier for someone to know the achievements you want further?
and ur Excel version ?
 
Upvote 0
try this

Book1
ABCDEFGHIJKLM
105/02/2024412345605/02/202478929/01/2024
229/01/20247
Sheet1
Cell Formulas
RangeFormula
B1:B2B1=OFFSET($A$1,0,MATCH(A1,$C$1:$M$1,0)-2,1,1)
 
Last edited:
Upvote 0
I suggest that you update your Account details (or click your user name at the top right of the forum) so helpers always know what Excel version(s) & platform(s) you are using as the best solution often varies by version. (Don’t forget to scroll down & ‘Save’)

See if this is the sort of thing you want.

velohead.xlsm
ABCDEFGHIJKLM
11/02/2024abc2/02/2024def3/03/2024ghi
Data


velohead.xlsm
AB
1Date3 right
22/02/2024f
31/02/2024c
Report
Cell Formulas
RangeFormula
B2:B3B2=INDEX(Data!$1:$1,MATCH(A2,Data!$1:$1,0)+3)
 
Upvote 0
Solution
try this

Book1
ABCDEFGHIJKLM
105/02/2024412345605/02/202478929/01/2024
229/01/20247
Sheet1
Cell Formulas
RangeFormula
B1:B2B1=OFFSET($A$1,0,MATCH(A1,$C$1:$M$1,0)-2,1,1)
my bad, mis-read the question to 3 to the left.
 
Upvote 0
Thank You Peter_SSs, the solution works perfectly. Like a dream in fact. This site is such a great resource.

Sorry for not stating excel version, I will do do in future.
 
Upvote 0
Thank You Peter_SSs, the solution works perfectly. Like a dream in fact. This site is such a great resource.
You're welcome. Thanks for the follow-up. :)

Sorry for not stating excel version, I will do do in future.
Instead of stating each time, why not include it in your account details (ie profile) as suggested above so that the information is always readily available to your helpers & you don't have to remember to state it for each new thread. Like this ..

1707199641337.png
 
Upvote 0

Forum statistics

Threads
1,215,071
Messages
6,122,963
Members
449,094
Latest member
Anshu121

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