Convert input data

Jack in the UK

Well-known Member
Joined
Feb 16, 2002
Messages
3,215
Hi guys playing with :

If i input 21 say as today is 21st Feb 2002 i need to convert to Correct 21st Feb 2002

All i will input is 21??? any ideas guys rather than have 21 in one column and next column converts.

Cheers guys

Rdgs
=========
Jack
 

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.
Jack,
You could try...
=DAY(C8)&IF(INT(MOD(DAY(C8),100)/10)=1,"th",IF(MOD(DAY(C8),10)=1,"st",IF(MOD(DAY(C8),10)=2,"nd",IF(MOD(DAY(C8),10)=3,"rd","th"))))&" "&TEXT(C8,"mmm yyyy")
where c8 houses a date but the result becomes text.

HTH,
Drew
FYI the above comes from J. Walkenbach. Someday I'll get there!
 
Upvote 0

Forum statistics

Threads
1,214,375
Messages
6,119,165
Members
448,870
Latest member
max_pedreira

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