Count # of days listed for month/year

jodipy

New Member
Joined
Sep 9, 2013
Messages
16
Hi!

I have column A:A as date (dd/mm/yyyy) from Sales entry*, column B:B as amount and D1 through D12 are months & years (11/2018, 12/2018, 01/2019, 02/2019....)
How do I calculate the sales entry by month and year in column D?
*Note: No sales entry date if the amount is 0 or store is closed.

Thanks
 
Last edited:

Some videos you may like

Excel Facts

How to calculate loan payments in Excel?
Use the PMT function: =PMT(5%/12,60,-25000) is for a $25,000 loan, 5% annual interest, 60 month loan.

jodipy

New Member
Joined
Sep 9, 2013
Messages
16
I currently using the formula =COUNTIFS($A:$A,">="&$A:$A,"<"&EDATE($D1,1)). It calculates the days but if there is overlapping 2 or more years data, number of days in Jan is doubled up.
 
Last edited:

Watch MrExcel Video

Forum statistics

Threads
1,099,398
Messages
5,468,390
Members
406,584
Latest member
dsberrycpa

This Week's Hot Topics

Top