Need formula to parse data

djl0525

Well-known Member
Joined
Dec 11, 2004
Messages
1,240
Setup
Sheet1!H5:AA5 contains alphanumeric entries like X3, N2, E1, G4, H2, AL1, B1, etc. The alpha part of the entries is unique and can be one or two characters. The numeric part is always one digit (1-9).

Goal
I need to get the numbers that were entered in random order from Sheet1 to a specific order on Sheet2 (without the alphas).

Example 1
In Sheet2!H5, I need a formula that will look at Sheet1!$H5:$AA5 and if any cell in that range begins with the letter "G", return the number that comes after G, which is 4. If there is no G, return blank.

Example 2
In another cell, the formula will be edited to look for entries that begin with "AL", for example, and return the number after AL, which is 1. If there is no AL in the range, return blank.

Note: Each cell on Sheet2 will look for a different alpha on Sheet1 and return the value after the alpha.

Any assistance will be greatly appreciated!
-- DJ
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney

Forum statistics

Threads
1,215,051
Messages
6,122,871
Members
449,097
Latest member
dbomb1414

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