Need help with SUMPRODUCT

  • Thread starter Thread starter Livin
  • Start date Start date
L

Livin

situation...

ColA ColD

Norton AV 78
Norton Suite 12
Norton Spy 34
Norton Anti-Virus 56


Search each row in ColA, if contains "Norton", add value from ColD to
the SUM.


What I have so far, but it is adding ecerything in ColD, even if it
does not contain "Norton"
In this case, A3 is the value "Norton", and US is the sheet name it is
searching.

=SUMPRODUCT(--(IF(ISNUMBER(SEARCH(A3,US!A:A)),US!D:D)))


thx in advance!
 
COOL!

So I now have...

=SUMIF(US!A:A,"*"&A3&"*",US!D:D)


how do I convert the US into a value from a cell?

this value will change depending on the column and I want to use the
column header for the value.

thanks!
 
I also need to make the A:A and D:D static when I copy across cells...
I thought A$:A$ would work?
 
Maybe...

=SUMIF(INDIRECT("'"&$X$1&"'!A:A"),"*"&A3&"*",INDIRECT("'"&$X$1&"'!D:D"))

Change $x$1 to the address that contains the name of the worksheet.
 
Assume you have the first header in A1


=SUMIF(INDIRECT("'"&A1&"'!A:A"),"*"&A3&"*",US!$D:$D)

Except for A3 it will not change when copied across

--


Regards,


Peo Sjoblom

COOL!

So I now have...

=SUMIF(US!A:A,"*"&A3&"*",US!D:D)


how do I convert the US into a value from a cell?

this value will change depending on the column and I want to use the
column header for the value.

thanks!
 
Doh! It would have helped if I replaced the other sheet reference as well

--


Regards,


Peo Sjoblom
 
I tried

=SUMIF(INDIRECT("'"&A1&"'!$A:$A"),"*"&A3&"*",INDIRECT("'"&A1&"'!$D:
$D"))

and

=SUMIF(INDIRECT("'"&A1&"'!A:A"),"*"&A3&"*",INDIRECT("'"&A1&"'!D:D"))

throws #REF with each

we are close, thanks for the continuing help!
 
I solved the formula with your help!

=SUMIF(INDIRECT("'"&B$2&"'!$A:$A"),"*"&$A3&"*",INDIRECT("'"&B$2&"'!$D:
$D"))

thank you!!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top