Hi guys, I have a rather unique question. I have searched the forms, but no luck. Hopefully you all can help.
I have a course schedule with start date in column A and end date in col B formatted as mm/dd/yyyy. I have written the following function to display them as a date range in column C:
=text(A1, "mmm dd")&" - "&text(B1, "mmm dd")
This outputs a the date as: Jan 12 - Jan 14.
What I would like to do is take this a step further. If the end date and the start date are in the same month, I only need to display the month in the start date. For example: Jan 12 - 14. However, if the end date is in the next month, I need to display both month. Example: Mar 30 - April 01.
Beyond that, is there a way that I can have all dates 01-09 display as "1, 2, 3, 4, 5, 6, 7, 8, 9" without the preceding zero? Example: Mar 30 - Apr 1.
Thanks in advance!
I have a course schedule with start date in column A and end date in col B formatted as mm/dd/yyyy. I have written the following function to display them as a date range in column C:
=text(A1, "mmm dd")&" - "&text(B1, "mmm dd")
This outputs a the date as: Jan 12 - Jan 14.
What I would like to do is take this a step further. If the end date and the start date are in the same month, I only need to display the month in the start date. For example: Jan 12 - 14. However, if the end date is in the next month, I need to display both month. Example: Mar 30 - April 01.
Beyond that, is there a way that I can have all dates 01-09 display as "1, 2, 3, 4, 5, 6, 7, 8, 9" without the preceding zero? Example: Mar 30 - Apr 1.
Thanks in advance!