+ Reply to Thread
Results 1 to 6 of 6

Multiple logic tests in if(

  1. #1
    Forum Contributor
    Join Date
    05-29-2013
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    143

    Multiple logic tests in if(

    Hoping someone can help me out with this as I really have no idea where to start. I'm trying to make a score system so that:

    Scores greater than 100 = 1 point
    Scores between 80 and 99 = 2 points
    Scores less than 80 = 3 points

    Attached is what I have so far. I don't know how to nest if functions. I hope I explained it well enough. I'm thinking I might create a separate worksheet with a grid of possible outcomes, but I know there's an easier way than that.

    Any help would be greatly appreciated!!
    Attached Files Attached Files

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

    Re: Multiple logic tests in if(

    =LOOKUP(a1,{0,80,100},{3,2,1})
    i take it you mean 100 and greater?
    you need to define you boundaries what would 99.5 get?
    "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

  3. #3
    Forum Contributor
    Join Date
    05-29-2013
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    143

    Re: Multiple logic tests in if(

    I tried
    =LOOKUP(B12,{<80,>=80 &<99, >100},{3,2,1}) but it didn't work.

    Martin, 99.5 would get a 1... I would round up. I'm going to change it so that there are only 2 decimal places.

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

    Re: Multiple logic tests in if(

    round how?
    round() or roundup()
    99 -- 99 -- 99
    99.1 -- 99 -- 100
    99.2 -- 99 -- 100
    99.3 -- 99 -- 100
    99.4 -- 99 -- 100
    99.5 -- 100 -- 100
    99.6 -- 100 -- 100
    99.7 -- 100 -- 100
    99.8 -- 100 -- 100
    99.9 -- 100 -- 100
    100 -- 100 -- 100
    Last edited by martindwilson; 02-10-2014 at 10:12 PM.

  5. #5
    Forum Contributor
    Join Date
    05-29-2013
    Location
    Chicago, IL
    MS-Off Ver
    Excel 2010
    Posts
    143

    Re: Multiple logic tests in if(

    I'm unfamiliar with round() and roundup(), but I suppose anything .5 and above would be rounded up. Is that enough? Sorry, I know I'm being pretty useless right now - long day.

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

    Re: Multiple logic tests in if(

    ok that would be round
    so round(a1,0)
    =LOOKUP(ROUND(A1,0),{0,80,100},{3,2,1}) would give these results see attached
    but you can just change the lookup boundary to to include all those over 99.5
    Attached Files Attached Files
    Last edited by martindwilson; 02-10-2014 at 10:32 PM.

+ 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. [SOLVED] If function Multiple logic tests each with its own outcome. How do I write it.
    By markDuffy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-16-2013, 04:29 PM
  2. Countif Using Multiple Logic Tests
    By Carl in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-04-2006, 02:15 AM
  3. Two Logic tests in an IF Statement
    By timmadge in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-07-2006, 11:15 AM
  4. Multiple tests for a condition
    By Matilda in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-06-2006, 07:35 AM
  5. [SOLVED] Average a group of tests for grade, some tests not taken by all.
    By Scafidel in forum Excel General
    Replies: 4
    Last Post: 08-18-2005, 11:05 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