+ Reply to Thread
Results 1 to 6 of 6

Sumproduct in combination with other functions but excluding blank cells in range

  1. #1
    Registered User
    Join Date
    01-11-2018
    Location
    Slovakia
    MS-Off Ver
    2013
    Posts
    3

    Sumproduct in combination with other functions but excluding blank cells in range

    Hello everybody,

    i am struggling with following function:

    =SUMPRODUCT(--(LEFT(B5:I5,FIND(":",B5:I5)-1)))&":"&SUMPRODUCT(--(RIGHT(B5:I5,LEN(B5:I5)-FIND(":",B5:I5))))

    it perfectly works if all cells in range are non-empty, but how to include condition if i want to skip empty/blank cells in this case?

    To introduce what i want with this calculation, i have matrix (columns, rows) with 8 players and when players have played match there are results in the format e.g. 3:2, if not there are still empty cells. Based on current results i want to calculate total SCORE.

    So if i have results: 1:1; 2:1; empty, 3:2 etc and by applying abovementioned formula i want to calculate that current score is 6:4 (and to skip EMPTY one).

    i have found lot of examples by using <>"" to exclude empty ones, but it doesnt work.

    thanks a lot

  2. #2
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: Sumproduct in combination with other functions but excluding blank cells in range

    Will you please attach a SMALL sample Excel workbook (10-20 rows of data is usually enough)? Please don't attach a picture of one (no-one will want to re-type all your stuff before starting).

    1. Make sure that your sample data are truly REPRESENTATIVE of your real data. The use of unrepresentative data is very frustrating and can lead to long delays in reaching a solution.

    2. Make sure that your desired solution is also shown (mock up the results manually).

    3. Make sure that all confidential information is removed first!!

    4. Try to avoid using merged cells. They cause lots of problems!

    Unfortunately the attachment icon doesn't work at the moment. So, to attach an Excel file you have to do the following: Just before posting, scroll down to Go Advanced and then scroll down to Manage Attachments. Now follow the instructions at the top of that screen.
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  3. #3
    Registered User
    Join Date
    01-11-2018
    Location
    Slovakia
    MS-Off Ver
    2013
    Posts
    3

    Re: Sumproduct in combination with other functions but excluding blank cells in range

    Hello Glenn,

    here is the original file and in column J i want to calculate that by skipping empty cells (matches with green 0:0 have not been played).

    thanks
    d
    Attached Files Attached Files

  4. #4
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    4,000

    Re: Sumproduct in combination with other functions but excluding blank cells in range

    Try

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


    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER. You will know the array is active when you see curly braces { } appear around your formula. If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.
    If I helped, Don't forget to add reputation (click on the little star ★ at bottom of this post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)

  5. #5
    Registered User
    Join Date
    01-11-2018
    Location
    Slovakia
    MS-Off Ver
    2013
    Posts
    3

    Re: Sumproduct in combination with other functions but excluding blank cells in range

    Perfect!!! thanks a lot )

    d.

  6. #6
    Forum Expert shukla.ankur281190's Avatar
    Join Date
    05-17-2014
    Location
    Lucknow, India
    MS-Off Ver
    Microsoft® Excel® for Microsoft 365 MSO (Version 2503 Build 16.0.18604.20000) 64-bit
    Posts
    4,000

    Re: Sumproduct in combination with other functions but excluding blank cells in range

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

+ 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] Looking for final four values in range, excluding any blank cells
    By OffTheFairway22 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-02-2015, 07:32 AM
  2. [SOLVED] Excluding blank cells
    By Yaznayo in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-14-2014, 02:31 PM
  3. Replies: 1
    Last Post: 01-23-2014, 05:39 AM
  4. Excluding blank cells from a range of data
    By Consty1 in forum Excel General
    Replies: 5
    Last Post: 10-11-2012, 03:19 PM
  5. Replies: 15
    Last Post: 04-25-2012, 05:21 PM
  6. Excel 2007 : Excluding Blank Cells
    By pxoxyx in forum Excel General
    Replies: 0
    Last Post: 04-28-2010, 01:47 AM
  7. Replies: 4
    Last Post: 05-12-2006, 02:25 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