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 question

I am looking at four columns:

A1 = Scorecard Date
B1:B20 = Different dates
D1:D20 = Record Value
E1:E20 = Spend

I would like to do the following:
For all records where the dates in column B match the date shown in A1, I
would like to sum D1:D20 and divide the total by the sum of E1:E20.


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default SUMPRODUCT question

=SUMPRODUCT(--(B1:B20=A1),D1;D20/E1/E20)

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"juliejg1" wrote in message
...
I am looking at four columns:

A1 = Scorecard Date
B1:B20 = Different dates
D1:D20 = Record Value
E1:E20 = Spend

I would like to do the following:
For all records where the dates in column B match the date shown in A1, I
would like to sum D1:D20 and divide the total by the sum of E1:E20.




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default SUMPRODUCT question

Sorry, posted too quickly.

This is what I wanted to post

=SUM(IF(E1:E20<"",IF(B1:B20=A1,D1:D20/E1:E20)))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.
Excel will automatically enclose the formula in braces (curly brackets), do
not try to do this manually.
When editing the formula, it must again be array-entered.

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"juliejg1" wrote in message
...
I am looking at four columns:

A1 = Scorecard Date
B1:B20 = Different dates
D1:D20 = Record Value
E1:E20 = Spend

I would like to do the following:
For all records where the dates in column B match the date shown in A1, I
would like to sum D1:D20 and divide the total by the sum of E1:E20.




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

Thank you

"Bob Phillips" wrote:

Sorry, posted too quickly.

This is what I wanted to post

=SUM(IF(E1:E20<"",IF(B1:B20=A1,D1:D20/E1:E20)))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.
Excel will automatically enclose the formula in braces (curly brackets), do
not try to do this manually.
When editing the formula, it must again be array-entered.

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"juliejg1" wrote in message
...
I am looking at four columns:

A1 = Scorecard Date
B1:B20 = Different dates
D1:D20 = Record Value
E1:E20 = Spend

I would like to do the following:
For all records where the dates in column B match the date shown in A1, I
would like to sum D1:D20 and divide the total by the sum of E1:E20.





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 porter444 Excel Worksheet Functions 2 September 25th 07 07:06 PM
SumProduct Question mldancing Excel Discussion (Misc queries) 15 April 6th 07 03:52 AM
SumProduct question Jamesy Excel Discussion (Misc queries) 5 March 31st 06 05:20 PM
Sumproduct Question [email protected] Excel Discussion (Misc queries) 9 March 10th 06 04:26 PM
another sumproduct question cjjoo Excel Worksheet Functions 9 November 18th 05 07:59 PM


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