Lookup number value in cell with multiple values and ranges

audiobrew

New Member
Joined
Apr 20, 2010
Messages
2
I am trying to take a column of values that represent grades at particular schools. The possible values are P, K, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12. I want to take the values in each cell and move them to separate columns of P, K, 1, etc. However, the values listed in the cells vary, i.e., one cell would be "6-12", but another might be "K-12", still another will have "6,8-12", another would be "K-5,7-9", etc.

I have tried manually changing the ranges into values with CTRL+H, e.g., "6-12" becomes "6,7,8,9,10,11,12". But, it is getting really tedious, especially since I will still need to perform a text-to-columns function. And, that will not be a clean process. Either way, I cannot get lookup function to deal with multiple values in one cell.

I need a lookup function (or something), that can decipher between multiple values in one cell separated by a comma, and also to be able to lookup given values that exist in numeric ranges (e.g., 8 exists in 6-12), and I need to be able to identify that a "K" exists wherever there is a range that begins with "P".

Any ideas for a clean process?
 

Excel Facts

Which came first: VisiCalc or Lotus 1-2-3?
Dan Bricklin and Bob Frankston debuted VisiCalc in 1979 as a Visible Calculator. Lotus 1-2-3 debuted in the early 1980's, from Mitch Kapor.
What, no takers?

I am thinking I need a real guru here, or someone that really knows it is not possible.

Anyone? Anyone? Bueller?
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,917
Members
452,366
Latest member
TePunaBloke

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