looking in to the 9th and 10th number to give back an output data

Tartesos

Board Regular
Joined
Feb 3, 2011
Messages
109
Im using this formula:

=LOOKUP(REPT("z",255), CHOOSE({1,2,3,4,5,6,7,8,9},"",
VLOOKUP(MID(B424,9,1)+0,configuration!$L$3:$M$22,2,0),
VLOOKUP(MID(B424,9,1),configuration!$L$3:$M$22,2,0)))

What this formulas does for me is to look into the 9th value of a number and depending on that it will give back an input data to the correct cell.
This work great and there is no problem with it.
The problem is that now I need to look the 8th and the 9th to determinate that output data. Ther is any way I can change this formula to do just that? To look a number and depending on the 8th and 9th character it will give you an output ... can this be done ?? Any help will be great.

Thanks
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).
8th and 9th or 9th and 10th?

For the former try

=LOOKUP(REPT("z",255), CHOOSE({1,2,3},"",
VLOOKUP(MID(B424,8,2)+0,configuration!$L$3:$M$22,2,0),
VLOOKUP(MID(B424,8,2),configuration!$L$3:$M$22,2,0)))

If it's the latter then change the two 8s to 9s
 
Upvote 0
Thanks, that works, but I also need the formula to look only on the 8th number. Can I put two formulas on one cell? One will look for the 8th and the other for the 8th and 9th.
Is this possible?

Regards,
 
Upvote 0

Forum statistics

Threads
1,224,586
Messages
6,179,728
Members
452,939
Latest member
WCrawford

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