#1   Report Post  
Posted to microsoft.public.excel.misc
DS DS is offline
external usenet poster
 
Posts: 117
Default SumIF or SumProduct

I have a spreadsheet ( Excel 2003 ) that has Column A filled with company
names and column B with dates. Company A appears 20 times followed by
company B 10 times and so on in column A. Column B contains dates that
orders were placed by these companies. I have created a PivotTable that that
runs a count and displays Company Name in the row fields area and count for
that company in the data field area. I would like to run a second count so
that I can identify the number of times company A appears before a specific
date from column B. It should look like this:

Desired PivotTable Layout - I have the first two columns already
Name Count of Company Name Occurances/Comp A Before
"Date"
Company A 20 3
Company B 10 7
Company C 17 4

Thanks in advance for the help.

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,276
Default SumIF or SumProduct

Hi,

=SUMPRODUCT((C2:C3="a")*(D2:D3<DATE(2009,12,16)))

change the range and the dates to fit your needs

if this helps please click yes thanks

"DS" wrote:

I have a spreadsheet ( Excel 2003 ) that has Column A filled with company
names and column B with dates. Company A appears 20 times followed by
company B 10 times and so on in column A. Column B contains dates that
orders were placed by these companies. I have created a PivotTable that that
runs a count and displays Company Name in the row fields area and count for
that company in the data field area. I would like to run a second count so
that I can identify the number of times company A appears before a specific
date from column B. It should look like this:

Desired PivotTable Layout - I have the first two columns already
Name Count of Company Name Occurances/Comp A Before
"Date"
Company A 20 3
Company B 10 7
Company C 17 4

Thanks in advance for the help.

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5,939
Default SumIF or SumProduct

Best way is to add a new field into your source data. Call it 'Date Included'
or whatever...

The new field will have a formula similar to

=B2 = Sheet1!A1 this returns True or False

Sheet 1 A1 will have the date in question. Now you can just add this new
field to your pivot and refresh the pivot.
--
HTH...

Jim Thomlinson


"DS" wrote:

I have a spreadsheet ( Excel 2003 ) that has Column A filled with company
names and column B with dates. Company A appears 20 times followed by
company B 10 times and so on in column A. Column B contains dates that
orders were placed by these companies. I have created a PivotTable that that
runs a count and displays Company Name in the row fields area and count for
that company in the data field area. I would like to run a second count so
that I can identify the number of times company A appears before a specific
date from column B. It should look like this:

Desired PivotTable Layout - I have the first two columns already
Name Count of Company Name Occurances/Comp A Before
"Date"
Company A 20 3
Company B 10 7
Company C 17 4

Thanks in advance for the help.

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 or sumif I need help, Thank you Eduardo Excel Discussion (Misc queries) 4 September 26th 08 02:12 PM
SumProduct or sumif TitanG Excel Worksheet Functions 4 September 11th 08 09:02 PM
Sumproduct/SumIf T Excel Worksheet Functions 5 August 25th 08 07:36 PM
HELP !!! SUMIF or SUMPRODUCT Soultek Excel Discussion (Misc queries) 3 March 21st 07 03:30 PM
sumif or sumproduct Jim Excel Worksheet Functions 2 January 6th 06 01:02 PM


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