View Single Post
  #5  
Old September 19th, 2005, 05:45 PM
Adam
external usenet poster
 
Posts: n/a
Default

Hello Bob,

I used your earlier suggestion of not using the sum and did
=TEXT(B3,"m/d/yyy")&" through "&TEXT(C3,"m/d/yyyy") instead.
I just modified it a little to say:
=TEXT(B3-7,"m/d/yyy")&" through "&TEXT(B3-2,"m/d/yyyy")
This allowed me to use only one cell instead of 2.

Then when you sent me the response to my "check and avoid the weekend"
question the formula did not work. I think because the original solution was
using 2 cells to figure out the range instead of 1 ex:
=TEXT(B3,"m/d/yyy")&" through "&TEXT(C3,"m/d/yyyy")

Is there any way to change
=TEXT(IF(WEEKDAY(B3,2)6,B3,B3+(8-WEEKDAY(B3,2))),"m/d/yyy")&" through
"&TEXT(IF(WEEKDAY(C3,2)6,C3,C3+(8-WEEKDAY(C3,2))),"m/d/yyyy")


to refer only to one cell. I'm trying only referenceing one cell but it is
not working, I may be using the function wrong or fully understand how the
arguments work???

Help if possible..


"Bob Phillips" wrote:

Now you know that you can g

=TEXT(IF(WEEKDAY(B3,2)6,B3,B3+(8-WEEKDAY(B3,2))),"m/d/yyy")&" through
"&TEXT(IF(WEEKDAY(C3,2)6,C3,C3+(8-WEEKDAY(C3,2))),"m/d/yyyy")

--
HTH

Bob Phillips

"Adam" wrote in message
...
Thanks Bob that worked great!

I got one more question:
What if my date range result lands on a weekend and i don't want it to?

Is there a way that i can identify and check that that the result is a
weekend and if it is move the range to the next earliest range?

If possible please use my work email as well ).

Thanks.

"Bob Phillips" wrote:

No need for SUM

=A3+2
=A3+7

=TEXT(B3,"m/d/yyy")&" through "&TEXT(C3,"m/d/yyyy")

--
HTH

Bob Phillips

"Adam" wrote in message
...
Hello,

I have one cell where i enter a date 8/30/2005 (which resides in A3).

And i need another cell to display a date range based on the above

date.
The date range will always be the same number of days apart. For

example
the
date range will always be 2-7 days from the entered above date. What i

did
so
far was 2 seperate calculations in 2 different cells. One for the low

end
(=SUM(A3+2) and one for the high end =SUM(A3+7). Then I put =(B3) & "

" &
"through" & " " & (C3) in the third cell where i want the range to

appear.
But what happens is it comes out like:
38596 through 38599

How can i get the dates to remain in date format even though there is

text
between them???