VLOOKUP with nested IF statements

SWHarmon79

New Member
Joined
Aug 18, 2018
Messages
13
Office Version
  1. 365
Platform
  1. Windows
I need to nest a few IF statements into a VLOOKUP and I am having issue figuring out how to get this right. I have looked through a number of related post but haven't found one describing my situation.

This is my current formula =IFERROR(VLOOKUP(A7,ElliotsPricingUpdate,6,0),"")

The table that this is looking at is a material price update sheet. It uses the industry standard E,C,M for 1, 100 and 1000. I need to nest IF statements that will take the E,C or M from column 6 and return either 1, 100 or 1000.

Any help would be much appreciated. Thanks
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Hi,

If I understand correctly, this should help:

=IFERROR(LOOKUP(VLOOKUP(A7,ElliotsPricingUpdate,6,0),{"C","E","M"},{100,1,1000}),"")

Note the Lookup Vector needs to be in Alpha order.
 
Upvote 0
Thanks!!! That worked perfectly. I was definitely going about that in the wrong way.
 
Upvote 0
You're welcome, welcome to the forum.

A Nested IF would also work, but it's going to get a little lengthy..

Also, if the list of values (i.e. E, C, M) may get longer/larger, you can use a table reference instead of "hard-coding" in the formula.
 
Upvote 0

Forum statistics

Threads
1,223,888
Messages
6,175,213
Members
452,618
Latest member
Tam84

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