missdeannamarie

New Member
Joined
Mar 31, 2014
Messages
25
Hello,

New here, but pretty certain i searched through all forums for an answer to my questions before posting this.

I've been stuck on this for a couple of days now. I have three columns in a table I want to use for this formula.

Build Status (Column A), Data Submit (Column B) and Ship Date (Column C)

I want to sum a range of cells that fall into a certain month and year. Here is my formula for that, which works perfectly:
=SUMPRODUCT((MONTH(Table2[Data Submit])=4)*(YEAR(Table2[Data Submit])=2014))

Now, I want to sum that same range of cells for that same criteria, however I want to omit any cells that shipped the previous month.

I have tried this, but it doesnt work:
=SUMPRODUCT((MONTH(Table2[Data Submit])=4)*(YEAR(Table2[Data Submit])=2014)),--(((MONTH(Table2[Ship Date])=3)*(YEAR(Table2[Ship Date])=2014))*(Table2[Build Status]<>"Shipped"))

Can anyone offer some insight or help??!??

Thank you,
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Post up a sample data, shouldn't be too hard. Would help to see the data. Is 4 April?
 
Upvote 0
Here is an example, my table contains dates from now until the end of 2015. What I want is to be able to count the number of cells with a certain month and year, but dont count it if it has a ship date of a previous month.

So in this case, out of 49 entries of April dates, I only want a formula that counts if it doesnt have a ship date in March, but if it has a ship date in April i want it counted.

So i would get a formula with an outcome of 35 cells.
Build StatusData Submit Ship Date
In Work4/1
In Design4/1
O/F Quote4/1
In Work4/2
In Work4/2
In Work4/2
In Work4/3
In Work4/3
In Work4/3
In Work4/3
Shipped4/33/25
In Work4/3
In Work4/3
Shipped4/43/26
In Work4/4
Shipped4/43/26
In Work4/4
In Work4/4
In Work4/4
In Work4/4
Shipped4/43/26
In Work4/4
In Work4/4
Shipped4/43/11
Shipped4/43/11
In Work4/4
In Work4/4
In Work4/4
In Work4/4
In Work4/4
In Work4/4
In Work4/4
Shipped4/43/26
In Work4/4
Shipped4/43/26
In Work4/4
Shipped4/43/26
In Work4/4
Shipped4/43/26
Shipped4/43/20
Shipped4/43/20
Shipped4/43/20
Shipped4/43/20
In Work4/4
In Work4/4
In Work4/5
In Work4/7
In Work4/7
In Work4/7

<colgroup><col><col><col></colgroup><tbody>
</tbody>
 
Upvote 0
I created a helper column called D2 which contained 4/1/2014 and got 35

This is an array so control + Shift + Enter

=COUNT(IF(MONTH($B$2:$B$50)=MONTH(D2),$B$2:$B$50))-COUNT(IF(MONTH($C$2:$C$50)=MONTH(D2-1),$C$2:$C$50))
 
Upvote 0
Try this...
=SUMPRODUCT(--(TEXT($B$2:$B$50,"YYYYMM")="201404"))-SUMPRODUCT((TEXT($B$2:$B$50,"YYYYMM")="201404")*(TEXT($C$2:$C$50,"YYYYMM")="201403"))
 
Upvote 0

Forum statistics

Threads
1,220,965
Messages
6,157,120
Members
451,399
Latest member
alchavar

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top