FIND

Duritz

Board Regular
Joined
Apr 28, 2005
Messages
226
Not sure if FIND is the right way to do this, but say I have a list of of things not sorted into order (and won't be sorted), like so -

A B
3 A
1 G
7 D
5 E
9 P
6 L
5 W


In cell C1 is a variable, and I want D1 to FIND that variable in the list in column A, and return the value corresponding in Column B.... but the list in A can't be sorted and won't be in order.... any ideas?
 

Excel Facts

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.

cmhoz

Active Member
Joined
Aug 20, 2006
Messages
268
A VLOOKUP will do exactly what you're looking for.

= VLOOKUP(what you want to find, where you want to find it, column to return, FALSE)

The FALSE on the end makes the vlookup keep searching until it finds EXACTLY what you're looking for, regardless of the order of the list. If it doesn't find anything it will return an error (#N/A).

Just be sure that 'what you want to find' is in the first column of the range you put in as 'where you want to find it'.
 

Duritz

Board Regular
Joined
Apr 28, 2005
Messages
226
Good thanks cmhoz.... I guess if I didn't just use "lookup" all the time I'd know that....
 

Forum statistics

Threads
1,136,263
Messages
5,674,710
Members
419,521
Latest member
Jasonnie

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
Top