VLOOKUP: When the lookup value is a formula...

brymer

New Member
Joined
Aug 23, 2006
Messages
21
I am trying to use VLOOKUP in my worksheet, but the value I am looking up in an array is drawn from another cell in the same worksheet. It keeps giving me "#N/A" because I am not typing the text I am searching within the VLOOKUP formula within the " ". I need VLOOKUP to reference the cell that contains another formula.

For example:

=VLOOKUP(A68,A111:B142,2,FALSE)

Since I am not physically typing "Arizona" in the lookup value, it is returning the #N/A.

Can someone point me to a solution here?
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
What's the formula in the other cell?
 
Upvote 0
It references a cell from a web query...so it is an "=CELL". But I can create a macro that copies it as a value only.
 
Upvote 0
If cell A68 *appears* to say 'Arizona', check to see if that is the actual content of the cell. [ Guessing, not. ]

=A68="Arizona"

returns TRUE or FALSE?

How about -

=TRIM(A68)="Arizona"
 
Upvote 0
The TRIM() worked perfectly and it helped to solve a lot of other issues I was having. THANK YOU VERY MUCH!
 
Upvote 0

Forum statistics

Threads
1,222,102
Messages
6,163,940
Members
451,866
Latest member
cradd64

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