+ Reply to Thread
Results 1 to 8 of 8

Converting ranges to a single score

  1. #1
    Registered User
    Join Date
    09-17-2010
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Question Converting ranges to a single score

    Hello,
    Here's my problem. I have a list of numbers like this:

    101
    233
    411
    290
    ect.

    and want to convert it so everything from 100-150 becomes "1," 151-200 becomes "2," and so on. What is a simple command/formula to do this? Thank you tremendously for your help!!

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Converting ranges to a single score

    everything from 100-150 becomes "1," 151-200 becomes "2," and so on.
    There is no "so on"; 1 covers a range of 50, 2 covers a range of 49.
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,058

    Re: Converting ranges to a single score

    Try this: =MAX(1,INT((A1-1)/50-1))
    Last edited by zbor; 09-17-2010 at 04:11 PM.
    Never use Merged Cells in Excel

  4. #4
    Registered User
    Join Date
    09-17-2010
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Converting ranges to a single score

    Quote Originally Posted by shg View Post
    There is no "so on"; 1 covers a range of 50, 2 covers a range of 49.
    I am converting kids' scores from a standardized test into intervals that denote anywhere from below average to advanced proficiency. The ranges are not all equal (that is, the range that from the lowest scoring "advanced" kid to the highest scoring "advanced" kid is smaller than the lowest scoring "basic" kid to the highest scoring "basic"). This is what I meant by "so on," I'm sorry this was difficult to understand for you, hopefully you can wrap your head around the fact that not all ranges are equal for my means.

    10 points for your attempted nitpicking though.

  5. #5
    Registered User
    Join Date
    09-17-2010
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    3

    Re: Converting ranges to a single score

    Quote Originally Posted by zbor View Post
    Try this: =MAX(1,INT((A1-1)/50-1))
    This was just an example of my scores and ranges, it's actually more like:

    100-139
    140-210
    211-280

    There are about 15 ranges and these aren't even accurate for my needs, but you get the idea. Not all ranges are equal, I know there's some way to include the ranges in a formula and then then make the output equal a specific number without the use of quotients and products. I really do appreciate the help though.

  6. #6
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,058

    Re: Converting ranges to a single score

    If they are not equal can you please write all of them (exactly)

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Converting ranges to a single score

    =match(a1, {100,140,211})

  8. #8
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    Microsoft 365
    Posts
    14,729

    Re: Converting ranges to a single score

    Probably the most robust approach is to create a table containing the lower bound of each range, say in A2:A16, so in your example A2 will be 100, A3 will be 140, A4 will be 211 etc.

    Then in the adjacent column, B2:B16, list the values you want returned for each range, e.g. B2 = 1, B3 = 2 etc.

    Now you can name the table A2:B16 MyTable and use formula

    =LOOKUP(A1,MyTable)
    Audere est facere

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1