need help using offset and vlookup functions please

mrexcel57

Board Regular
Joined
Oct 30, 2004
Messages
51
I use Vlookup to get info from, e.g., B35 in a list B10:AR147
VLOOKUP("tom",distribut!$B$10:$AR$147,23,FALSE)

I want also to get info from cell B34 and B36
I used Hlookup but my list is random, has blank cells, not in order and no heading
I tried using
=OFFSET(VLOOKUP("tom",distribut!$B$10:$B$147,1,FALSE)),-1,0)
but did not work

 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK
Instead, try using MATCH to the find the index number of "tom" within the column or range.
Then use INDEX to find the actual Values in Cells (B34,B35,B36) using the index number-1, and +1.
 
Upvote 0
Would you kindly write the formulae using MATCH and INDEX please?

Based on your screen shot, and assuming your data runs from Row 2:500,
you could find the row within the data range that "tom" appears,
and then use that to find the values above and below it in Col C.

Excel Workbook
DE
1Match at which Row in Col C?34
2Value at Match Cell?tom
3Value above Match Cell?191
4Value below Match Cell?2008
Match-Index
 
Last edited:
Upvote 0
mrexcel57, Sending you a follow up, just in case you opened my post before I made some edits. Please read the revised post that shows the formula for Cell E1.
 
Upvote 0
You're welcome!

Just to clarify my poor description, Match returns "the relative position of an item in an array".

So, it's not actually returning the Row within the Worksheet, but rather the item number within the specified range. That's why Match returns 34 instead of 35 in my example.

Cheers. :)
 
Upvote 0

Forum statistics

Threads
1,224,550
Messages
6,179,462
Members
452,915
Latest member
hannnahheileen

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