+ Reply to Thread
Results 1 to 3 of 3

If formula with three criteria struggling

  1. #1
    Forum Contributor
    Join Date
    12-18-2013
    Location
    Kings Lynn, England
    MS-Off Ver
    Excel 2019
    Posts
    234

    Exclamation If formula with three criteria struggling

    Hi all,
    Happy New Year all,
    I am struggling with something that should be really simple but not working.
    I want a formula that states simply:-
    If A1>0, Then "One", if B1>0 then "Two", If A1 and B1 are both greater than zero, then "One and Two"
    I have tried =IF(and(A1>0,B1>0,"One & Two",A1>0,"One",B1>0,"Two",)) which did not work. I have also tried =IF(A1>0,"One",IF(b1>0,"Two",IF(A1<0+B1<0,"One & Two",))). This will just show "one", but not change for either of the other criteria.

    Any help appreciated.

    Thanks,

  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. 2404 (Windows 11 22H2 64-bit)
    Posts
    79,369

    Re: If formula with three criteria struggling

    Try this:

    =IF(AND(A1>0,B1>0),"One & Two",IF(A1>0,"One",IF(B1>0,"Two","")))
    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 Contributor
    Join Date
    12-18-2013
    Location
    Kings Lynn, England
    MS-Off Ver
    Excel 2019
    Posts
    234

    Re: If formula with three criteria struggling

    Hi AliGW,
    thanks very much! That works fine.
    Thanks again.

+ 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 nested IF formula
    By Raz_M in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-27-2019, 04:28 AM
  2. Struggling with SumProduct and Max of 2 criteria
    By Tol47FF in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-08-2018, 10:29 PM
  3. [SOLVED] Struggling with excel formula
    By olegmcnoleg in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-13-2014, 06:37 AM
  4. [SOLVED] Struggling to build count/countif/countifs formula with various comparative criteria!
    By dropanddrive03 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-16-2014, 03:04 AM
  5. [SOLVED] Struggling with COUNTIFS formula - help!
    By Joey_997 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-03-2014, 10:54 AM
  6. Struggling. sum of number of rows which meet criteria across columns
    By tyseley in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-22-2013, 05:43 AM
  7. struggling with lastrow formula
    By skalaima in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 05-16-2013, 02: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