Forum Discussion
Excel
Jan 24, 2021Iron Contributor
Convert Ordinal to Cardinal number with the help of Formula or VBA code.
Hello ๐
How to Convert Ordinal number to Cardinal Number with the help of Formula or VBA?
Like -
1st -- 1
2nd -- 2
3rd -- 3
and so on.
Please help..??
Waiting for your reply...???
5 Replies
- Riny_van_EekelenPlatinum Contributor
Excel Perhaps like this?
- ExcelIron Contributor
Yes sir... You are correct๐
Sir what if i want to change to -
22nd Dec - 22-Dec-2021(in date format)
- Riny_van_EekelenPlatinum Contributor
Excel Not pretty, but like this:
=VALUE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(B13,"st ","-"),"nd ","-"),"rd ","-"),"th ","-"))