Nesting VLOOKUP within CONVERT function

TKfishes

New Member
Joined
Dec 29, 2016
Messages
2
Hello all,

I am trying to nest formulas within a CONVERT function to make it more user friendly. My formula is returning #N/A. Is it possible to do this without a macro? Ultimately A1 and B1 would contain drop down lists so a user could select the units they wish to convert between without having to modify a formula or use the syntax associated with the CONVERT formula.

A1 contains oz
B1 contains lbs
C1 contains 16


table 1:
UnitSyntax
oz"ozm"
lbs"lbm"

<tbody>
</tbody>



formula =convert(c1,vlookup(a1,table1,2,false),vlookup(b1,table1,2,false))
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
Welcome to the forum.

In your Table1, you must remove the double-quotes that surround the two items in column Syntax.
 
Upvote 0
Welcome to the forum.

In your Table1, you must remove the double-quotes that surround the two items in column Syntax.


That worked perfectly. Thanks for your help. I thought I had tried that but perhaps had an error elsewhere in conjunction.
 
Upvote 0

Forum statistics

Threads
1,203,681
Messages
6,056,710
Members
444,885
Latest member
Mark Prillman

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