Sum of one column based on Month value in another?

MajesticNJ

New Member
Joined
Mar 11, 2011
Messages
6
Good morning all,

I have a situation where we have a sales spreadsheet and I need to provide sales values for any given month.

In this case, the date is in one column and includes month, day, year. Date format is MM/DD/YYYY. Column is E.

Then there is another column that contains a dollar value. Column is V.

I need to provide the sum of all dollar values in any given month. Being able to do it by a range of months would also be a helpful plus. :)

Lastly, the sum would output on a different tab. The data collection tab is named ORDERS.

Hope this is enough information to assist. Thanks in advance!

Fred
 
The only thing I can think of is your H5 formula is looking for Jan Feb Mar etc.

The date values are in the ORDERS tab and in column E. The format is mm/dd/yyyy. I need to show the sum of all orders for the month by month.

Let us break down the H2 formula, the first range refers to the column of dates in mm/dd/yyyy format (although the format is not critical as long as they are valid dates).

=SUMPRODUCT(--(TEXT($C$2:$C$6,"Mmm")=G2),$D$2:$D$6)

The middle range refers to the cell next to the results table that holds the word "Jan", i.e. the row heading / title.

=SUMPRODUCT(--(TEXT($C$2:$C$6,"Mmm")=G2),$D$2:$D$6)

The last range refers to the column of dollar values.

=SUMPRODUCT(--(TEXT($C$2:$C$6,"Mmm")=G2),$D$2:$D$6)

Does that help?
 
Upvote 0

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
Thanks so much guys. I think I have it working now.

So I was asked for a follow up.

Now on top of this I need to be able to show the number of completed orders for a given month.

We DO have a column that shows when an order is completed and in that column we put a date. So rather than come up with a value, I guess I would want to just count the number of dates that are filled in in the column within a specific month.

Column E contains the date that an order was started.
Column N contains the date that an order was completed.
I need to count the number of orders that completed in a month period.
The TAB the data is on remains to be ORDERS.

Thanks for the help everyone!!! :)
 
Upvote 0

Forum statistics

Threads
1,224,602
Messages
6,179,843
Members
452,948
Latest member
UsmanAli786

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