+ Reply to Thread
Results 1 to 12 of 12

struggling to get 2 IF formulas to work in one cell

Hybrid View

  1. #1
    Registered User
    Join Date
    11-07-2014
    Location
    manchester, england
    MS-Off Ver
    2013
    Posts
    16

    struggling to get 2 IF formulas to work in one cell

    Hi

    I hope someone can point me in the right direction.

    I want a single cell to populate with "Yes" using data from other cells but I cant get it to work.

    What I am hoping in one cell is a YES if:

    R5+R6=12 then show YES
    &
    R8=4 then show YES

    If no data is present in R5,R6,R8 or they show as 0 then leave blank

    Any help would be gratefully received
    Thank you

  2. #2
    Forum Contributor
    Join Date
    01-30-2013
    Location
    Wales
    MS-Off Ver
    Excel 2013
    Posts
    231

    Re: struggling to get 2 IF formulas to work in one cell

    How about
    =IF(R5+R6+R8=0,"",IF(R5+R6=12,"YES",IF(R8=4,"YES","YOU HAVEN'T SPECIFIED WHAT YOU WANT TO HAPPEN")))
    Click * below if this answer helped

  3. #3
    Registered User
    Join Date
    11-07-2014
    Location
    manchester, england
    MS-Off Ver
    2013
    Posts
    16

    Re: struggling to get 2 IF formulas to work in one cell

    many thanks chris, I think this is where I cam getting confused with what to specify in the formula.
    I am not sure to be honest.

    I am wanting the formula to show a YES if a trigger level is met, the trigger level is two stage, 12 days (taken from cells R5+R6), or 4 occasions (taken from cell R8)

  4. #4
    Forum Contributor
    Join Date
    01-30-2013
    Location
    Wales
    MS-Off Ver
    Excel 2013
    Posts
    231

    Re: struggling to get 2 IF formulas to work in one cell

    Have you tried the formula?

    If a trigger level is not met what do you want to show?

    Actually you could probably get by with =IF(R5+R6=12,"YES",IF(R8=4,"YES","YOU HAVEN'T SPECIFIED WHAT YOU WANT TO HAPPEN"))

    Chris
    Last edited by Chris 53; 11-07-2014 at 11:06 AM. Reason: amended formula

  5. #5
    Registered User
    Join Date
    11-07-2014
    Location
    manchester, england
    MS-Off Ver
    2013
    Posts
    16

    Re: struggling to get 2 IF formulas to work in one cell

    I would need it to be just blank
    Craig

  6. #6
    Forum Contributor
    Join Date
    01-30-2013
    Location
    Wales
    MS-Off Ver
    Excel 2013
    Posts
    231

    Re: struggling to get 2 IF formulas to work in one cell

    =if(r5+r6=12,"yes",if(r8=4,"yes",""))

  7. #7
    Valued Forum Contributor
    Join Date
    08-04-2011
    Location
    UK
    MS-Off Ver
    Excel 2021
    Posts
    346

    Re: struggling to get 2 IF formulas to work in one cell

    is that what you wanted;

    =OR(R5+R6=12,R8=4) ?

    and IF(OR(R5+R6=12,R8=4), "Yes","") will give you yes or blank

  8. #8
    Registered User
    Join Date
    11-07-2014
    Location
    manchester, england
    MS-Off Ver
    2013
    Posts
    16

    Re: struggling to get 2 IF formulas to work in one cell

    many thanks Chris and AlanY, I have tried both

    =if(r5+r6=12,"yes",if(r8=4,"yes",""))

    IF(OR(R5+R6=12,R8=4), "Yes","")

    and they work, I am spoilt for choice now which to use.

    Thanks again

  9. #9
    Registered User
    Join Date
    08-10-2011
    Location
    TX
    MS-Off Ver
    Excel 2013
    Posts
    8

    Re: struggling to get 2 IF formulas to work in one cell

    I'm leaning towards AlanY but seems like an AND vs OR

    =IF(AND(R5+R6=12,R8=4), "YES", "")

  10. #10
    Valued Forum Contributor
    Join Date
    08-04-2011
    Location
    UK
    MS-Off Ver
    Excel 2021
    Posts
    346

    Re: struggling to get 2 IF formulas to work in one cell

    Quote Originally Posted by TxCPA View Post
    I'm leaning towards AlanY but seems like an AND vs OR

    =IF(AND(R5+R6=12,R8=4), "YES", "")
    but that wouldn't work for OP's criteria

  11. #11
    Forum Contributor
    Join Date
    01-30-2013
    Location
    Wales
    MS-Off Ver
    Excel 2013
    Posts
    231

    Re: struggling to get 2 IF formulas to work in one cell

    There are always at least 3 ways of doing anything in excel. Just pick the one that you are most comfortable with, and the one you will understand when you come back to it in future months.

  12. #12
    Forum Contributor
    Join Date
    01-30-2013
    Location
    Wales
    MS-Off Ver
    Excel 2013
    Posts
    231

    Re: struggling to get 2 IF formulas to work in one cell

    TXCPA Post #3 suggests it's an OR not an AND.

+ 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. Struggling with using IF and IF(AND) formulas
    By jbw1975 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-27-2014, 05:56 PM
  2. How come my formulas work in one cell but not the other?
    By aledger in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-01-2012, 01:18 PM
  3. Formulas in a cell don't work as formulas.
    By Lyle McElhaney in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-01-2007, 05:04 AM
  4. getting two formulas to work together in same cell
    By Crasher in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 10-11-2006, 09:10 AM
  5. text and numbers same cell and formulas still work (like lotus)
    By rmoore in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-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