Try this. it is the old formula for less the 2 years different from F4 to
F5. I added a third date if there is a full year between the dates.
=IF(YEAR(F5)-YEAR(F4)<2,TEXT(F4,"mm-dd,yy")&" -
"&TEXT(F5,"mm-dd,yy"),TEXT(F4,"mm-dd,yy")&" -
"&TEXT(F4,"mm-dd,")&RIGHT(YEAR(F4)+1,2)&" - "&TEXT(F5,"mm-dd,yy"))
"salgud" wrote:
> On Thu, 19 Jun 2008 10:00:02 -0700, Joel wrote:
>
> > You need to concatenate two strings with an "&"
> >
> > =text(F4,"mm-dd,yy")&" - "&text(F5,"mm-dd,yy")
> >
> Thanks for your reply, it helps. But it's not quite what I'm asking for.
> I'm beginning to think I'll need some code to create the string.
> >
> > "davegb" wrote:
> >
> >> I'm trying to figure out how to convert same dates I have into a text
> >> string. I.e., in cells F4 and F5 there are dates resulting from
> >> manipulation of other dates. If the 2 dates are June 1, 2005 and Aug 1
> >> 2006, I want a text field that looks like:
> >> 06-12,05 - 01-08,06.
> >> It lists the remaining months in the year and the months up to the
> >> second date. If there's a full intervening year, it should list that
> >> as 01-12,06 between the other two. Is this doable w/o code? If I need
> >> to write a program, I will.
> >> Thanks for the help.
> >>
>
|