So I'm having to convert production volume numbers into their case numbers, given a SKU# and it's reference for how many SKU's are in one case.

The problem is there are data mismatches I can do nothing about I.E. on one sheet it reads 11429

**FZ**or maybe 11428

**PAK1**and on the reference sheet it only reads 11429 or 11428.

I've created the following nested IF function

**=IF(FIND("FZ",A1),(LEFT(A1,FIND("FZ",A1)-1)),IF(FIND("PAK1",A1),LEFT(A1,FIND("FZ",A1)-1),"N/A"))**

Basically the logic is, If you find FZ in this cell, then look left 1 space back from where FZ is to return the correct value of 11429.

It works fine if the SKU has an FZ, it does not work if it has PAK1.

After evaluating the formula it apparently turns FZ into #VALUE! if it can't find that and ignores the rest of the if.

Is there a way to use an IFERROR maybe or something to have it proceed to looking for PAK1 if it can't find FZ?

After I fix that portion of the formula I'll be using this to divide the original number by the case number

**"VLOOKUP(A4,'Case #''s'!A:C,3,0))"**A:C is where the case numbers are housed, it's referring A4 for the SKU number to match up with the SKU number on the second list.

I need to remove the FZ or PAK1, so that I can reference the SKU's and divide by the case number in the vlookup.

If I'm over-complicating this, or it could possibly be solved with a macro please say so because I almost would rather use VBA at this point.

Any and all help is appreciated.