+ Reply to Thread
Results 1 to 3 of 3

Different Ranges Different Answers

  1. #1
    Registered User
    Join Date
    09-09-2014
    Location
    London
    MS-Off Ver
    2013
    Posts
    10

    Different Ranges Different Answers

    Hi All

    I need to give different answers depending of what range of number appear.

    Everything between 0-999 must return a 5
    1000-1499 must return a 4
    1500-1999 must return a 3
    2000-2499 must return a 2
    2500-2999 must return a 1
    +3000 must return a 0

    Can anyone help?

    Thanks

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Different Ranges Different Answers

    Perhaps.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If posting code please use code tags, see here.

  3. #3
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Different Ranges Different Answers

    =LOOKUP(A1,{0,1000,1500,2000,2500,3000},{5,4,3,2,1,0})
    if you dont want 5 if a1 is blank then
    =IF(A1="","",LOOKUP(A1,{0,1000,1500,2000,2500,3000},{5,4,3,2,1,0}))
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Ranges = Answers
    By jmstansell in forum Excel General
    Replies: 6
    Last Post: 06-04-2014, 05:11 PM
  2. [SOLVED] IF OR different answers
    By bubs in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-21-2013, 10:19 AM
  3. Replies: 3
    Last Post: 06-22-2012, 07:16 AM
  4. [SOLVED] Count the number of matches in a row of one word answers with a row of correct answers
    By flammer4 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-03-2012, 01:17 PM
  5. Answers YES and NO
    By Michelle66 in forum Excel General
    Replies: 3
    Last Post: 12-17-2011, 10:00 PM

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