#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 31
Default sumproduct question

Hi,
What I'm trying to do is to use a constant value in the sumproduct equation.
Example
column 1 column 2 column 3 (#)

so if i took sumproduct(--(col 1.....),--(col 2....), (#) * (col 3....))
so basically i want to multiply # by all the elemets in the array (col 3) if
case 1 and 2 are true. Can this be done this way? I know i can turn the #
into a column of numbers and use it as an array that way, but i'm wondering
if there is someway to transform the value to an array in the formula. Ex. 1
* (1X12 array) == 1X12

Thanks for the help, josh
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default sumproduct question

If I understand what you're asking,

=SUMPRODUCT((A1:A20="Criteria1")*(B1:B20="Criteria 2")*C1:C20)*3

Where "3" is your #.

It's best to assign your criteria to specific cells, along with your
multiplier, such as:

=SUMPRODUCT((A1:A20=D1)*(B1:B20=D2)*C1:C20)*D3

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------

"jxbeeman" wrote in message
...
Hi,
What I'm trying to do is to use a constant value in the sumproduct
equation.
Example
column 1 column 2 column 3 (#)

so if i took sumproduct(--(col 1.....),--(col 2....), (#) * (col 3....))
so basically i want to multiply # by all the elemets in the array (col 3)
if
case 1 and 2 are true. Can this be done this way? I know i can turn the
#
into a column of numbers and use it as an array that way, but i'm
wondering
if there is someway to transform the value to an array in the formula. Ex.
1
* (1X12 array) == 1X12

Thanks for the help, josh



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 question pdberger Excel Worksheet Functions 4 December 13th 07 08:24 PM
Sumproduct question wx4usa Excel Discussion (Misc queries) 5 August 10th 07 11:28 PM
Sumproduct question? wahur Excel Worksheet Functions 1 May 17th 06 11:40 AM
question about SUMPRODUCT nmc1104 Excel Worksheet Functions 4 November 4th 05 09:32 PM
Sumproduct question Daniel Bonallack Excel Worksheet Functions 3 September 16th 05 07:13 AM


All times are GMT +1. The time now is 03:43 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"