vlookup and return from same row

velohead

Board Regular
Joined
Aug 22, 2007
Messages
212
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

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
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,223,885
Messages
6,175,187
Members
452,616
Latest member
intern444

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