Hi,
I have a column of date windows formatted as "mm/dd--mm/dd" (so, not in an actual "date" format recognizable by Excel), and I want to use a helper cell to pull the first two numbers from that column, and then another column to pull that number, and return it in "mmm" format.
For example, my date window column B looks like this:
01/20--01/29
02/01--02/10
Then, my helper column C, the best function I could find so far is LEFT:
=LEFT(B5,2)
=LEFT(B6,2)
And finally, my month column D, to take the text from column C and put it into "mmm" format
=IF(C5="","",TEXT(C5,"mmm"))
=IF(C6="","",TEXT(C6,"mmm"))
With these in place, the helper column works fine, and returns "01" for row 5 and "02" for row 6. However, no matter what number is in the helper column C, the cell next to it in column D is still returning "Jan" whether the cell it's referencing is "01" or any other number.
Is there a function better equipped for this task than LEFT? Or am I just missing some small detail?
Any help would be greatly appreciated.
I have a column of date windows formatted as "mm/dd--mm/dd" (so, not in an actual "date" format recognizable by Excel), and I want to use a helper cell to pull the first two numbers from that column, and then another column to pull that number, and return it in "mmm" format.
For example, my date window column B looks like this:
01/20--01/29
02/01--02/10
Then, my helper column C, the best function I could find so far is LEFT:
=LEFT(B5,2)
=LEFT(B6,2)
And finally, my month column D, to take the text from column C and put it into "mmm" format
=IF(C5="","",TEXT(C5,"mmm"))
=IF(C6="","",TEXT(C6,"mmm"))
With these in place, the helper column works fine, and returns "01" for row 5 and "02" for row 6. However, no matter what number is in the helper column C, the cell next to it in column D is still returning "Jan" whether the cell it's referencing is "01" or any other number.
Is there a function better equipped for this task than LEFT? Or am I just missing some small detail?
Any help would be greatly appreciated.