+ Reply to Thread
Results 1 to 6 of 6

Expanding the formula to include extra if statements

  1. #1
    Registered User
    Join Date
    03-08-2017
    Location
    portsmouth
    MS-Off Ver
    2007
    Posts
    16

    Expanding the formula to include extra if statements

    Hi

    I have the following formula

    =IF(AND(C3=0,G3=0),"",IF(OR(C3>0,G3>0),1)) (located in cell H3)

    This works perfectly well but I would like to change it to

    IF C3 = 0 and G3 = 0 then H3 = ""
    IF C3 > 0 and G3 = 0 then H3 = .5
    IF C3 = 0 and G3 > 0 then H3 = .5
    IF C3 > 0 and G3 > 0 then H3 = 1

    Is this possible , I have spent ages but to no avail

    Thanks

    Ian

  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. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,750

    Re: Expanding the formula to include extra if statements

    Try this:

    =IF(OR(AND(C3>0,G3=0),AND(C3=0,G3>0)),0.5,IF(AND(C3>0,G3>0),1,"")
    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
    Registered User
    Join Date
    03-08-2017
    Location
    portsmouth
    MS-Off Ver
    2007
    Posts
    16

    Re: Expanding the formula to include extra if statements

    Much appreciated AliGW

    I needed to put an extra ) at the end

    Ian

  4. #4
    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. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,750

    Re: Expanding the formula to include extra if statements

    Quite possibly - I'm on my iPad in the garden!!!

    Glad to have helped.

  5. #5
    Registered User
    Join Date
    03-08-2017
    Location
    portsmouth
    MS-Off Ver
    2007
    Posts
    16

    Re: Expanding the formula to include extra if statements

    Hope it is hot enough for you

  6. #6
    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. 2406 (Windows 11 23H2 64-bit)
    Posts
    82,750

    Re: Expanding the formula to include extra if statements

    It's bloomin' gorgeous - 23 in the shade and clear, blue skies as far as the eye can see!!! ☀☀☀

+ 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. Expanding COUNTIFS function to add extra criteria
    By stevenpughuk in forum Excel Formulas & Functions
    Replies: 14
    Last Post: 10-25-2016, 11:29 AM
  2. [SOLVED] How can I to retitle my case VBA to include extra text information???
    By bralew in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-12-2016, 08:01 AM
  3. Array to include extra column
    By Kmartin83 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-14-2015, 04:00 AM
  4. Need to modify formula to include extra condition
    By LeithKaouas in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-18-2014, 08:35 AM
  5. Deleting same items even if I include extra rows
    By amartino44 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-02-2013, 01:50 PM
  6. [SOLVED] Expanding a formula to include multiple worksheets/tabs
    By Raidon in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-12-2012, 12:46 PM
  7. Expanding IFCOUNT formula to include other variable
    By icets in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 06-26-2011, 11:36 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