J
Joe Kotroczo
Hello,
I have the following problem:
I have 2 columns, 1 containing a start date and 1 containing an end date.
The dates, both start and end, can be either in September or in October.
What I need is 2 more columns, 1 with the number of days between start and
end which are in September and 1 with the number of days between start and
end which are in October.
I thought I could do something like
=IF(AND(MONTH(A1)=9,MONTH(B1)=9,DATEDIF(A1,B1,D) in the 1st column and
something similar with MONTH()=10 in the second, but this doesn't seem to
work, and I don't know what to do if the start date and end date are not in
the same month.
Has anybody got an idea?
Thanks,
Joe
I have the following problem:
I have 2 columns, 1 containing a start date and 1 containing an end date.
The dates, both start and end, can be either in September or in October.
What I need is 2 more columns, 1 with the number of days between start and
end which are in September and 1 with the number of days between start and
end which are in October.
I thought I could do something like
=IF(AND(MONTH(A1)=9,MONTH(B1)=9,DATEDIF(A1,B1,D) in the 1st column and
something similar with MONTH()=10 in the second, but this doesn't seem to
work, and I don't know what to do if the start date and end date are not in
the same month.
Has anybody got an idea?
Thanks,
Joe