#1   Report Post  
Karin Iversen
 
Posts: n/a
Default Sumproduct

Hello,

I want to refer to at cell in sumproduct - it works when I use the formular:

=SUMPRODUCT(('data'!$A$23:$A$500=$A$1)*('data'!$B$ 23:$B$500={"26852030",
"28563210"})*(data'!$D$23:$D$500))

but it soes not work if i in the formular refer to a cell (B2) with
{"26852030", "28563210"} in then the results is 0. Is it possible to refer to
a cell

=SUMPRODUCT(('data'!$A$23:$A$500=$A$1)*('data'!$B$ 23:$B$500=B2)*(data'!$D$23:$D$500))

Hope someone can help with this.
Karin


  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default Sumproduct

You can use an array in the formula as you show, but if you want to refer to
cells, the array must be in a range, one value per cell, then refer to that
range. Just be aware that if the range of values is columnar, you will need
to TRANSPOSE it.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Karin Iversen" wrote in message
...
Hello,

I want to refer to at cell in sumproduct - it works when I use the

formular:

=SUMPRODUCT(('data'!$A$23:$A$500=$A$1)*('data'!$B$ 23:$B$500={"26852030",
"28563210"})*(data'!$D$23:$D$500))

but it soes not work if i in the formular refer to a cell (B2) with
{"26852030", "28563210"} in then the results is 0. Is it possible to refer

to
a cell


=SUMPRODUCT(('data'!$A$23:$A$500=$A$1)*('data'!$B$ 23:$B$500=B2)*(data'!$D$23
:$D$500))

Hope someone can help with this.
Karin




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Sumproduct Peter B Excel Worksheet Functions 1 March 7th 05 01:59 PM
sumproduct causing memory errors? dave Excel Worksheet Functions 1 March 3rd 05 09:31 AM
Can I reference =, <, or > sign in SUMPRODUCT BobT Excel Discussion (Misc queries) 7 February 16th 05 01:58 PM
Sumproduct function not working Scott Summerlin Excel Worksheet Functions 12 December 4th 04 05:15 AM
adding two sumproduct formulas together ski2004_2005 Excel Worksheet Functions 1 November 12th 04 09:08 PM


All times are GMT +1. The time now is 12:16 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"