+ Reply to Thread
Results 1 to 9 of 9

Ignore blank cells in SUMPRODUCT

  1. #1
    Registered User
    Join Date
    01-27-2022
    Location
    Romania
    MS-Off Ver
    2010
    Posts
    4

    Unhappy Ignore blank cells in SUMPRODUCT

    Hello,


    How can i ignore the blank cells in this formula?




    Formula: copy to clipboard
    Please Login or Register  to view this content.



    Attachment 765346

    This formula calculate just cells with "/Co".

    If i complete all cells the formula it's works. But i need without blank cells, because not all is completed.


    Please help me!
    Thank you!
    Attached Images Attached Images
    Attached Files Attached Files
    Last edited by OanaBC; 01-27-2022 at 10:10 AM.

  2. #2
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Ignore blank cells in SUMPRODUCT

    First of all welcome

    please attach a sample as per the yellow banner and I am sure your formula can be amended. Include what your expected answer is.

  3. #3
    Registered User
    Join Date
    01-27-2022
    Location
    Romania
    MS-Off Ver
    2010
    Posts
    4

    Re: Ignore blank cells in SUMPRODUCT

    i want this formula to return to me the sum of co-hours, that is to say those with "/co" for the sample (H11:AL11). That is 4, but i want the formula to work even if there aren't all the cells filled in.
    Last edited by AliGW; 01-27-2022 at 09:38 AM. Reason: PLEASE don't quote unnecessarily!

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

    Re: Ignore blank cells in SUMPRODUCT

    Please attach a workbook, as requested.

    There are instructions at the top of the page explaining how to attach your sample workbook.

    A good sample workbook has just 10-20 rows of representative data that has been desensitised. It also has expected results mocked up, relevant cells highlighted and a few explanatory notes.
    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.

  5. #5
    Registered User
    Join Date
    01-27-2022
    Location
    Romania
    MS-Off Ver
    2010
    Posts
    4

    Re: Ignore blank cells in SUMPRODUCT

    i'm loaded. thank you!

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,761

    Re: Ignore blank cells in SUMPRODUCT

    Assuming that you want cells AL12:AL13 to display zero, paste the following array entered formula** into cell AL11 and drag the fill handle down:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    **Array formulas are not entered in the same way as 'standard' formulas. Instead of pressing just ENTER, you first hold down CTRL and SHIFT, and only then press ENTER. If you've done it correctly, you'll notice Excel puts curly brackets {} around the formula (though do not attempt to manually insert these yourself).
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  7. #7
    Registered User
    Join Date
    01-27-2022
    Location
    Romania
    MS-Off Ver
    2010
    Posts
    4

    Re: Ignore blank cells in SUMPRODUCT

    Thank you so much!!!!

  8. #8
    Forum Expert XLent's Avatar
    Join Date
    10-13-2010
    Location
    Northumberland, UK
    MS-Off Ver
    various
    Posts
    2,704

    Re: Ignore blank cells in SUMPRODUCT

    in SUMPRODUCT terms, as you asked

    =SUMPRODUCT((RIGHT(E12:AI12;3)="/co")*LEFT(0&E12:AI12;2))

    i.e. prefix every cell with 0, pull left 2 chars -- so where blank you get 0, not null string, which you can coerce successfully without affecting result.

  9. #9
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,761

    Re: Ignore blank cells in SUMPRODUCT

    You're Welcome and thank you for the feedback. Please take a moment to mark the thread as 'Solved' using the thread tools menu above your first post. I hope that you have a blessed day.

+ 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] Ignore blank cells with formulas or ignore NA() in a formula
    By guiismiti in forum Excel Charting & Pivots
    Replies: 5
    Last Post: 03-24-2016, 02:13 PM
  2. [SOLVED] Weighted Average formula / SUMPRODUCT to ignore blank cells
    By macrorookie in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-17-2014, 08:05 PM
  3. Sumproduct - ignore blank cells
    By pauldaddyadams in forum Excel General
    Replies: 3
    Last Post: 04-23-2014, 11:42 AM
  4. Ignore Blank Cells in SUMPRODUCT formula
    By taniwha in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-22-2013, 10:52 AM
  5. Sumproduct: how to ignore blank variables
    By robotlust in forum Excel General
    Replies: 5
    Last Post: 05-17-2012, 11:02 PM
  6. [SOLVED] How to get Sumproduct to ignore a criteria if it is blank?
    By skysurfer in forum Excel General
    Replies: 3
    Last Post: 04-29-2012, 04:54 PM
  7. Replies: 2
    Last Post: 04-28-2012, 05:13 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