I am using the following formula, but it is not correct. With this formula, it's showing 35rd.
![]()
Please Login or Register to view this content.
I am using the following formula, but it is not correct. With this formula, it's showing 35rd.
![]()
Please Login or Register to view this content.
Could you post a simple worsheet?
Quang PT
Have a look at this thread from the 'Tips and Tutorials' section of the forum - it describes how to get ordinal numbers for numbers, dates, etc in various different ways: http://www.excelforum.com/tips-and-t...-or-later.html
I recommend the Conditional Formatting method, as the numbers stay as numbers so can be used in calculations.
If the thread is useful, please consider giving the poster there some rep.
Regards,
Aardigspook
I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
You don't need to give me rep if I helped, but a thank-you is nice.
I tried all of the different conditional formats on there, none of them worked. None of them added anything to the numbers. There is more information in the cell than just a number. The formula I'm using brings up Joe's Birthday 35rd.
![]()
Please Login or Register to view this content.
I trimmed the sheet down to this.
The results would be the correct st, nd, rd, th behind the numbers.
Try this...
Data Range
A B C 1 6/11/1980 Joe's Birthday 35th Joe's Birthday 2 12/3/1979 Jennifer's Birthday 35th Jennifer's Birthday 3 10/28/1997 Casee's Birthday 17th Casee's Birthday 4 11/3/2001 Masee's Birthday 13th Masee's Birthday 5 2/23/2009 Jami's Birthday 6th Jami's Birthday 6 3/31/2001 Joe & Jennifer's Anniversary 14th Joe & Jennifer's Anniversary
This formula entered in B1 and copied down:
=C1&DATEDIF(A1,NOW(),"y")&MID("thstndrdth",MIN(9,2*RIGHT(DATEDIF(
A1,NOW(),"y"))*(MOD(DATEDIF(A1,NOW(),"y")-11,100)>2)+1),2)
You're welcome. Thanks for the feedback!![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks