+ Reply to Thread
Results 1 to 8 of 8

multiple if

  1. #1
    Registered User
    Join Date
    05-28-2014
    Posts
    11

    Angry multiple if

    Hi guys im struggling again

    how can you say the following:
    if any of the C17,18, E16, E17G16,G17,I16,I17 ARE 0-3 THEN 0, 4-20 THEN 1, 20+ THEN 2


    =+IF(OR(Summary!$C$17<=3,Summary!$C$18<=3,Summary!$E$16<=3,Summary!$E$17<=3,Summary!$G$16<=3,Summary!$G$17<=3,Summary!$I$16<=3,Summary!$I$17<=3),0,IF(OR(Summary!$C$17<=20,Summary!$C$18<=20,Summary!$E$16<=20,Summary!$E$17<=20,Summary!$G$16<=20,Summary!$G$17<=20,Summary!$I$16<=20,Summary!$I$17<=20),1,IF(OR(Summary!$C$17>=21,Summary!$C$18>=21,Summary!$E$16>=21,Summary!$E$17>=21,Summary!$G$16>=21,Summary!$G$17>=21,Summary!$I$16>=21,Summary!$G$17>=21),2,)))

    How do you say the same with and?
    thanks a lot

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2405 (Windows 11 23H2 64-bit)
    Posts
    81,426

    Re: multiple if

    Try using the LOOKUP or VLOOKUP function.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: multiple if

    You may try this Array Formula. Since this is an array formula so you need to confirm it with Ctrl+Shift+Enter instead of just Enter. (i.e. after placing the formula in the cell, hold down the Ctrl+Shift and then press Enter). When an array formula is entered correctly, you will notice in the formula bar that the formula is surrounded by the curly braces. And if you don't see the curly braces, press F2 when the cell containing the formula is selected and confirm it again with Ctrl+Shift+Enter.
    Please Login or Register  to view this content.
    Is this what you are trying to achieve?
    Regards
    sktneer


    Treat people the way you want to be treated. Talk to people the way you want to be talked to.
    Respect is earned NOT given.

  4. #4
    Registered User
    Join Date
    05-28-2014
    Posts
    11

    Re: multiple if

    Hi i dont thin array is my solution, vlookup doest work in this case because i have to set logic and not just look up data
    I need to say that if either of these fields (c17, c18, e17,e18, d17, d18 etc) are between 1-3 then give me a result as 0, if they are between 4-10 then give me a result of 1 etc

    Thanks

  5. #5
    Registered User
    Join Date
    05-28-2014
    Posts
    11

    Re: multiple if

    I will try this later today thank u

  6. #6
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: multiple if

    Your formula returns what you expect it to return. Then what do you want actually. The shortest version of this formula will be the following Array Formula.
    Please Login or Register  to view this content.
    It returns 0 if any of your target cells contain a value which is less than or equal to 3, returns 1 if any of your target cells contain a value less than or equal to 20 and returns 2 if any of your target cells contain a value which is greater than 20.

    This completely matches with your requirement. Is there something else you are trying to achieve?

  7. #7
    Registered User
    Join Date
    05-28-2014
    Posts
    11

    Lightbulb Re: multiple if

    Hi thanks that is what i need

  8. #8
    Forum Guru sktneer's Avatar
    Join Date
    04-30-2011
    Location
    Kanpur, India
    MS-Off Ver
    Office 365
    Posts
    9,649

    Re: multiple if

    You're welcome.
    If that takes care of your question, please mark your thread as solved by selecting Thread Tools (just above your first post) --> Mark thread as solved.
    Moreover you may also click on * (star) to Add Reputation to those who have put their time and efforts to help you in this forum. This is another way to say thanks to them.

+ 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. Replies: 20
    Last Post: 03-13-2013, 04:15 PM
  2. [SOLVED] Large spreadsheet; multiple scores on multiple dates for multiple students
    By MelindaCapri in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 11-16-2012, 06:03 PM
  3. Return Multiple Values with multiple rows & multiple columns
    By sachin parab in forum Excel General
    Replies: 2
    Last Post: 11-05-2012, 10:21 AM
  4. Replies: 5
    Last Post: 11-04-2010, 06:02 AM
  5. Multiple charts over multiple sets of data over multiple worksheets.
    By matrocka in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-12-2007, 10:01 AM

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