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...???
Excel
Jan 24, 2021Iron Contributor
Yes sir... You are correctπ
Sir what if i want to change to -
22nd Dec - 22-Dec-2021(in date format)
Riny_van_Eekelen
Jan 24, 2021Platinum Contributor
Excel Not pretty, but like this:
=VALUE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(B13,"st ","-"),"nd ","-"),"rd ","-"),"th ","-"))
- ExcelJan 24, 2021Iron Contributor
- Riny_van_EekelenJan 24, 2021Platinum Contributor
Excel You're welcome!