I dump a large amount of data with different service dates in each column. The dates are pasted as text. In the next columns, I convert the text to dates. I then have a column to find the min and another column to find the max. There can be up to six service dates in my data. I'm trying to put the min and max together in format mm/dd/yy from min to max. The problem I have is that when the dates are not sequential, it will not concatenate correctly. Below is what one line looks like. Is there a Macro that can be written to put the columns into sequential order and date format first? Or does the concatenate formula just need to be tweeked? Thanks!
<tbody>
</tbody>
<colgroup><col width="64"></colgroup><tbody> </tbody> |
<colgroup><col width="64"></colgroup><tbody> </tbody> |
<colgroup><col width="64"></colgroup><tbody> </tbody> |
<colgroup><col width="64"></colgroup><tbody> </tbody> |
<colgroup><col width="64"></colgroup><tbody> </tbody> |
<colgroup><col width="64"></colgroup><tbody> </tbody> |
<colgroup><col span="6" width="64"></colgroup><tbody> </tbody> |
<colgroup><col width="64"></colgroup><tbody> </tbody> |
<colgroup><col width="71"></colgroup><tbody> </tbody> |
<colgroup><col width="216"></colgroup><tbody> </tbody> | ||||||||||||||||||
<colgroup><col width="64"></colgroup><tbody> </tbody> |
<colgroup><col width="64"></colgroup><tbody> </tbody> |
<colgroup><col width="64"></colgroup><tbody> </tbody> |
<colgroup><col width="64"></colgroup><tbody> </tbody> |
<colgroup><col width="64"></colgroup><tbody> </tbody> | =MIN(I4:N4) | =MAX(I4:N4) | =IF(O4=P4,CONCATENATE(C4,C4),IF(K4="",CONCATENATE(C4,D4),IF(L4="",CONCATENATE(C4,E4),IF(M4="",CONCATENATE(C4,F4),IF(N4="",CONCATENATE(C4,G4),CONCATENATE(C4,H4)))))) |
<tbody>
</tbody>