Dummy Excel

Well-known Member
Joined
Sep 21, 2005
Messages
1,004
Office Version
  1. 2019
  2. 2010
  3. 2007
Platform
  1. Windows
Hi All,
i have setup an invoice date and i need to automate the payment due date (7 days after the invoice date)

Ive formatted the date as dd mmmm yyyy although how do i automatically add the "st" (for 1st), or "nd" (for 2nd) etc? Need it to be 7th May 2019

thanks
Sam
 

Excel Facts

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
yes, thats what im after although i changed the formula to suit

=DAY(A10+7)&MID("thstndrdth",MIN(9,2*RIGHT(A10)*(MOD(A10-11,100)>2)+1),2)&TEXT(TODAY()," mmmm yyyy")

appreciate your help
Sam
 
Upvote 0
actually on further testing im getting incorrect details...
if A10 = 26/04/19, im getting 3st May 2019

any ideas?
 
Upvote 0
Sam

If you are trying to get the ordinal suffix for A10+7 then you need to use A10+7 in the part of the formula that gets the suffix.


=DAY(A10+7)&LOOKUP(DAY(A10+7),{1,2,3,4,21,22,23,24,31;"st","nd","rd","th","st","nd","rd","th","st"})

Note, I've used a different formula to get the suffix
 
Upvote 0

Forum statistics

Threads
1,215,712
Messages
6,126,408
Members
449,313
Latest member
tomgrandy

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