Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 81
Default SUMPRODUCT problem

I have the following formula:

=SUMPRODUCT(Data!$T$6:Data!$T$5000="Long
Term")*SUM(Data!$BE$6:Data!$BF$5000)/SUM(Data!$BE$6:Data!$BF$5000)
which produces the wrong answer.

Column T contains "Long Term", "Short Term", "Spot"
Column BE contains spend for January, BF for February, BG for March, etc...

I would like to calculate what percentage of year to date total spend there
is for "long term" contracts for February. This calculation would be: (Total
"long term" spend for Jan and Feb) / (Total spend year to date)

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default SUMPRODUCT problem

Close but not quite there. Try
=SUMPRODUCT((Data!$T$6:Data!$T$5000="Long
Term")*(Data!$BE$6:Data!$BF$5000))/SUM(Data!$BE$6:Data!$BF$5000)
or
=SUMPRODUCT(--(Data!$T$6:Data!$T$5000="Long
Term"),Data!$BE$6:Data!$BF$5000)/SUM(Data!$BE$6:Data!$BF$5000)

For more details on SUMPRODUCT
Bob Phillips
http://www.xldynamic.com/source/xld.SUMPRODUCT.html
J.E McGimpsey
http://mcgimpsey.com/excel/formulae/doubleneg.html
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"juliejg1" wrote in message
...
I have the following formula:

=SUMPRODUCT(Data!$T$6:Data!$T$5000="Long
Term")*SUM(Data!$BE$6:Data!$BF$5000)/SUM(Data!$BE$6:Data!$BF$5000)
which produces the wrong answer.

Column T contains "Long Term", "Short Term", "Spot"
Column BE contains spend for January, BF for February, BG for March,
etc...

I would like to calculate what percentage of year to date total spend
there
is for "long term" contracts for February. This calculation would be:
(Total
"long term" spend for Jan and Feb) / (Total spend year to date)



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 81
Default SUMPRODUCT problem

Perfect! Thanks!

"Bernard Liengme" wrote:

Close but not quite there. Try
=SUMPRODUCT((Data!$T$6:Data!$T$5000="Long
Term")*(Data!$BE$6:Data!$BF$5000))/SUM(Data!$BE$6:Data!$BF$5000)
or
=SUMPRODUCT(--(Data!$T$6:Data!$T$5000="Long
Term"),Data!$BE$6:Data!$BF$5000)/SUM(Data!$BE$6:Data!$BF$5000)

For more details on SUMPRODUCT
Bob Phillips
http://www.xldynamic.com/source/xld.SUMPRODUCT.html
J.E McGimpsey
http://mcgimpsey.com/excel/formulae/doubleneg.html
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"juliejg1" wrote in message
...
I have the following formula:

=SUMPRODUCT(Data!$T$6:Data!$T$5000="Long
Term")*SUM(Data!$BE$6:Data!$BF$5000)/SUM(Data!$BE$6:Data!$BF$5000)
which produces the wrong answer.

Column T contains "Long Term", "Short Term", "Spot"
Column BE contains spend for January, BF for February, BG for March,
etc...

I would like to calculate what percentage of year to date total spend
there
is for "long term" contracts for February. This calculation would be:
(Total
"long term" spend for Jan and Feb) / (Total spend year to date)




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,124
Default SUMPRODUCT problem

For future shorter formulas, you shouldn't need the second data!
=SUMPRODUCT((Data!$T$6:Data!$T$5000="Long
=SUMPRODUCT((Data!$T$6:$T$5000="Long
--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"juliejg1" wrote in message
...
Perfect! Thanks!

"Bernard Liengme" wrote:

Close but not quite there. Try
=SUMPRODUCT((Data!$T$6:Data!$T$5000="Long
Term")*(Data!$BE$6:Data!$BF$5000))/SUM(Data!$BE$6:Data!$BF$5000)
or
=SUMPRODUCT(--(Data!$T$6:Data!$T$5000="Long
Term"),Data!$BE$6:Data!$BF$5000)/SUM(Data!$BE$6:Data!$BF$5000)

For more details on SUMPRODUCT
Bob Phillips
http://www.xldynamic.com/source/xld.SUMPRODUCT.html
J.E McGimpsey
http://mcgimpsey.com/excel/formulae/doubleneg.html
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"juliejg1" wrote in message
...
I have the following formula:

=SUMPRODUCT(Data!$T$6:Data!$T$5000="Long
Term")*SUM(Data!$BE$6:Data!$BF$5000)/SUM(Data!$BE$6:Data!$BF$5000)
which produces the wrong answer.

Column T contains "Long Term", "Short Term", "Spot"
Column BE contains spend for January, BF for February, BG for March,
etc...

I would like to calculate what percentage of year to date total spend
there
is for "long term" contracts for February. This calculation would be:
(Total
"long term" spend for Jan and Feb) / (Total spend year to date)





  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default SUMPRODUCT problem

I didn't notice that! Good eyes, Don
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"Don Guillett" wrote in message
...
For future shorter formulas, you shouldn't need the second data!
=SUMPRODUCT((Data!$T$6:Data!$T$5000="Long
=SUMPRODUCT((Data!$T$6:$T$5000="Long
--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"juliejg1" wrote in message
...
Perfect! Thanks!

"Bernard Liengme" wrote:

Close but not quite there. Try
=SUMPRODUCT((Data!$T$6:Data!$T$5000="Long
Term")*(Data!$BE$6:Data!$BF$5000))/SUM(Data!$BE$6:Data!$BF$5000)
or
=SUMPRODUCT(--(Data!$T$6:Data!$T$5000="Long
Term"),Data!$BE$6:Data!$BF$5000)/SUM(Data!$BE$6:Data!$BF$5000)

For more details on SUMPRODUCT
Bob Phillips
http://www.xldynamic.com/source/xld.SUMPRODUCT.html
J.E McGimpsey
http://mcgimpsey.com/excel/formulae/doubleneg.html
best wishes
--
Bernard V Liengme
Microsoft Excel MVP
www.stfx.ca/people/bliengme
remove caps from email

"juliejg1" wrote in message
...
I have the following formula:

=SUMPRODUCT(Data!$T$6:Data!$T$5000="Long
Term")*SUM(Data!$BE$6:Data!$BF$5000)/SUM(Data!$BE$6:Data!$BF$5000)
which produces the wrong answer.

Column T contains "Long Term", "Short Term", "Spot"
Column BE contains spend for January, BF for February, BG for March,
etc...

I would like to calculate what percentage of year to date total spend
there
is for "long term" contracts for February. This calculation would be:
(Total
"long term" spend for Jan and Feb) / (Total spend year to date)









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
Problem with SUMPRODUCT....help please! Tasha Excel Worksheet Functions 5 July 16th 07 08:20 PM
Problem with SumProduct dinadvani via OfficeKB.com Excel Discussion (Misc queries) 5 July 31st 06 01:55 PM
sumproduct problem? Tolga Excel Discussion (Misc queries) 6 July 5th 06 05:27 PM
sumproduct problem andy New Users to Excel 2 March 29th 06 01:52 PM
SUMPRODUCT problem Jane Excel Worksheet Functions 3 November 8th 04 11:58 PM


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