Using "Left" function nested within a "Match" nested within an "Index" function

JACOBB9900

New Member
Joined
Apr 8, 2019
Messages
38
Hello,

I can't seem to figure out where to place the "Left" function in the below formula. Cell "EA7" contains a number followed by three letters. These letters will only always be one of the four. "Eng", "Out", "RWK", or "Cust". Not all the numbers in Column EA will be followed by these letters. My objective is for my formula to read the numbers only, hence the use of the "Left" function, and return the correct information to cell "R7" where the formula is located.The numbers in column "EA" are a mix of two digits and three digits. I would like to post a link to an example file but don't know how to do so. See formula below.

=IFNA(INDEX('Workbook Sheet1'!$C$3:$C$9000,MATCH(1,($D7='Workbook Sheet1'!$A$3:$A$9892)*($EA7='Workbook Sheet1'!$B$3:$B$9791),0)),"")

I understand this is not a lot to go off of but any help is appreciated and I am more than happy to provide any information needed.

Thank you.
 

Excel Facts

Does the VLOOKUP table have to be sorted?
No! when you are using an exact match, the VLOOKUP table can be in any order. Best-selling items at the top is actually the best.
Upvote 0
How about this?

Code:
=IF(ISNUMBER(0+MID(EA7,3,1)),LEFT(EA7,3),LEFT(EA7,2))
 
Upvote 0
Reading your post, I think that the suggestion above will suit what you need, but to enhance it a bit further if needed, this will extract the numeric part of any cell containing one of the 4 text strings regardless of the number of digits.
Code:
=LOOKUP(1E+100,VALUE(SUBSTITUTE(EA7,T(IF({1},{"Eng";"Out";"RWK";"Cust"})),"")))
 
Upvote 0

Forum statistics

Threads
1,223,896
Messages
6,175,264
Members
452,627
Latest member
KitkatToby

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