+ Reply to Thread
Results 1 to 11 of 11

SUM PRODUCT error when cell has formula?

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    SUM PRODUCT error when cell has formula?

    Hello all

    I need to do the same i did for Quantity (quantidade in Portuguese)
    To "Metros Lineares", although with the formula applied it gives me error "VALUE"

    Please check the attach.

    Once i put the colors in "ORDEM TRABALHO ENVELOPES", it recognizes the color and put the sum of that color in another sheet place in the same color column.

    The formula i have was given from a member of this community, hope he can participate again.

    Hope you can help me out with this.
    Any information you need let me know.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    09-11-2014
    Location
    Washington, DC
    MS-Off Ver
    2016
    Posts
    1,907

    Re: SUM PRODUCT error when cell has formula?

    I'm not exactly sure what you're trying to accomplish, but maybe something like this in A5?:

    A5:
    =IF(--ISNUMBER(SUMPRODUCT(('ORDEM TRABALHO ENVELOPES'!$R$53:$AA$54=$A$1)*('ORDEM TRABALHO ENVELOPES'!$R$55:$AA$55=A4)*'ORDEM TRABALHO ENVELOPES'!$R$59:$AA$59))=0,"",SUMPRODUCT(('ORDEM TRABALHO ENVELOPES'!$R$53:$AA$54=$A$1)*('ORDEM TRABALHO ENVELOPES'!$R$55:$AA$55=A4)*'ORDEM TRABALHO ENVELOPES'!$R$59:$AA$59))
    Spread the love, add to the Rep

    "None of us are as smart as all of us."

  3. #3
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Re: SUM PRODUCT error when cell has formula?

    Quote Originally Posted by mcmahobt View Post
    I'm not exactly sure what you're trying to accomplish, but maybe something like this in A5?:

    A5:
    =IF(--ISNUMBER(SUMPRODUCT(('ORDEM TRABALHO ENVELOPES'!$R$53:$AA$54=$A$1)*('ORDEM TRABALHO ENVELOPES'!$R$55:$AA$55=A4)*'ORDEM TRABALHO ENVELOPES'!$R$59:$AA$59))=0,"",SUMPRODUCT(('ORDEM TRABALHO ENVELOPES'!$R$53:$AA$54=$A$1)*('ORDEM TRABALHO ENVELOPES'!$R$55:$AA$55=A4)*'ORDEM TRABALHO ENVELOPES'!$R$59:$AA$59))
    In a5, This works perfectly, althouh don't know how...
    =IFERROR(1/(1/SUMPRODUCT(('ORDEM TRABALHO ENVELOPES'!$R$53:$AA$53=$A$1)*('ORDEM TRABALHO ENVELOPES'!$R$55:$AA$55=A3),'ORDEM TRABALHO ENVELOPES'!$R$59:$AA$59)),"")

    Thanks for you help but it's too complex. I just still need help for the formula in "OUTRAS" Which is different

  4. #4
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: SUM PRODUCT error when cell has formula?

    Try

    =IFERROR(1/(1/SUMPRODUCT(('ORDEM TRABALHO ENVELOPES'!$R$53:$AA$53=$A$1)*('ORDEM TRABALHO ENVELOPES'!$R$55:$AA$55=A3),'ORDEM TRABALHO ENVELOPES'!$R$59:$AA$59)),"")

  5. #5
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Re: SUM PRODUCT error when cell has formula?

    Quote Originally Posted by Jonmo1 View Post
    Try

    =IFERROR(1/(1/SUMPRODUCT(('ORDEM TRABALHO ENVELOPES'!$R$53:$AA$53=$A$1)*('ORDEM TRABALHO ENVELOPES'!$R$55:$AA$55=A3),'ORDEM TRABALHO ENVELOPES'!$R$59:$AA$59)),"")
    Thanks, it works perfectly.

    I need to fill all fields with the formula.

    Just need your help to fill the "OUTRAS" Field, which has a different formula.

    It means that, if it finds the header ("PET TRANSPARENT") sum that quantity minus the colors found.

    Hope you can understand with the example:
    =SOMARPRODUTO(('ORDEM TRABALHO ENVELOPES'!$R$53:$AA$54=$A$1)*'ORDEM TRABALHO ENVELOPES'!$R$57:$AA$57)-SOMA(A4:U4))
    ALthough need this with your formula, if possible explain me what is the 1/1 etc for.. how does that formula works

  6. #6
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: SUM PRODUCT error when cell has formula?

    You had 2 basica problems.

    1, 'ORDEM TRABALHO ENVELOPES'!$R$53:$AA$54
    On that sheet, rows 53 and 54 are a merged range, so you should only look at 53
    'ORDEM TRABALHO ENVELOPES'!$R$53:$AA$53

    2, when you multiplied by the values in row 59, those were actually formulas and some returned ""
    "" is NOT blank, it's a text string
    Number*Text = #Value! error.

    By changing that last * to a comma, that forced sumproduct to process that range, and it's able to ingore text values that way.


    Then I was able to cut the formula in half with a neat little math trick.

    Instead of writing IF(Number=0,"",Number)
    You can do IFERROR(1/(1/Number),"")
    Take any number, say 10 for example
    1/10 = 0.10
    Then
    1/0.10 = 10

    So any number, that little math trick will always return the same number
    Unless it's a 0.
    If it's 0, you get #Div/0! error
    That's where the iferror handles it.

    Hope that helps.

  7. #7
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: SUM PRODUCT error when cell has formula?

    Try

    =SOMARPRODUTO(('ORDEM TRABALHO ENVELOPES'!$R$53:$AA$53=$A$1),'ORDEM TRABALHO ENVELOPES'!$R$57:$AA$57)-SOMA(A4:U4))

  8. #8
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Re: SUM PRODUCT error when cell has formula?

    Quote Originally Posted by Jonmo1 View Post
    Try

    =SOMARPRODUTO(('ORDEM TRABALHO ENVELOPES'!$R$53:$AA$53=$A$1),'ORDEM TRABALHO ENVELOPES'!$R$57:$AA$57)-SOMA(A4:U4))
    There is no way to use a formula without unmerge the Cell?

    Something like what i had earlier but for the second row:
    SOMARPRODUTO(('ORDEM TRABALHO ENVELOPES'!$R$53:$AA$54=$A$1)*'ORDEM TRABALHO ENVELOPES'!$R$59:$AA$59)-SOMA(A5:U5))

  9. #9
    Forum Guru Jonmo1's Avatar
    Join Date
    03-08-2013
    Location
    Bryan, TX
    MS-Off Ver
    Excel 2010
    Posts
    9,763

    Re: SUM PRODUCT error when cell has formula?

    Quote Originally Posted by brainzlp View Post
    There is no way to use a formula without unmerge the Cell?
    No one said you had to unmerge the cell.

    Just adjust the formula to only refer to the top cell of the merged ranges.

  10. #10
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Re: SUM PRODUCT error when cell has formula?

    Quote Originally Posted by Jonmo1 View Post
    No one said you had to unmerge the cell.

    Just adjust the formula to only refer to the top cell of the merged ranges.
    Hello, The formula you told me, doesn't do what i exactly need.

    Let me know what is the formula to give me TOTAL of "PET TRANSPARENT" , don't matter the color, i just need the total.

    I can also edit the actual formula that works:
    =IFERROR(1/(1/SUMPRODUCT(('ORDEM TRABALHO ENVELOPES'!$R$53:$AA$53=$A$1)*('ORDEM TRABALHO ENVELOPES'!$R$55:$AA$55=A3),'ORDEM TRABALHO ENVELOPES'!$R$59:$AA$59)),"")
    And instead of look for COLOR, look in the CODE for "Sem Código" (English - Without Code)
    Last edited by brainzlp; 10-23-2015 at 02:18 PM.

  11. #11
    Forum Contributor
    Join Date
    07-20-2015
    Location
    Covilhã
    MS-Off Ver
    2010
    Posts
    516

    Re: SUM PRODUCT error when cell has formula?

    Any suggestion of how can i do it for the colors that have no code?

+ 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. Replies: 9
    Last Post: 10-16-2014, 07:46 AM
  2. [SOLVED] I'm receiving a Run-Time error 1004 while trying to delete a product from a product list.
    By redsab in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-05-2014, 10:03 PM
  3. Error msg wont pop up - target cell is product of GoalSeek
    By Skuurfer in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-31-2012, 06:36 AM
  4. Sum Product formula error.
    By muralidaran in forum Excel General
    Replies: 10
    Last Post: 02-02-2012, 09:21 AM
  5. Sum Product Error
    By muralidaran in forum Excel General
    Replies: 4
    Last Post: 01-29-2012, 01:05 PM
  6. sum product and #n/a error
    By mrmiddleman in forum Excel General
    Replies: 8
    Last Post: 10-10-2007, 11:23 AM
  7. Product not found error
    By Pat in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-24-2005, 08:06 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