how calculate remaining days based on same days for each month

Ali M

Active Member
Joined
Oct 10, 2021
Messages
287
Office Version
  1. 2019
  2. 2013
Platform
  1. Windows
Hello
I want showin result in B2 gives me how remains days based on day 28/mm/yyyy . the day (28) is the same thing for each month .
for instance if date(today) is 14/09/2022 when calculate for date 28/09/2022 then the result in B2 should be 14 days remaining
thanks
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
If it is always the same simply
Excel Formula:
=28-DAY(TODAY())
Format the cell to show a number not a date
 
Upvote 0
What would you expect the answer to be if Today was the 30th of the month?
 
Upvote 0
@Fluff the calculation up to 28 for each month . ignore after 28 (29,30,31)
 
Upvote 0
In that case how about
Excel Formula:
=IF(DAY(TODAY())>28,"",28-DAY(TODAY()) & " DAYS REMAINING")
 
Upvote 0
Solution
@Fluff I changed the date in PC to 29/09/2022 to see how the formula work
it gives empty I don't want this. I want if the day 29 or 30 or 31 should also show the result up to 28 . in this case should keep the result "14 DAYS REMAINING"
 
Upvote 0
If Today was the 29th why would you get 14 days?
 
Upvote 0

Forum statistics

Threads
1,214,950
Messages
6,122,428
Members
449,083
Latest member
Ava19

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