ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   CountIf by Month-to-date (https://www.excelbanter.com/excel-worksheet-functions/83359-countif-month-date.html)

ashley0578

CountIf by Month-to-date
 

I have a workbook that uses this function:

=COUNTIF('unfunded deals'!A:A,"="&TODAY()-30).

My only problem is that I actually need to count by month. How can I
rewrite this so that it will show me, for instance, Month-to-date?


--
ashley0578
------------------------------------------------------------------------
ashley0578's Profile: http://www.excelforum.com/member.php...o&userid=32757
View this thread: http://www.excelforum.com/showthread...hreadid=533059


Bob Phillips

CountIf by Month-to-date
 
maybe something like

=SUMPRODUCT(--(MONTH('unfunded deals'!A:A)=MONTH(TODAY())),--YEAR('unfunded
deals'!A:A)=YEAR(TODAY()))


--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"ashley0578" wrote
in message ...

I have a workbook that uses this function:

=COUNTIF('unfunded deals'!A:A,"="&TODAY()-30).

My only problem is that I actually need to count by month. How can I
rewrite this so that it will show me, for instance, Month-to-date?


--
ashley0578
------------------------------------------------------------------------
ashley0578's Profile:

http://www.excelforum.com/member.php...o&userid=32757
View this thread: http://www.excelforum.com/showthread...hreadid=533059




bpeltzer

CountIf by Month-to-date
 
You'd need to replace today()-30 with a calculation that returns the
beginning of the month: today()-day(today())+1.
If you want a specific month, I'd use two countif functions, along the lines
of
=COUNTIF('unfunded deals'!A:A,"="&date(2006,1,1)) - COUNTIF('unfunded
deals'!A:A,"="&date(2006,2,1)). That would count the number in Jan '06 (all
those from 1/1/06 on, minus all those from 2/1/06 on, leaving only those in
January)

"ashley0578" wrote:


I have a workbook that uses this function:

=COUNTIF('unfunded deals'!A:A,"="&TODAY()-30).

My only problem is that I actually need to count by month. How can I
rewrite this so that it will show me, for instance, Month-to-date?


--
ashley0578
------------------------------------------------------------------------
ashley0578's Profile: http://www.excelforum.com/member.php...o&userid=32757
View this thread: http://www.excelforum.com/showthread...hreadid=533059



ashley0578

CountIf by Month-to-date
 

bpeltzer Wrote:
You'd need to replace today()-30 with a calculation that returns the
beginning of the month: today()-day(today())+1.
If you want a specific month, I'd use two countif functions, along the
lines
of
=COUNTIF('unfunded deals'!A:A,"="&date(2006,1,1)) - COUNTIF('unfunded
deals'!A:A,"="&date(2006,2,1)). That would count the number in Jan
'06 (all
those from 1/1/06 on, minus all those from 2/1/06 on, leaving only
those in
January)


Thanks for the help! Let me explain what I've done in the workbook so
far...
This workbook has three sheets; unfunded deals, funded deals and a
sheet for a recap with just the numbers. I used the countif() statement
to count the number of deals from the today's date minus a certain
amount of days. Column A has the dates in it. The dates are formatted
like April 17, 2006. So, from today - 30 there are 18 unfunded deals
left. While the formula above would work, this would mean that I
would have to change the formula in the workbook once a month. Is
there a way that would look at today's date (April 17, 2006), extract
the month April and count those in Column A with the month April?


--
ashley0578
------------------------------------------------------------------------
ashley0578's Profile: http://www.excelforum.com/member.php...o&userid=32757
View this thread: http://www.excelforum.com/showthread...hreadid=533059


Bob Phillips

CountIf by Month-to-date
 
=COUNTIF('unfunded deals'!A:A,"="&TODAY()-30)-COUNTIF('unfunded
deals'!A:A,"="&TODAY())

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"ashley0578" wrote
in message ...

bpeltzer Wrote:
You'd need to replace today()-30 with a calculation that returns the
beginning of the month: today()-day(today())+1.
If you want a specific month, I'd use two countif functions, along the
lines
of
=COUNTIF('unfunded deals'!A:A,"="&date(2006,1,1)) - COUNTIF('unfunded
deals'!A:A,"="&date(2006,2,1)). That would count the number in Jan
'06 (all
those from 1/1/06 on, minus all those from 2/1/06 on, leaving only
those in
January)


Thanks for the help! Let me explain what I've done in the workbook so
far...
This workbook has three sheets; unfunded deals, funded deals and a
sheet for a recap with just the numbers. I used the countif() statement
to count the number of deals from the today's date minus a certain
amount of days. Column A has the dates in it. The dates are formatted
like April 17, 2006. So, from today - 30 there are 18 unfunded deals
left. While the formula above would work, this would mean that I
would have to change the formula in the workbook once a month. Is
there a way that would look at today's date (April 17, 2006), extract
the month April and count those in Column A with the month April?


--
ashley0578
------------------------------------------------------------------------
ashley0578's Profile:

http://www.excelforum.com/member.php...o&userid=32757
View this thread: http://www.excelforum.com/showthread...hreadid=533059




ashley0578

CountIf by Month-to-date
 

Bob Phillips Wrote:
=COUNTIF('unfunded deals'!A:A,"="&TODAY()-30)-COUNTIF('unfunded
deals'!A:A,"="&TODAY())


I see where you are going with this but it's giving me the same result,
and not the actual month-to-date. Any other suggestions??? I know if I
wanted to find the actual month only using a full date in Access, I'd
use Between DateSerial(Year(Date()),Month(Date()),1) And Date() to
yield all the results of this month.


--
ashley0578
------------------------------------------------------------------------
ashley0578's Profile: http://www.excelforum.com/member.php...o&userid=32757
View this thread: http://www.excelforum.com/showthread...hreadid=533059


Bob Phillips

CountIf by Month-to-date
 
That is effectively what that formula is doing.

Can you give an example of the data, what that formula returns, and what you
expect to see?

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"ashley0578" wrote
in message ...

Bob Phillips Wrote:
=COUNTIF('unfunded deals'!A:A,"="&TODAY()-30)-COUNTIF('unfunded
deals'!A:A,"="&TODAY())


I see where you are going with this but it's giving me the same result,
and not the actual month-to-date. Any other suggestions??? I know if I
wanted to find the actual month only using a full date in Access, I'd
use Between DateSerial(Year(Date()),Month(Date()),1) And Date() to
yield all the results of this month.


--
ashley0578
------------------------------------------------------------------------
ashley0578's Profile:

http://www.excelforum.com/member.php...o&userid=32757
View this thread: http://www.excelforum.com/showthread...hreadid=533059




ashley0578

CountIf by Month-to-date
 

I've attached the file I've been working on (names removed to protect
the innocent!).

What I expect to see on the recap sheet is the total amount of deals
unfunded for the month to date, which for this month would be April 1 -
April 19. Below that, I would see a sum of the total amount of money we
would expect to see from those customers by the end of their loan.

This would be the same for week to today (Sunday thru today).

All of this would be repeated for the funded deals and turndowns.


+-------------------------------------------------------------------+
|Filename: Deal Log example.zip |
|Download: http://www.excelforum.com/attachment.php?postid=4658 |
+-------------------------------------------------------------------+

--
ashley0578
------------------------------------------------------------------------
ashley0578's Profile: http://www.excelforum.com/member.php...o&userid=32757
View this thread: http://www.excelforum.com/showthread...hreadid=533059


Bob Phillips

CountIf by Month-to-date
 
I have posted a workbook at http://cjoint.com/?etrwzrGdLu

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"ashley0578" wrote
in message ...

I've attached the file I've been working on (names removed to protect
the innocent!).

What I expect to see on the recap sheet is the total amount of deals
unfunded for the month to date, which for this month would be April 1 -
April 19. Below that, I would see a sum of the total amount of money we
would expect to see from those customers by the end of their loan.

This would be the same for week to today (Sunday thru today).

All of this would be repeated for the funded deals and turndowns.


+-------------------------------------------------------------------+
|Filename: Deal Log example.zip |
|Download: http://www.excelforum.com/attachment.php?postid=4658 |
+-------------------------------------------------------------------+

--
ashley0578
------------------------------------------------------------------------
ashley0578's Profile:

http://www.excelforum.com/member.php...o&userid=32757
View this thread: http://www.excelforum.com/showthread...hreadid=533059





All times are GMT +1. The time now is 08:35 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com