Nested IF Statement in VLOOKUP To Accomplish This?

censo

Board Regular
Joined
Dec 25, 2015
Messages
161
Office Version
  1. 2013
Platform
  1. Windows
Hello,

I have a function that examines the first three characters of a string and then executes a VLOOKUP that returns the appropriate value. That works fine.

The challenge I'm having is including in that same formula an additional check that examines characters 5-7, or the value "FRT". The positioning will always be constant and fixed if hardcoded in, or if being searched for, only that sequence of "FRT" will ever be present so I know I would not receive false positives.

What would said function look like, do I need to nest an IF statement where it searches for "FRT", if not, run the above function I already have in place?

Thanks!



Excel 2013 32 bit
ABC
1SKUCURRENT OUTCOMEDESIRED OUTCOME
2WAL-12345644
3WAL-FRT-12345610
Sheet1
Cell Formulas
RangeFormula
B2=VLOOKUP(LEFT(A2,3),HANDLING,2,0)
Named Ranges
NameRefers ToCells
HANDLING=Sheet2!$A$2:$B$3




Excel 2013 32 bit
AB
1CODERESULT
2WAL4
3FRT10
Sheet2
 

Excel Facts

Add Bullets to Range
Select range. Press Ctrl+1. On Number tab, choose Custom. Type Alt+7 then space then @ sign (using 7 on numeric keypad)

Forum statistics

Threads
1,215,572
Messages
6,125,605
Members
449,238
Latest member
wcbyers

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