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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

Forum statistics

Threads
1,223,911
Messages
6,175,337
Members
452,637
Latest member
Ezio2866

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