ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   New Users to Excel (https://www.excelbanter.com/new-users-excel/)
-   -   End of Month question (https://www.excelbanter.com/new-users-excel/28499-end-month-question.html)

Purple_Jack

End of Month question
 

In a cell, I have the current date in format -dd/mm/yyyy-. In the cell
below, I want to automatically insert the text Yes if this is the last
day of the month or No if it isn't.

What's the simplest way to do this?

Thanks in advance. :)


--
Purple_Jack
------------------------------------------------------------------------
Purple_Jack's Profile: http://www.excelforum.com/member.php...o&userid=23884
View this thread: http://www.excelforum.com/showthread...hreadid=375192


mangesh_yadav


Use:
=IF(MONTH(DATE(YEAR(A1),MONTH(A1),DAY(A1))+1)=MONT H(A1),"No","Yes")

or
=IF(EOMONTH(A1,"0")=A1,"Yes","No")

For the second one, you require to enable the Analysis ToolPak (Tools
Addins. Check the box for ATP)

Mangesh


--
mangesh_yadav
------------------------------------------------------------------------
mangesh_yadav's Profile: http://www.excelforum.com/member.php...o&userid=10470
View this thread: http://www.excelforum.com/showthread...hreadid=375192


Purple_Jack


That works perfectly (and you were very fast too). :)

Thanks a lot.


--
Purple_Jack
------------------------------------------------------------------------
Purple_Jack's Profile: http://www.excelforum.com/member.php...o&userid=23884
View this thread: http://www.excelforum.com/showthread...hreadid=375192


mangesh_yadav


Thanks for the feedback.

Mangesh


--
mangesh_yadav
------------------------------------------------------------------------
mangesh_yadav's Profile: http://www.excelforum.com/member.php...o&userid=10470
View this thread: http://www.excelforum.com/showthread...hreadid=375192


Bob Phillips

Simpler

=IF(MONTH(A1+1)=MONTH(A1),"No","Yes")

--
HTH

Bob Phillips

"mangesh_yadav"
wrote in message
news:mangesh_yadav.1pw7uj_1117537514.6793@excelfor um-nospam.com...

Use:
=IF(MONTH(DATE(YEAR(A1),MONTH(A1),DAY(A1))+1)=MONT H(A1),"No","Yes")

or
=IF(EOMONTH(A1,"0")=A1,"Yes","No")

For the second one, you require to enable the Analysis ToolPak (Tools
Addins. Check the box for ATP)

Mangesh


--
mangesh_yadav
------------------------------------------------------------------------
mangesh_yadav's Profile:

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




Bob Umlas

Simpler:
=IF(DAY(A1+1)=1,"Yes","No")

Bob Umlas
Excel MVP

"Bob Phillips" wrote in message
...
Simpler

=IF(MONTH(A1+1)=MONTH(A1),"No","Yes")

--
HTH

Bob Phillips

"mangesh_yadav"


wrote in message
news:mangesh_yadav.1pw7uj_1117537514.6793@excelfor um-nospam.com...

Use:
=IF(MONTH(DATE(YEAR(A1),MONTH(A1),DAY(A1))+1)=MONT H(A1),"No","Yes")

or
=IF(EOMONTH(A1,"0")=A1,"Yes","No")

For the second one, you require to enable the Analysis ToolPak (Tools
Addins. Check the box for ATP)

Mangesh


--
mangesh_yadav
------------------------------------------------------------------------
mangesh_yadav's Profile:

http://www.excelforum.com/member.php...o&userid=10470
View this thread:

http://www.excelforum.com/showthread...hreadid=375192







All times are GMT +1. The time now is 08:57 PM.

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