+ Reply to Thread
Results 1 to 5 of 5

PROBLEM: IF statement with conditions (multiple cells)

  1. #1
    Registered User
    Join Date
    02-22-2015
    Location
    atlanta,ga
    MS-Off Ver
    2013
    Posts
    8

    PROBLEM: IF statement with conditions (multiple cells)

    I am trying to write a single statement in a single cell that looks at two cells for thresholds.

    if cell 1 >= 150 AND cell 2 >=150 then "soft cap"
    if cell 1 >= 167 AND cell 2 >=100 then "soft cap"
    if cell 1 >= 200 AND cell 2 >=150 then "hard cap"
    if cell 1 >= 233 AND cell 2 >=100 then "hard cap"

    Appreciate any insights/help in solving this.

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: PROBLEM: IF statement with conditions (multiple cells)

    Try

    =IF(OR(AND(A1>=233,B1>=100),AND(A1>=200,B1>=150)),"hard",IF(OR(AND(A1>=167,B1>=100),AND(A1>=150,B1>=150)),"soft"))&" cap"
    where A1 is cell 1
    B1 is cell 2
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    02-22-2015
    Location
    atlanta,ga
    MS-Off Ver
    2013
    Posts
    8

    Re: PROBLEM: IF statement with conditions (multiple cells)

    This worked perfectly - THANK YOU! one additional question: when the statement is false right now it shows "false cap"....I would like that to just be blank. Where do I insert the "" for the false statement?

  4. #4
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: PROBLEM: IF statement with conditions (multiple cells)

    try
    =IF(OR(AND(A1>=233,B1>=100),AND(A1>=200,B1>=150)),"hard cap",IF(OR(AND(A1>=167,B1>=100),AND(A1>=150,B1>=150)),"soft cap",""))
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  5. #5
    Registered User
    Join Date
    02-22-2015
    Location
    atlanta,ga
    MS-Off Ver
    2013
    Posts
    8

    Re: PROBLEM: IF statement with conditions (multiple cells)

    Bingo! Thank you nflsales!

+ 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 statement with multiple conditions
    By mike703 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-12-2012, 11:44 AM
  2. If Statement with multiple conditions
    By Cdoyle in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 02-01-2011, 10:58 AM
  3. IF statement with multiple conditions
    By nicko54 in forum Excel General
    Replies: 5
    Last Post: 01-22-2009, 09:18 AM
  4. [SOLVED] If statement using multiple conditions
    By SCOOBYDOO in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-06-2005, 01:05 AM
  5. If statement using multiple conditions
    By SCOOBYDOO in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-05-2005, 11:05 PM

Tags for this Thread

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