+ Reply to Thread
Results 1 to 4 of 4

Return blank if range is blank

  1. #1
    Forum Contributor
    Join Date
    05-29-2017
    Location
    UK
    MS-Off Ver
    Pro Plus 2016
    Posts
    301

    Return blank if range is blank

    Hi guys, little help with a formula please...

    I currently have:

    =IFERROR(SUM((IF(B6="y",5,0)),(IF(C6="y",5,0)),D6,E6*2,F6*3,G6*4,H6*6,I6*7,J6*10),"")

    which does everything I need it to do APART from:

    - IF the range is BLANK, return blank, not 0.

    What do we do this formula to return blank? Without arrays pls.

    Attaching a file too.

    Thanking in advance!

    https://www.excelforum.com/attachmen...1&d=1618398015
    Attached Files Attached Files

  2. #2
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Return blank if range is blank

    Please try

    =IFERROR(1/(1/SUM(COUNTIFS(B6:C6,"y")*5,SUMPRODUCT(D6:J6,{1,2,3,4,6,7,10}))),"")

    or
    =SUM(COUNTIFS(B6:C6,"y")*5,SUMPRODUCT(D6:J6,{1,2,3,4,6,7,10}))

    and custom format #
    Attached Files Attached Files

  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,499

    Re: Return blank if range is blank

    I just put this simple if sum in front and that took care of it for me...
    =IF(SUM(B6:J6)=0,"",IFERROR(SUM((IF(B6="y",5,0)),(IF(C6="y",5,0)),D6,E6*2,F6*3,G6*4,H6*6,I6*7,J6*10),""))
    hope that helps.
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  4. #4
    Forum Contributor
    Join Date
    05-29-2017
    Location
    UK
    MS-Off Ver
    Pro Plus 2016
    Posts
    301

    Re: Return blank if range is blank

    Amazing, thank you so much guys! Greatly appreciate it.

+ 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. Replies: 2
    Last Post: 08-13-2018, 02:30 AM
  2. [SOLVED] If two cells are blank then return blank, else vlookup cell with populated data
    By Jason G in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 03-06-2017, 10:20 AM
  3. [SOLVED] Cells in a range are all not blank, return maximum value (date), If 1 blank return 0
    By Matt1998 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-19-2016, 11:14 AM
  4. Return first non blank cell (cells have formulas that return blank)
    By BG1983 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-05-2016, 04:06 PM
  5. [SOLVED] Go to right thru a range and skip all blank cells, return value of first non-blank in rang
    By mysticmoron109 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-16-2015, 03:47 PM
  6. Count range for Text and return a Blank if Blank Range
    By mjfox52610 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-06-2013, 10:04 AM
  7. Sumif to return a blank if sum range is blank
    By [email protected] in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-25-2006, 05:30 AM

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