Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 24
Default Sumproduct, 3 columns and date

Hello,

I have the below formula that will find/calculate data from 3 columns. This
gives me overall total days for many months/years. A14 is a part number that
matches F8:F3000 on Overall and shop days is M8:M3000.

=SUMPRODUCT(--(LEFT(Overall!$C$8:$C$3000,2)="Cl"),--(Overall!$F$8:$F$3000=A14),Overall!$M$8:$M$3000)

Now I want to get more specific and only look for data during a specific
month/year. So using the above formula, if I have a date (C1= 1/2009,
D1=2/2009, etc.) on the current worksheet, I want it to look on Overall for
that specific month/year and give me the total. Date would be column U of
Overall.

What do I need to add to the formula?

Thanks for all the assistance.






  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Sumproduct, 3 columns and date

The below will retrieve the information for the month specified in cell C1

=SUMPRODUCT(
--(LEFT(Overall!$C$8:$C$3000,2)="Cl"),
--(MONTH(Overall!$U$8:$U$3000)=MONTH(c1)),
--(YEAR(Overall!$U$8:$U$3000)=YEAR(c1)),
--(Overall!$F$8:$F$3000=A14),Overall!$M$8:$M$3000)

'or a shortened version using TEXT()

=SUMPRODUCT(
--(LEFT(Overall!$C$8:$C$3000,2)="Cl"),
--(TEXT(Overall!$U$8:$U$3000,"mmyy")=TEXT(C1,"mmyy") ),
--(Overall!$F$8:$F$3000=A14),Overall!$M$8:$M$3000)


If this post helps click Yes
---------------
Jacob Skaria


"roy.okinawa" wrote:

Hello,

I have the below formula that will find/calculate data from 3 columns. This
gives me overall total days for many months/years. A14 is a part number that
matches F8:F3000 on Overall and shop days is M8:M3000.

=SUMPRODUCT(--(LEFT(Overall!$C$8:$C$3000,2)="Cl"),--(Overall!$F$8:$F$3000=A14),Overall!$M$8:$M$3000)

Now I want to get more specific and only look for data during a specific
month/year. So using the above formula, if I have a date (C1= 1/2009,
D1=2/2009, etc.) on the current worksheet, I want it to look on Overall for
that specific month/year and give me the total. Date would be column U of
Overall.

What do I need to add to the formula?

Thanks for all the assistance.






  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Sumproduct, 3 columns and date

Add an array to the formula:

--(TEXT(Overall!$U$8:$U$3000,"myyyy")=TEXT(C1,"myyyy "))

--
Biff
Microsoft Excel MVP


"roy.okinawa" wrote in message
...
Hello,

I have the below formula that will find/calculate data from 3 columns.
This
gives me overall total days for many months/years. A14 is a part number
that
matches F8:F3000 on Overall and shop days is M8:M3000.

=SUMPRODUCT(--(LEFT(Overall!$C$8:$C$3000,2)="Cl"),--(Overall!$F$8:$F$3000=A14),Overall!$M$8:$M$3000)

Now I want to get more specific and only look for data during a specific
month/year. So using the above formula, if I have a date (C1= 1/2009,
D1=2/2009, etc.) on the current worksheet, I want it to look on Overall
for
that specific month/year and give me the total. Date would be column U of
Overall.

What do I need to add to the formula?

Thanks for all the assistance.








  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 24
Default Sumproduct, 3 columns and date

That did it.

Thanks.

"Jacob Skaria" wrote:

The below will retrieve the information for the month specified in cell C1

=SUMPRODUCT(
--(LEFT(Overall!$C$8:$C$3000,2)="Cl"),
--(MONTH(Overall!$U$8:$U$3000)=MONTH(c1)),
--(YEAR(Overall!$U$8:$U$3000)=YEAR(c1)),
--(Overall!$F$8:$F$3000=A14),Overall!$M$8:$M$3000)

'or a shortened version using TEXT()

=SUMPRODUCT(
--(LEFT(Overall!$C$8:$C$3000,2)="Cl"),
--(TEXT(Overall!$U$8:$U$3000,"mmyy")=TEXT(C1,"mmyy") ),
--(Overall!$F$8:$F$3000=A14),Overall!$M$8:$M$3000)


If this post helps click Yes
---------------
Jacob Skaria


"roy.okinawa" wrote:

Hello,

I have the below formula that will find/calculate data from 3 columns. This
gives me overall total days for many months/years. A14 is a part number that
matches F8:F3000 on Overall and shop days is M8:M3000.

=SUMPRODUCT(--(LEFT(Overall!$C$8:$C$3000,2)="Cl"),--(Overall!$F$8:$F$3000=A14),Overall!$M$8:$M$3000)

Now I want to get more specific and only look for data during a specific
month/year. So using the above formula, if I have a date (C1= 1/2009,
D1=2/2009, etc.) on the current worksheet, I want it to look on Overall for
that specific month/year and give me the total. Date would be column U of
Overall.

What do I need to add to the formula?

Thanks for all the assistance.






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 against rows, columns Scott A[_2_] Excel Worksheet Functions 2 January 24th 08 06:18 PM
SUMPRODUCT with Hidden Columns Steven Excel Worksheet Functions 3 May 7th 07 09:03 PM
SUMPRODUCT with Hidden Columns Steven Excel Worksheet Functions 0 May 7th 07 07:39 PM
sumproduct of columns DJS Excel Worksheet Functions 5 July 19th 06 08:43 PM
sumproduct of 2 columns with date and name excel guru i''m not Excel Discussion (Misc queries) 9 December 31st 05 05:32 PM


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