+ Reply to Thread
Results 1 to 4 of 4

SUMPRODUCT not working due to text in column

  1. #1
    Registered User
    Join Date
    04-23-2009
    Location
    Manchester, England
    MS-Off Ver
    Office 2013
    Posts
    18

    SUMPRODUCT not working due to text in column

    Hi,

    I'm trying to work out how to fix the formula below to take into account and ignore and text entries, while giving me the result of the sum of column K minus the sum of column J. If I delete the text entries, the code works but I need the text entries to stay where they are.

    I've attached a sample sheet with fake info to explain whan I'm trying to do.

    Cell N28 on the 'MGMT INFO' tab contains the following formula:

    =IF(ISERROR(SUMPRODUCT((Sheet01!$K$1:$K$1000)-(Sheet01!$J$1:$J$1000))),0,(SUMPRODUCT((Sheet01!$K$1:$K$1000)-(Sheet01!$J$1:$J$1000))))

    Columns J and K on the 'Sheet01' tab contain the Pay and Invoice information for all the work planners for that client that I'm trying to find the difference between. Each work planner has 'Pay' and 'Invoice' also in that column though, one entry per planner which is causing the SUMPRODUCT formula to screw up.

    Could ISNUMBER help me out? if so could anyone help me with the correct syntax?

    Thanks in advance
    Attached Files Attached Files
    Last edited by damiensmith212; 04-24-2009 at 12:28 PM. Reason: Problem solved :)

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: SUMPRODUCT not working due to text in column

    Maybe something less complicated:

    =SUM(Sheet01!K:K)-SUM(Sheet01!J:J)
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Registered User
    Join Date
    04-23-2009
    Location
    Manchester, England
    MS-Off Ver
    Office 2013
    Posts
    18

    Re: SUMPRODUCT not working due to text in column

    Haha, do I feel stupid or what?

    I've been pulling my hair out trying to figure out what I'd done wrong. Thanks for putting me straight.

  4. #4
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: SUMPRODUCT not working due to text in column

    =SUM(Sheet01!K:K)-SUM(Sheet01!J:J)
    would do that
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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