+ Reply to Thread
Results 1 to 5 of 5

Scale

  1. #1
    Registered User
    Join Date
    05-28-2009
    Location
    Lisbon
    MS-Off Ver
    Excel 2003
    Posts
    3

    Scale

    hello! greetings from Portugal. I need to create a formula that according to the value in a cell will turn the values in a scale.

    this will be the scale

    if the number in cell b15 is between 1 and 3 the output value is 1, if the number in cell b15 is between 3 and 4,5 the output value is 2, if the number in cell b15 is between 4.5 and 5 the output value is 3, if the number in cell b15 is between 5 and 5,5 the output value is 4, an finally if the number in cell b15 is bigger than 5.5 the output value will be 5.

    i did this formula

    =IF(OR(B15=0);"";IF(OR(B15<=3);1;(IF(OR(3<B15;B15<=4,5);2;IF(OR(4,5<B15;B15<=5);3;IF(OR(5<B15;B15<=5,5);4;IF(OR(B15>5,5);5)))))))

    the problem is if the value more than 3 i allway get the return value of 2
    (

  2. #2
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444

    Re: Scale

    Hi,

    Try this

    =INDEX({1;2;3;4;5};MATCH(B15;{1;3;4,5;5;5,5;9.99E+307};1))

    you can alter the array in the match function to move the cut off points as required.
    Rule 1: Never merge cells
    Rule 2: See rule 1

    "Tomorrow I'm going to be famous. All I need is a tennis racket and a hat".

  3. #3
    Registered User
    Join Date
    05-28-2009
    Location
    Lisbon
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Scale

    sorry didn't help. can you see if there's any mistake in the formula i posted. it seens ok.

  4. #4
    Forum Expert sweep's Avatar
    Join Date
    04-03-2007
    Location
    Great Sankey, Warrington, UK
    MS-Off Ver
    2003 / 2007 / 2010 / 2016 / 365
    Posts
    3,444

    Re: Scale

    You have OR statements where they're not needed, which won't help, and some OR statements where there should be AND statements.

  5. #5
    Registered User
    Join Date
    05-28-2009
    Location
    Lisbon
    MS-Off Ver
    Excel 2003
    Posts
    3

    Re: Scale

    could you try to correct the formula please?

+ 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