![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Feb 2002
Posts: 3,064
|
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 |
|
|
|
|
|
#2 |
|
Board Regular
Join Date: Feb 2002
Location: Perth Australia
Posts: 1,567
|
Jack
Custom format cells #"st Feb 2002" Is that what you mean? Derek |
|
|
|
|
|
#3 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Bogota, Colombia
Posts: 11,927
|
Or use:
DateValue(Year(Date),Month(Date),MyInput+0) |
|
|
|
|
|
#4 |
|
Board Regular
Join Date: Feb 2002
Posts: 3,064
|
Cheers guys...
big thanks Rgds =========== Jack |
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Feb 2002
Location: Boston, Mass
Posts: 169
|
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! |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|