Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
I have the date in column A mmddyyy and I need a sumproduct formula
to deliver the sales for Mike in December. Salesperson is in B and sales is in C. How to I extract the month from culom A in the sumproduct formula?? Thanks all! |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
=sumproduct((month(a2:a22)=12)*(b2:b22="mike")*c2: c22)
-- Don Guillett Microsoft MVP Excel SalesAid Software "wx4usa" wrote in message ... I have the date in column A mmddyyy and I need a sumproduct formula to deliver the sales for Mike in December. Salesperson is in B and sales is in C. How to I extract the month from culom A in the sumproduct formula?? Thanks all! |
#3
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
"wx4usa" wrote:
I have the date in column A mmddyyy and I need a sumproduct formula to deliver the sales for Mike in December. Salesperson is in B and sales is in C. How to I extract the month from culom A in the sumproduct formula? That depends on what you mean by mmddyyy [sic]. If you have a date (serial number) that is formatted as mmddyyyy, you can simply do: =sumproduct((month(a1:a100)=12)*(b1:b100="mike"),c 1:c100) But if mmddyyyy is text, you might do: =sumproduct((--left(a1:a100,2)=12)*(b1:b100="mike"),c1:c100) On the other hand, if mmddyyyy is a number formatted as 00000000, the LEFT expression above will not work for months less than 10, despite the format to display the leading zero. Instead, you might do: =sumproduct((int(a1:a100/1000000)=12)*(b1:b100="mike"),c1:c100) |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Convert text date to mmddyyy date | Excel Discussion (Misc queries) | |||
SUMPRODUCT - Using Month | Excel Worksheet Functions | |||
SUMPRODUCT - Using Month | Excel Worksheet Functions | |||
Month Conversion in SUMPRODUCT | Excel Worksheet Functions | |||
Problem with sumproduct and month=1 | Excel Worksheet Functions |