Good evening. I have a table of data where the month and days are provided like:
2 M 14 D
I need to convert this to number of days, assuming the month is 30 days, so for the above would be 74
Grateful if your clever minds can help.
Thanks
Good evening. I have a table of data where the month and days are provided like:
2 M 14 D
I need to convert this to number of days, assuming the month is 30 days, so for the above would be 74
Grateful if your clever minds can help.
Thanks
Sorry i should add the format changes so could be
3 M 13 D
4 M 12 D
4 M 22 D
4 M 1 D
is that data in separate columns or all in the same column/cell
If it is like the attached pic, try this formula (assuming you will always use 30 days)
copy down.Please Login or Register to view this content.
Last edited by cubangt; 08-11-2021 at 02:48 PM.
If you find the suggestion or solution helpful, please consider adding reputation to the post.
If your data is all in one cell, formatted as number of months-space-M-space-number of days-space-D then you can use this:
Formula:Please Login or Register to view this content.
Edit: the above assumes that the number of months will not be more than two digits. If you could have more than 99 M, use this instead:
Formula:Please Login or Register to view this content.
Last edited by Aardigspook; 08-11-2021 at 03:14 PM.
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.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks