Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 181
Default formula for sumproduct

Is there any way to use two cell for sumproduct?
= SUMPRODUCT(--(A2:A100=A2),C2:C100) this is the formula I am using, what I
am trying to do is add another cell with A2. Need to have column A and B to
do the sumproduct. Column A is for states, column B is for type of fuel and
column C for gallons. If A is TX and B is red dye fuel, C is 80 gal. If A is
TX and B is diesle and C is 200 gal. If A is OK and B is diesel and C 150
gal. Have total on bottom and trying to keep states and type fuel seperate in
total cell. Any help on this?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,268
Default formula for sumproduct

= SUMPRODUCT(--(A2:A100="TX"),--(B2:B100="red dye fuel"),C2:C100)

or better

= SUMPRODUCT(--(A2:A100=D1),--(B2:B100=E1),C2:C100)

where D1 holds the state you want and E1 the type of fuel


--
Regards,

Peo Sjoblom




"Curtis" wrote in message
...
Is there any way to use two cell for sumproduct?
= SUMPRODUCT(--(A2:A100=A2),C2:C100) this is the formula I am using, what
I
am trying to do is add another cell with A2. Need to have column A and B
to
do the sumproduct. Column A is for states, column B is for type of fuel
and
column C for gallons. If A is TX and B is red dye fuel, C is 80 gal. If A
is
TX and B is diesle and C is 200 gal. If A is OK and B is diesel and C 150
gal. Have total on bottom and trying to keep states and type fuel seperate
in
total cell. Any help on this?



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default formula for sumproduct

Maybe this,

=SUMPRODUCT((A2:A100="TX")*(B2:B100="Red")*(C2:C10 0))

Mike

"Curtis" wrote:

Is there any way to use two cell for sumproduct?
= SUMPRODUCT(--(A2:A100=A2),C2:C100) this is the formula I am using, what I
am trying to do is add another cell with A2. Need to have column A and B to
do the sumproduct. Column A is for states, column B is for type of fuel and
column C for gallons. If A is TX and B is red dye fuel, C is 80 gal. If A is
TX and B is diesle and C is 200 gal. If A is OK and B is diesel and C 150
gal. Have total on bottom and trying to keep states and type fuel seperate in
total cell. Any help on this?

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 Formula Help Please Joe Gieder Excel Worksheet Functions 12 April 4th 07 01:49 AM
Help - Looking for a Sumproduct formula [email protected] Excel Worksheet Functions 4 November 1st 06 07:39 AM
OR in a SUMPRODUCT formula Kierano Excel Worksheet Functions 9 October 19th 06 10:24 AM
SumProduct Formula carl Excel Worksheet Functions 2 January 31st 06 08:14 PM
sumproduct formula mbparks Excel Worksheet Functions 4 January 10th 05 03:44 PM


All times are GMT +1. The time now is 01:58 PM.

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

About Us

"It's about Microsoft Excel"