+ Reply to Thread
Results 1 to 5 of 5

Omitting blank cells or just reading them as zero.

  1. #1
    Registered User
    Join Date
    01-13-2021
    Location
    England
    MS-Off Ver
    Excel
    Posts
    1

    Omitting blank cells or just reading them as zero.

    Good evening guys,

    So this works if all the cells have data, but if blank, I get a #N/A error.

    =SUMPRODUCT((H8:H11)*(L8:L11)*(G8:G11="SA450/60"))

    As data will be added during the month the table starts off fairly sparse so I'd like my formula to skip/ignore if left blank.

    Tried a few variants I've found online but no success.

    Thanks in advance.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (both in England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2507 (Windows 11 Home 24H2 64-bit)
    Posts
    91,786

    Re: Omitting blank cells or just reading them as zero.

    Welcome to the forum.

    Which version of Excel do you have? Please update your forum profile.

    There are instructions at the top of the page explaining how to attach your sample workbook.
    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. It's a universal courtesy.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    NB:
    as a Moderator, I never accept friendship requests.
    Forum Rules (updated August 2023): please read them here.

  3. #3
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365
    Posts
    3,187

    Re: Omitting blank cells or just reading them as zero.

    Hi,
    Fast answers need clear examples. Post a small Excel sheet (not a picture) showing realistic & representative sample data WITHOUT confidential information (10-20 rows, not thousands...) and some manually calculated results. Just before posting, scroll down to GO ADVANCED, click, and then scroll down to MANAGE ATTACHMENTS and click again. Now follow the instructions at the top of that screen.

  4. #4
    Forum Expert
    Join Date
    09-07-2014
    Location
    Israel
    MS-Off Ver
    office 365
    Posts
    3,187

    Re: Omitting blank cells or just reading them as zero.

    If I understand you correct - you just need to wrap your formula with an IFERROR function:
    =IFERROR(SUMPRODUCT((H8:H11)*(L8:L11)*(G8:G11="SA450/60")),0)
    This will return a 0

    =IFERROR(SUMPRODUCT((H8:H11)*(L8:L11)*(G8:G11="SA450/60")),"")

    This will return blank cell)

  5. #5
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,710

    Re: Omitting blank cells or just reading them as zero.

    It is not known which column will contain blank cells.
    If blank cells appear in Column H

    =SUMPRODUCT((H8:H11)*(H8:H11<>"")*(L8:L11)*(G8:G11="SA450/60"))

    If blank cells appear in Column H and L

    =SUMPRODUCT((H8:H11)*(H8:H11<>"")*(L8:L11)*(L8:L11<>"")*(G8:G11="SA450/60"))

    If blank cells appear in Column H , L and G

    =SUMPRODUCT((H8:H11)*(H8:H11<>"")*(L8:L11)*(L8:L11<>"")*(G8:G11="SA450/60")*(G8:G11<>""))
    Pl note
    Array formula should be confirmed with Ctrl+Shift+Enter keys together.
    If answere is satisfactory press * to add reputation.

+ 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. Omitting blank cells in a join/transpose function
    By anwaee2 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 11-19-2013, 03:55 AM
  2. Function returning cells containing text and omitting blank cells.
    By reszax in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-25-2013, 03:15 PM
  3. omitting blank cells
    By seanrigby in forum Excel General
    Replies: 3
    Last Post: 10-27-2009, 12:47 AM
  4. Omitting blank cells in an average fomula
    By fireguy7 in forum Excel General
    Replies: 1
    Last Post: 10-13-2009, 06:31 PM
  5. Linking data between sheets omitting the blank cells.
    By anindyanuri in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-14-2008, 11:39 AM
  6. Formula that returns Col A data in Col B, but omitting blank cells
    By SteveC in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-25-2006, 02:50 PM
  7. omitting blank cells
    By daufoi in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-18-2005, 03:02 AM
  8. List not omitting blank cells....??
    By malik641 in forum Excel Formulas & Functions
    Replies: 13
    Last Post: 09-06-2005, 12:05 PM

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