If N/A then look up first 3 digits of different cell and value from a table.

anyoder

New Member
Joined
Feb 10, 2009
Messages
3
ABCD
1Zip 54032
2License#N/A
3
4

<tbody>
</tbody>

<colgroup><col><col><col span="2"><col><col></colgroup><tbody>
</tbody>
I want a formula that only populates D2 if B2 is #N/A. Formula will look at the first three digits B1 and and look-up the corresponding state on a different table and return the state abbreviation into cell D2.

Suggestions are greatly appreciated.
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Something structured like:
Code:
=IF(ISNA(B2),VLOOKUP(LEFT(B1,3),...),"")
 
Upvote 0

Forum statistics

Threads
1,215,353
Messages
6,124,462
Members
449,163
Latest member
kshealy

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