Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Aaron Saulisberry
 
Posts: n/a
Default SUMPRODUCT breakdown by date

I'm currently using the formula below to breake it down by month but I also
need to have it breakdown those months by year.

SUMPRODUCT(--(MONTH(Sheet!A1:A10)=1),--(Sheet!B1:B10=Sheet1!C1:C10),Sheet1B1:B10)

This formula compares two columns and if those columns have the same data
for the same month then it returns the sum of the data. The only problem is
is does not distingush between year, which I need it to do so.

Any help is appreciated.

1-JAN-05
  #2   Report Post  
Posted to microsoft.public.excel.misc
Arvi Laanemets
 
Posts: n/a
Default SUMPRODUCT breakdown by date

Hi


SUMPRODUCT(--(TEXT(Sheet!A1:A10,"yyyy.mm")="2006.01"),--(Sheet!B1:B10=Sheet1!C1:C10),Sheet1B1:B10)


--
Arvi Laanemets
( My real mail address: arvi.laanemets<attarkon.ee )



"Aaron Saulisberry" wrote in
message ...
I'm currently using the formula below to breake it down by month but I
also
need to have it breakdown those months by year.

SUMPRODUCT(--(MONTH(Sheet!A1:A10)=1),--(Sheet!B1:B10=Sheet1!C1:C10),Sheet1B1:B10)

This formula compares two columns and if those columns have the same data
for the same month then it returns the sum of the data. The only problem
is
is does not distingush between year, which I need it to do so.

Any help is appreciated.

1-JAN-05



  #3   Report Post  
Posted to microsoft.public.excel.misc
Aaron Saulisberry
 
Posts: n/a
Default SUMPRODUCT breakdown by date

This keeps returning zero... does the date in column A have to be in the
format "yyyy.mm"?

"Arvi Laanemets" wrote:

Hi


SUMPRODUCT(--(TEXT(Sheet!A1:A10,"yyyy.mm")="2006.01"),--(Sheet!B1:B10=Sheet1!C1:C10),Sheet1B1:B10)


--
Arvi Laanemets
( My real mail address: arvi.laanemets<attarkon.ee )



"Aaron Saulisberry" wrote in
message ...
I'm currently using the formula below to breake it down by month but I
also
need to have it breakdown those months by year.

SUMPRODUCT(--(MONTH(Sheet!A1:A10)=1),--(Sheet!B1:B10=Sheet1!C1:C10),Sheet1B1:B10)

This formula compares two columns and if those columns have the same data
for the same month then it returns the sum of the data. The only problem
is
is does not distingush between year, which I need it to do so.

Any help is appreciated.

1-JAN-05




  #4   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default SUMPRODUCT breakdown by date

SUMPRODUCT(--(YEAR(Sheet!A1:A10)=2005),(--(MONTH(Sheet!A1:A10)=1),--(Sheet!B
1:B10=Sheet1!C1:C10),Sheet1B1:B10)

is an alternative

--

HTH

Bob Phillips

(remove nothere from the email address if mailing direct)

"Aaron Saulisberry" wrote in
message ...
This keeps returning zero... does the date in column A have to be in the
format "yyyy.mm"?

"Arvi Laanemets" wrote:

Hi



SUMPRODUCT(--(TEXT(Sheet!A1:A10,"yyyy.mm")="2006.01"),--(Sheet!B1:B10=Sheet1
!C1:C10),Sheet1B1:B10)


--
Arvi Laanemets
( My real mail address: arvi.laanemets<attarkon.ee )



"Aaron Saulisberry" wrote

in
message ...
I'm currently using the formula below to breake it down by month but I
also
need to have it breakdown those months by year.


SUMPRODUCT(--(MONTH(Sheet!A1:A10)=1),--(Sheet!B1:B10=Sheet1!C1:C10),Sheet1B1
:B10)

This formula compares two columns and if those columns have the same

data
for the same month then it returns the sum of the data. The only

problem
is
is does not distingush between year, which I need it to do so.

Any help is appreciated.

1-JAN-05






  #5   Report Post  
Posted to microsoft.public.excel.misc
Arvi Laanemets
 
Posts: n/a
Default SUMPRODUCT breakdown by date

Hi


"Aaron Saulisberry" wrote in
message ...
This keeps returning zero... does the date in column A have to be in the
format "yyyy.mm"?


No. It simply must be in any valid date format. I just checked to be sure,
and it even worked when instead dates in column A were date strings (column
A formatted as text).


--
Arvi Laanemets
( My real mail address: arvi.laanemets<attarkon.ee )




"Arvi Laanemets" wrote:

Hi


SUMPRODUCT(--(TEXT(Sheet!A1:A10,"yyyy.mm")="2006.01"),--(Sheet!B1:B10=Sheet1!C1:C10),Sheet1B1:B10)


--
Arvi Laanemets
( My real mail address: arvi.laanemets<attarkon.ee )



"Aaron Saulisberry" wrote in
message ...
I'm currently using the formula below to breake it down by month but I
also
need to have it breakdown those months by year.

SUMPRODUCT(--(MONTH(Sheet!A1:A10)=1),--(Sheet!B1:B10=Sheet1!C1:C10),Sheet1B1:B10)

This formula compares two columns and if those columns have the same
data
for the same month then it returns the sum of the data. The only
problem
is
is does not distingush between year, which I need it to do so.

Any help is appreciated.

1-JAN-05








  #6   Report Post  
Posted to microsoft.public.excel.misc
Arvi Laanemets
 
Posts: n/a
Default SUMPRODUCT breakdown by date

PS. To check, is a date in valid format, change the cell format to General -
the date must be displayed as number now (p.e. todays date will be displayed
as 38741)


--
Arvi Laanemets
( My real mail address: arvi.laanemets<attarkon.ee )


"Aaron Saulisberry" wrote in
message ...
This keeps returning zero... does the date in column A have to be in the
format "yyyy.mm"?

"Arvi Laanemets" wrote:

Hi


SUMPRODUCT(--(TEXT(Sheet!A1:A10,"yyyy.mm")="2006.01"),--(Sheet!B1:B10=Sheet1!C1:C10),Sheet1B1:B10)


--
Arvi Laanemets
( My real mail address: arvi.laanemets<attarkon.ee )



"Aaron Saulisberry" wrote in
message ...
I'm currently using the formula below to breake it down by month but I
also
need to have it breakdown those months by year.

SUMPRODUCT(--(MONTH(Sheet!A1:A10)=1),--(Sheet!B1:B10=Sheet1!C1:C10),Sheet1B1:B10)

This formula compares two columns and if those columns have the same
data
for the same month then it returns the sum of the data. The only
problem
is
is does not distingush between year, which I need it to do so.

Any help is appreciated.

1-JAN-05






  #7   Report Post  
Posted to microsoft.public.excel.misc
Aaron Saulisberry
 
Posts: n/a
Default SUMPRODUCT breakdown by date

I need to be a little more patient when hitting the reply button... not even
two minutes after I posted my reply I figured it out.

Thanks for the help everybody... greatly appriciated.

"Arvi Laanemets" wrote:

PS. To check, is a date in valid format, change the cell format to General -
the date must be displayed as number now (p.e. todays date will be displayed
as 38741)


--
Arvi Laanemets
( My real mail address: arvi.laanemets<attarkon.ee )


"Aaron Saulisberry" wrote in
message ...
This keeps returning zero... does the date in column A have to be in the
format "yyyy.mm"?

"Arvi Laanemets" wrote:

Hi


SUMPRODUCT(--(TEXT(Sheet!A1:A10,"yyyy.mm")="2006.01"),--(Sheet!B1:B10=Sheet1!C1:C10),Sheet1B1:B10)


--
Arvi Laanemets
( My real mail address: arvi.laanemets<attarkon.ee )



"Aaron Saulisberry" wrote in
message ...
I'm currently using the formula below to breake it down by month but I
also
need to have it breakdown those months by year.

SUMPRODUCT(--(MONTH(Sheet!A1:A10)=1),--(Sheet!B1:B10=Sheet1!C1:C10),Sheet1B1:B10)

This formula compares two columns and if those columns have the same
data
for the same month then it returns the sum of the data. The only
problem
is
is does not distingush between year, which I need it to do so.

Any help is appreciated.

1-JAN-05






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
Can a date be used for conditional formatting? Stevie P Excel Worksheet Functions 2 September 27th 05 09:42 PM
How do I calculate if a date is in a certain time frame? Pe66les Excel Worksheet Functions 19 August 27th 05 11:07 PM
Using sumproduct to count number by date JerryS Excel Worksheet Functions 2 June 6th 05 10:37 PM
Date Math Problem Dkline Excel Worksheet Functions 4 March 4th 05 04:11 PM
Need help troubleshooting an array formula XLXP on Win2K KR Excel Worksheet Functions 1 December 13th 04 07:41 PM


All times are GMT +1. The time now is 12:01 AM.

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"