Related:
- Stop counting days in excel when status is changed
- Viber online status - Guide
- Skype last seen days ago - Guide
- What happens when you turn off seen status on viber - Guide
- Number to words in excel - Guide
- How to change author in excel - Guide
5 responses
So it is to figure what day it is, and only act when it finds out is the last day of the month?
Have you turned on the developer tab in Excel yet?
Have you turned on the developer tab in Excel yet?
TrowaD
Posts
2921
Registration date
Sunday September 12, 2010
Status
Moderator
Last seen
December 27, 2022
555
Jun 26, 2018 at 11:44 AM
Jun 26, 2018 at 11:44 AM
Hey Mark, what happened to KISS?
When the admit date is in A1 and the discharge date is in B1:
=IF(B1="",DATE(YEAR(A1),MONTH(A1)+1,0)-A1,B1-A1)
Best regards,
Trowa
When the admit date is in A1 and the discharge date is in B1:
=IF(B1="",DATE(YEAR(A1),MONTH(A1)+1,0)-A1,B1-A1)
Best regards,
Trowa
Didn't find the answer you are looking for?
Ask a question
What if there is no discharge date and I want to count from the admission date to the end of the month.
TrowaD
Posts
2921
Registration date
Sunday September 12, 2010
Status
Moderator
Last seen
December 27, 2022
555
Jun 28, 2018 at 10:44 AM
Jun 28, 2018 at 10:44 AM
Hi Brande,
Have you tried the formula?
When you enter for example 14-6-2018 in A1 and leave B1 blank, then result will be 16. When you enter 20-6-2018 in B1 then the result will be 6. Wasn't that what you were after?
Best regards,
Trowa
Have you tried the formula?
When you enter for example 14-6-2018 in A1 and leave B1 blank, then result will be 16. When you enter 20-6-2018 in B1 then the result will be 6. Wasn't that what you were after?
Best regards,
Trowa