Text AND Date formula for the 20th of the following month

Hi, supposing I create an invoice with a date "03-04-25" (A4) and, in another cell I would like to add the due date as the 20th of the next month, is there a way to do this as a single string so that the result is 'Due 20-05-25"

My attempt ends up like this:

"Due 20-"&SUM(MONTH(A4)+1)&"-"&YEAR(A4)


and the result is "Due 20-5-2025"


I'd ideally like the result to be "Due 20-05-25" so I must have to apply some formatting somewhere?


I'm probably doing this the hard way, but this can't be an uncommonly used idea, so I'm hoping there's a solution out there!

Many thanks.

Posted on May 12, 2025 11:50 PM

Reply
Question marked as Top-ranking reply

Posted on May 13, 2025 11:36 AM

I took a different (simpler?) approach and eschewed all the text parsing.

Instead, for a given date in Cell B2, I set C2 to


=EDATE(B2,1)


This simply adds one month to the date in cell B2.


Then I applied a custom format to that cell where the format adds the text "Due: 20-" followed by the month and year:




Done.

6 replies

May 14, 2025 10:09 AM in response to actionman99

The thing I like about using custom format for the 'Due:' part of the field is that, as far as Numbers is concerned, it's still a date field. Therefore any functions that rely on a date will continue to work.


For example, if you want to add conditional highlighting for cells that are due soon, or overdue, you can do this. Likewise sorting or filtering the field is easy with inherent date cells.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Text AND Date formula for the 20th of the following month

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.