+ Reply to Thread
Results 1 to 6 of 6

SUMPRODUCT with text and number as data range

  1. #1
    Valued Forum Contributor
    Join Date
    04-13-2011
    Location
    Ottawa, Canada
    MS-Off Ver
    365
    Posts
    1,067

    SUMPRODUCT with text and number as data range

    I have a table below

    However, because this file is "link" to an external workbook by using a simple such as =[External WB]'Sheet1'!A1, there's some data that are actually not number, but text. I'd assume the creator uses "" as blank, instead of a numeric 0.

    Given the SUMPRODUCT formula below, it return me a #VALUE! error.

    My question now is that, what can I do on my SUMPRODUCT to convert all those #VALUE! to be a number, so that I can get the correct result.

    Region Product Jan-18 ... ... Dec-18
    North A 10 ... ... 20
    South A ... ... 5
    North B 8 ... ...
    North C 7 ... ... #N/A

    Please Login or Register  to view this content.
    Edit: Was able to solve using IF(NOT(ISERROR())) function within SUMPRODUCT array formula.

    Please Login or Register  to view this content.
    Last edited by dluhut; 08-09-2018 at 03:30 PM.

  2. #2
    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. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,591

    Re: SUMPRODUCT with text and number as data range

    Attach the workbook.

    1. Make sure that your sample data are 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 results are also shown (mock up the results manually).

    3. Make sure that all confidential data is removed or replaced with dummy data first (e.g. names, addresses, E-mails, etc.).

    4. Try to avoid using merged cells as 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.

    Please pay particular attention to point 2 (above): without an idea of your intended outcomes, it is often very difficult to offer appropriate advice.
    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.

  3. #3
    Forum Contributor
    Join Date
    10-30-2003
    Location
    Singapore
    MS-Off Ver
    Excel 2019
    Posts
    197

    Re: SUMPRODUCT with text and number as data range

    Perhaps..........

    =SUMIFS(INDEX($C$2:$N$5,,MATCH(AA$1,$C$1:$N$1,0)),$A$2:$A$5,"North",$B$2:$B$5,"A")

    Regards
    Bosco

  4. #4
    Forum Expert José Augusto's Avatar
    Join Date
    10-29-2014
    Location
    Portugal
    MS-Off Ver
    2013-2016
    Posts
    3,329

    Re: SUMPRODUCT with text and number as data range

    Or


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



    Your formula does not work because you are using two different dimensions for ranges (vertical and horizontal)

  5. #5
    Valued Forum Contributor
    Join Date
    04-13-2011
    Location
    Ottawa, Canada
    MS-Off Ver
    365
    Posts
    1,067

    Re: SUMPRODUCT with text and number as data range

    Thanks Bosco!

    I was thinking of using SUMPRODUCT because I thought that the calculation will be faster.

    Accept your answer and reps up to you.

    Reps up to you too Jose!
    Last edited by dluhut; 08-09-2018 at 12:22 PM.

  6. #6
    Valued Forum Contributor
    Join Date
    04-13-2011
    Location
    Ottawa, Canada
    MS-Off Ver
    365
    Posts
    1,067

    Re: SUMPRODUCT with text and number as data range

    What happens if the data range have number, text and errors (i.e. #N/A).

    What would be the SUMPRODUCT formula in this case?

+ 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] SUMPRODUCT ignore text in the sum range
    By chris196uk in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 06-23-2017, 12:15 PM
  2. [SOLVED] Number of Pay Periods in Range with SumProduct
    By bgoodsell in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-05-2016, 03:37 PM
  3. Count number of same type of text in a data range
    By LISARUSSELL123 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-10-2014, 10:48 AM
  4. Replies: 4
    Last Post: 09-01-2014, 05:25 AM
  5. [SOLVED] SUMPRODUCT Critera - If range values start with number
    By daffodil11 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-04-2014, 01:03 PM
  6. help - sumproduct within text range-
    By Firman-EID in forum Excel General
    Replies: 3
    Last Post: 03-16-2006, 09:46 AM
  7. Replies: 9
    Last Post: 10-31-2005, 08:05 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