+ Reply to Thread
Results 1 to 8 of 8

SUMPRODUCT Blank Cells with LEFT & RIGHT

  1. #1
    Registered User
    Join Date
    07-17-2019
    Location
    England
    MS-Off Ver
    Latest - Version 1906
    Posts
    11

    SUMPRODUCT Blank Cells with LEFT & RIGHT

    Hello,

    I'm looking to use this formula =SUMPRODUCT(LEFT(G3:G1000,2)+(RIGHT(G3:G1000,8))) with cells that have numbers in but some in the middle are blank. If I try and return it at the moment, I get a value error due to blank cells. How do I get it to skip blanks?

    I don't want to shorten the column as I want to be able to insert new information everyday and the cell range to be long enough to always add up the numbers without adjusting the range.

    Thanks,

  2. #2
    Forum Expert Pepe Le Mokko's Avatar
    Join Date
    05-14-2009
    Location
    Belgium
    MS-Off Ver
    O365 v 2402
    Posts
    13,448

    Re: SUMPRODUCT Blank Cells with LEFT & RIGHT

    Welcome to the forum

    Please attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Registered User
    Join Date
    07-17-2019
    Location
    England
    MS-Off Ver
    Latest - Version 1906
    Posts
    11

    Re: SUMPRODUCT Blank Cells with LEFT & RIGHT

    I'm unable to upload a document unfortunately.

    I'm trying to use the =SUMPRODUCT(LEFT(A1:A4,2)+(RIGHT(A1:A4,8)))

    This works fine for everything that has a number in it. But if A3 is a completely empty cell. I get a #VALUE! error. I'm guessing there's something I can add into my formula to ignore empty cells.

    Thanks.

  4. #4
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: SUMPRODUCT Blank Cells with LEFT & RIGHT

    Try this

    =IFERROR(SUMPRODUCT(LEFT(A1:A4,2)+(RIGHT(A1:A4,8))),"")
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  5. #5
    Registered User
    Join Date
    07-17-2019
    Location
    England
    MS-Off Ver
    Latest - Version 1906
    Posts
    11

    Re: SUMPRODUCT Blank Cells with LEFT & RIGHT

    Thanks for your reply AlKey. Unfortuantely that didn't work. To give you an idea, these are the type of numbers I'm using in the cells:
    00:00:05:11
    00:00:01:41
    00:00:13:43
    00:01:13:32

  6. #6
    Forum Expert
    Join Date
    09-25-2015
    Location
    Milan Italy
    MS-Off Ver
    office 365
    Posts
    1,784

    Re: SUMPRODUCT Blank Cells with LEFT & RIGHT

    A
    1
    00:00:05:11
    2
    00:00:01:41
    3
    00:00:13:43
    4
    5
    00:01:13:32
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
    24
    25
    26
    27
    28
    29
    30
    31
    32
    33
    34
    35
    36
    37
    38
    39
    40
    41
    42
    43
    44
    45
    46
    47
    48
    49
    50
    51
    52
    53
    54
    55
    56
    57
    58
    59
    60
    61
    62
    63
    64
    65
    66
    67
    68
    69
    70
    71
    72
    73
    74
    75
    76
    77
    78
    79
    80
    81
    82
    83
    84
    85
    86
    87
    88
    89
    90
    91
    92
    93
    94
    95
    96
    97
    98
    99
    100














    C1=SUM(IF(ISNUMBER((LEFT(A1:A100,2)+0+(RIGHT(A1:A100,8)+0))),LEFT(A1:A100,2)+0+(RIGHT(A1:A100,8)+0)))

    control+shift+enter
    Last edited by CARACALLA; 09-23-2019 at 06:49 PM.

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

    Re: SUMPRODUCT Blank Cells with LEFT & RIGHT

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here. We allow cross posts, but you must give us a link to the post in the other forum.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. No help to be offered until the link is provided.)
    Jeff
    | | |會 |會 |會 |會 | |:| | |會 |會
    Read the rules
    Use code tags to [code]enclose your code![/code]

  8. #8
    Registered User
    Join Date
    07-17-2019
    Location
    England
    MS-Off Ver
    Latest - Version 1906
    Posts
    11

    Re: SUMPRODUCT Blank Cells with LEFT & RIGHT

    This has been solved. Thanks.

    But I can't add the link in, as I'm getting this error

    "The following errors occurred with your submission
    You are not allowed to post any kinds of links, images or videos until you post a few times."

+ 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] Counting Blank Cells from Right to Left
    By bl1nd in forum Excel General
    Replies: 16
    Last Post: 12-21-2018, 08:03 PM
  2. Replies: 12
    Last Post: 05-29-2018, 05:11 PM
  3. Right to left validation of blank cells
    By Dan_B in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-18-2016, 02:55 PM
  4. How can I make multiple cells mandatory if new rows are used with some cells left blank?
    By markbarnett in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-11-2015, 07:06 AM
  5. [SOLVED] countif left cells are blank
    By Apexeon in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-20-2014, 06:31 PM
  6. Replies: 2
    Last Post: 11-22-2013, 01:07 PM
  7. Validating cells left blank
    By chris100 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-04-2005, 01:39 PM

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