Vlookup/ Lookup Value

Kris_inv2013

New Member
Joined
Oct 22, 2012
Messages
10
Hi there,
I wonder if someone could help me with this one..
I have A1 column with the following values:
E2
E3
E5
E7
E10
(E is a radiator type, the numbers after reflect the surface in sq feet.)
In column D I have removed "E" so that I only have the numbers shown in the cells (MID or REPLACE do the job very well for me.)

Now in Column E I would like to run a VLOOKUP function to look up a value from column J in a table associated to the surface. The surfce area is the first column in the table and is in ascending order.

Unfortunatelly the VLOOKUP function is only working if the "lookup value" in D1 is a number manally input. It does not take the value returned by the REPLACE/MID functions.

I was gona do it all in one but it is not working for some reason.
=VLOOKUP(MID(A2,2,LEN(A2)),J6:R42,4,FALSE)


Any help would be much apprecated.

Thanks,
Kris
ABCDEGHIJ
E2=MID(A2,2,LEN(A2))=VLOOKUP(D2,J6:R42,4,FALSE)23471
E33135981
E55253492
E77278172
E10104109364

<TBODY>
</TBODY>
 

Excel Facts

Select a hidden cell
Somehide hide payroll data in column G? Press F5. Type G1. Enter. Look in formula bar while you arrow down through G.
Hi

You need to ensure you are comparing like with like which means you need a numeric value from your mid rather than a textual one. Try:

=VLOOKUP(MID(A2,2,LEN(A2))+0,J6:R42,4,FALSE)

The +0 coerces the MID return to a number
 
Upvote 0

Forum statistics

Threads
1,214,644
Messages
6,120,709
Members
448,983
Latest member
Joaquim_Baptista

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