+ Reply to Thread
Results 1 to 6 of 6

Add IF 0 RETURN BLANK to existing formula

  1. #1
    Registered User
    Join Date
    01-24-2020
    Location
    Melbourne, Australia
    MS-Off Ver
    Microsoft Excel for Office 354
    Posts
    4

    Add IF 0 RETURN BLANK to existing formula

    Hi, i don't have much experience with formula's but want my field to be blank if 0. how would i add this to the following formula?

    =IF($B3<>"",SUMIF('SKU-2020'!$A$2:$A$1000,'CUTTING SHEET'!$B3,'SKU-2020'!$P$2:P1000)*$G3,"")

    Would appreciate any help!
    Last edited by Shell-in-Melb; 01-24-2020 at 09:11 AM.

  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
    80,288

    Re: Add IF 0 RETURN BLANK to existing formula

    Welcome to the forum.

    Like this, perhaps:

    =IF($B3=0,0,IF($B3<>"",SUMIF('SKU-2020'!$A$2:$A$1000,'CUTTING SHEET'!$B3,'SKU-2020'!$P$2:P1000)*$G3,""))
    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 Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,496

    Re: Add IF 0 RETURN BLANK to existing formula

    how about =IF($B3=0,"",IF($B3<>"",SUMIF('SKU-2020'!$A$2:$A$1000,'CUTTING SHEET'!$B3,'SKU-2020'!$P$2:P1000)*$G3,""))
    because I'm not sure of which part you are referring to, this might be what you want...
    OR, =IF(AND($B3<>"",SUMIF('SKU-2020'!$A$2:$A$1000,'CUTTING SHEET'!$B3,'SKU-2020'!$P$2:P1000)*$G3=0),"",IF($B3<>"",SUMIF('SKU-2020'!$A$2:$A$1000,'CUTTING SHEET'!$B3,'SKU-2020'!$P$2:P1000)*$G3,""))
    untested of course w/o workbook.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  4. #4
    Administrator 6StringJazzer's Avatar
    Join Date
    01-27-2010
    Location
    Tysons Corner, VA, USA
    MS-Off Ver
    MS365 Family 64-bit
    Posts
    24,673

    Re: Add IF 0 RETURN BLANK to existing formula

    Wrap an IF around the existing formula. Unfortunately you need to repeat it. I have moved the check for B3 outside your original formula so as not to have to repeat that part.

    =IF($B3="","",IF(SUMIF('SKU-2020'!$A$2:$A$1000,'CUTTING SHEET'!$B3,'SKU-2020'!$P$2:P1000)*$G3=0,"",SUMIF('SKU-2020'!$A$2:$A$1000,'CUTTING SHEET'!$B3,'SKU-2020'!$P$2:P1000)*$G3))
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  5. #5
    Registered User
    Join Date
    01-24-2020
    Location
    Melbourne, Australia
    MS-Off Ver
    Microsoft Excel for Office 354
    Posts
    4

    Re: Add IF 0 RETURN BLANK to existing formula

    Great, thank you this works! Appreciate your help and all responses

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

    Re: Add IF 0 RETURN BLANK to existing formula

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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] Add to existing match index formula a formula that will leave cells blank
    By Hedy in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 08-15-2017, 02:34 PM
  2. [SOLVED] amending existing formula to return blank when there is no data
    By chumster in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 06-30-2017, 03:30 AM
  3. [SOLVED] add if blank cell then return "" to existing formula
    By cristylk in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 04-05-2017, 09:58 AM
  4. [SOLVED] Get existing Formula to return blank instead of 0 please
    By fruit&veg in forum Excel General
    Replies: 4
    Last Post: 01-22-2016, 07:53 AM
  5. [SOLVED] Return Row title from existing Max formula
    By Iain Clarendon in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 12-16-2015, 04:46 PM
  6. Adding an additional IF function to my existing formula to return a blank
    By xmann21 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-29-2015, 09:52 AM
  7. [SOLVED] How to return zero if a cell is blank with existing forumula
    By nsmjc in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-28-2014, 06:34 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