Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 56
Default formula to track timeframe by automatically highlighting cells

Hello,

I set up an excel sheet to have dates running in row 1. Example: K1 =
1/1/07, L1 = 1/15/07, M1 = 1/29/07, N1 = 2/12/07, you notice the dates run
every 2 week intervals. This goes all the way to BP1 = 3/9/09.

Cell H2 = start date
Cell I2 = end date

Now, I need to set a formula where if user enters start date and end date in
H2 and I2 then cells K2 - BP2 will highlight "yellow" accordingly. This is
to make easy visually to track and manage projects.

Also, I need to have 2 more conditional formulas to highlight cells.

1) This formula will take the start date and calculate backwards 45 days to
highlight pre-work (green)
2) This formula will take the end date and tack on 14 days for post work and
highlight these cells red.

Can this be done? Thanks for looking.
--
Thank You!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 173
Default formula to track timeframe by automatically highlighting cells

If I'm understanding you correctly, these conditional formatting formulas
should work. Put these in K2 and then copy the format out to BP2 and down to
however many rows of start and finish dates you'll have.

For green: "=AND($I2+14=K$1,$I2+14<=L$1)"
For red: "=AND($H2-45=K$1,$H2-45<=L$1)"
For Yellow: "=AND($H2<=L$1,$I2=K$1)"

Will

"maijiuli" wrote:

Hello,

I set up an excel sheet to have dates running in row 1. Example: K1 =
1/1/07, L1 = 1/15/07, M1 = 1/29/07, N1 = 2/12/07, you notice the dates run
every 2 week intervals. This goes all the way to BP1 = 3/9/09.

Cell H2 = start date
Cell I2 = end date

Now, I need to set a formula where if user enters start date and end date in
H2 and I2 then cells K2 - BP2 will highlight "yellow" accordingly. This is
to make easy visually to track and manage projects.

Also, I need to have 2 more conditional formulas to highlight cells.

1) This formula will take the start date and calculate backwards 45 days to
highlight pre-work (green)
2) This formula will take the end date and tack on 14 days for post work and
highlight these cells red.

Can this be done? Thanks for looking.
--
Thank You!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 56
Default formula to track timeframe by automatically highlighting cells

Thanks Roadkill,

Your response worked but not completely in the way as expected. I switched
it around alittle to make the colors display in the way my boss wants it.
This is what I have now but it still has a faulty area.

red =AND($I2+14=U$1,$I2+14<=V$1)
yellow =AND($H2-45=U$1,$H2-45<=V$1)
green =AND($H2<=V$1,$I2=U$1)

The only problem I have with this one is that the yellow does not highlight
the whole 45 days for prework. It only highlights the first cell in which
the prework starts.

Do you know what I can do here? Your answer was really helpful in my
discovery.
--
Thank You!


"roadkill" wrote:

If I'm understanding you correctly, these conditional formatting formulas
should work. Put these in K2 and then copy the format out to BP2 and down to
however many rows of start and finish dates you'll have.

For green: "=AND($I2+14=K$1,$I2+14<=L$1)"
For red: "=AND($H2-45=K$1,$H2-45<=L$1)"
For Yellow: "=AND($H2<=L$1,$I2=K$1)"

Will

"maijiuli" wrote:

Hello,

I set up an excel sheet to have dates running in row 1. Example: K1 =
1/1/07, L1 = 1/15/07, M1 = 1/29/07, N1 = 2/12/07, you notice the dates run
every 2 week intervals. This goes all the way to BP1 = 3/9/09.

Cell H2 = start date
Cell I2 = end date

Now, I need to set a formula where if user enters start date and end date in
H2 and I2 then cells K2 - BP2 will highlight "yellow" accordingly. This is
to make easy visually to track and manage projects.

Also, I need to have 2 more conditional formulas to highlight cells.

1) This formula will take the start date and calculate backwards 45 days to
highlight pre-work (green)
2) This formula will take the end date and tack on 14 days for post work and
highlight these cells red.

Can this be done? Thanks for looking.
--
Thank You!

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 173
Default formula to track timeframe by automatically highlighting cells

Try changing yellow to "=AND($H2-45<=V$1,$I2-45=U$1)" AND MAKE SURE THAT THE
GREEN CONDITION IS BEFORE THE YELLOW.
Will

"maijiuli" wrote:

Thanks Roadkill,

Your response worked but not completely in the way as expected. I switched
it around alittle to make the colors display in the way my boss wants it.
This is what I have now but it still has a faulty area.

red =AND($I2+14=U$1,$I2+14<=V$1)
yellow =AND($H2-45=U$1,$H2-45<=V$1)
green =AND($H2<=V$1,$I2=U$1)

The only problem I have with this one is that the yellow does not highlight
the whole 45 days for prework. It only highlights the first cell in which
the prework starts.

Do you know what I can do here? Your answer was really helpful in my
discovery.
--
Thank You!


"roadkill" wrote:

If I'm understanding you correctly, these conditional formatting formulas
should work. Put these in K2 and then copy the format out to BP2 and down to
however many rows of start and finish dates you'll have.

For green: "=AND($I2+14=K$1,$I2+14<=L$1)"
For red: "=AND($H2-45=K$1,$H2-45<=L$1)"
For Yellow: "=AND($H2<=L$1,$I2=K$1)"

Will

"maijiuli" wrote:

Hello,

I set up an excel sheet to have dates running in row 1. Example: K1 =
1/1/07, L1 = 1/15/07, M1 = 1/29/07, N1 = 2/12/07, you notice the dates run
every 2 week intervals. This goes all the way to BP1 = 3/9/09.

Cell H2 = start date
Cell I2 = end date

Now, I need to set a formula where if user enters start date and end date in
H2 and I2 then cells K2 - BP2 will highlight "yellow" accordingly. This is
to make easy visually to track and manage projects.

Also, I need to have 2 more conditional formulas to highlight cells.

1) This formula will take the start date and calculate backwards 45 days to
highlight pre-work (green)
2) This formula will take the end date and tack on 14 days for post work and
highlight these cells red.

Can this be done? Thanks for looking.
--
Thank You!

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 56
Default formula to track timeframe by automatically highlighting cells

Roadkill you're a genius. For real.

I have one more request just brought onto me. And let me know if this is
possible to do. Is there a way to incorporate 2 more dates:

Tentitive Start Date = F1 and
Tentitive End Date = G1

so if there are no confirmed Start date (H1) and End date (I1) then we can
use the tentitive dates to track projects. But if there are Confirmed Start
and End date then we use those. It's confusing I know.

In any way Roadkill, you've been awesome. Thanks so much.

--
Thank You!


"roadkill" wrote:

Try changing yellow to "=AND($H2-45<=V$1,$I2-45=U$1)" AND MAKE SURE THAT THE
GREEN CONDITION IS BEFORE THE YELLOW.
Will

"maijiuli" wrote:

Thanks Roadkill,

Your response worked but not completely in the way as expected. I switched
it around alittle to make the colors display in the way my boss wants it.
This is what I have now but it still has a faulty area.

red =AND($I2+14=U$1,$I2+14<=V$1)
yellow =AND($H2-45=U$1,$H2-45<=V$1)
green =AND($H2<=V$1,$I2=U$1)

The only problem I have with this one is that the yellow does not highlight
the whole 45 days for prework. It only highlights the first cell in which
the prework starts.

Do you know what I can do here? Your answer was really helpful in my
discovery.
--
Thank You!


"roadkill" wrote:

If I'm understanding you correctly, these conditional formatting formulas
should work. Put these in K2 and then copy the format out to BP2 and down to
however many rows of start and finish dates you'll have.

For green: "=AND($I2+14=K$1,$I2+14<=L$1)"
For red: "=AND($H2-45=K$1,$H2-45<=L$1)"
For Yellow: "=AND($H2<=L$1,$I2=K$1)"

Will

"maijiuli" wrote:

Hello,

I set up an excel sheet to have dates running in row 1. Example: K1 =
1/1/07, L1 = 1/15/07, M1 = 1/29/07, N1 = 2/12/07, you notice the dates run
every 2 week intervals. This goes all the way to BP1 = 3/9/09.

Cell H2 = start date
Cell I2 = end date

Now, I need to set a formula where if user enters start date and end date in
H2 and I2 then cells K2 - BP2 will highlight "yellow" accordingly. This is
to make easy visually to track and manage projects.

Also, I need to have 2 more conditional formulas to highlight cells.

1) This formula will take the start date and calculate backwards 45 days to
highlight pre-work (green)
2) This formula will take the end date and tack on 14 days for post work and
highlight these cells red.

Can this be done? Thanks for looking.
--
Thank You!



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 173
Default formula to track timeframe by automatically highlighting cells

I assume you intended to say that the tentative dates are in F2 and G2? If
so, try (in U2):

Red:
"=IF(OR(LEN($I2)=0,LEN($H2)=0),AND($G2+14=U$1,$G2 +14<=V$1),AND($I2+14=U$1,$I2+14<=V$1))"

Green:
"=IF(OR(LEN($H2)=0,LEN($I2)=0),AND($F2<=V$1,$G2=U $1),AND($H2<=V$1,$I2=U$1))"

Yellow:
"=IF(OR(LEN($H2)=0,LEN($I2)=0),AND($F2-45<=V$1,$G2-45=U$1),AND($H2-45<=V$1,$I2-45=U$1))"

This requires that both start and finish date be present or it uses the
tentative dates. Also, it just checks for something to be in start and
finish, not necessarily a date. So if there is even a space in the start and
finish it will try and use them (so make sure they are either empty or have
dates in them).

Will


"maijiuli" wrote:

Roadkill you're a genius. For real.

I have one more request just brought onto me. And let me know if this is
possible to do. Is there a way to incorporate 2 more dates:

Tentitive Start Date = F1 and
Tentitive End Date = G1

so if there are no confirmed Start date (H1) and End date (I1) then we can
use the tentitive dates to track projects. But if there are Confirmed Start
and End date then we use those. It's confusing I know.

In any way Roadkill, you've been awesome. Thanks so much.

--
Thank You!


"roadkill" wrote:

Try changing yellow to "=AND($H2-45<=V$1,$I2-45=U$1)" AND MAKE SURE THAT THE
GREEN CONDITION IS BEFORE THE YELLOW.
Will

"maijiuli" wrote:

Thanks Roadkill,

Your response worked but not completely in the way as expected. I switched
it around alittle to make the colors display in the way my boss wants it.
This is what I have now but it still has a faulty area.

red =AND($I2+14=U$1,$I2+14<=V$1)
yellow =AND($H2-45=U$1,$H2-45<=V$1)
green =AND($H2<=V$1,$I2=U$1)

The only problem I have with this one is that the yellow does not highlight
the whole 45 days for prework. It only highlights the first cell in which
the prework starts.

Do you know what I can do here? Your answer was really helpful in my
discovery.
--
Thank You!


"roadkill" wrote:

If I'm understanding you correctly, these conditional formatting formulas
should work. Put these in K2 and then copy the format out to BP2 and down to
however many rows of start and finish dates you'll have.

For green: "=AND($I2+14=K$1,$I2+14<=L$1)"
For red: "=AND($H2-45=K$1,$H2-45<=L$1)"
For Yellow: "=AND($H2<=L$1,$I2=K$1)"

Will

"maijiuli" wrote:

Hello,

I set up an excel sheet to have dates running in row 1. Example: K1 =
1/1/07, L1 = 1/15/07, M1 = 1/29/07, N1 = 2/12/07, you notice the dates run
every 2 week intervals. This goes all the way to BP1 = 3/9/09.

Cell H2 = start date
Cell I2 = end date

Now, I need to set a formula where if user enters start date and end date in
H2 and I2 then cells K2 - BP2 will highlight "yellow" accordingly. This is
to make easy visually to track and manage projects.

Also, I need to have 2 more conditional formulas to highlight cells.

1) This formula will take the start date and calculate backwards 45 days to
highlight pre-work (green)
2) This formula will take the end date and tack on 14 days for post work and
highlight these cells red.

Can this be done? Thanks for looking.
--
Thank You!

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 56
Default formula to track timeframe by automatically highlighting cells

Roadkill,

Yesssss! I don't know how you do it but you did it! Thank you so much. I
hope one day I can be at your level and help others too.


--
Thank You!


"roadkill" wrote:

I assume you intended to say that the tentative dates are in F2 and G2? If
so, try (in U2):

Red:
"=IF(OR(LEN($I2)=0,LEN($H2)=0),AND($G2+14=U$1,$G2 +14<=V$1),AND($I2+14=U$1,$I2+14<=V$1))"

Green:
"=IF(OR(LEN($H2)=0,LEN($I2)=0),AND($F2<=V$1,$G2=U $1),AND($H2<=V$1,$I2=U$1))"

Yellow:
"=IF(OR(LEN($H2)=0,LEN($I2)=0),AND($F2-45<=V$1,$G2-45=U$1),AND($H2-45<=V$1,$I2-45=U$1))"

This requires that both start and finish date be present or it uses the
tentative dates. Also, it just checks for something to be in start and
finish, not necessarily a date. So if there is even a space in the start and
finish it will try and use them (so make sure they are either empty or have
dates in them).

Will


"maijiuli" wrote:

Roadkill you're a genius. For real.

I have one more request just brought onto me. And let me know if this is
possible to do. Is there a way to incorporate 2 more dates:

Tentitive Start Date = F1 and
Tentitive End Date = G1

so if there are no confirmed Start date (H1) and End date (I1) then we can
use the tentitive dates to track projects. But if there are Confirmed Start
and End date then we use those. It's confusing I know.

In any way Roadkill, you've been awesome. Thanks so much.

--
Thank You!


"roadkill" wrote:

Try changing yellow to "=AND($H2-45<=V$1,$I2-45=U$1)" AND MAKE SURE THAT THE
GREEN CONDITION IS BEFORE THE YELLOW.
Will

"maijiuli" wrote:

Thanks Roadkill,

Your response worked but not completely in the way as expected. I switched
it around alittle to make the colors display in the way my boss wants it.
This is what I have now but it still has a faulty area.

red =AND($I2+14=U$1,$I2+14<=V$1)
yellow =AND($H2-45=U$1,$H2-45<=V$1)
green =AND($H2<=V$1,$I2=U$1)

The only problem I have with this one is that the yellow does not highlight
the whole 45 days for prework. It only highlights the first cell in which
the prework starts.

Do you know what I can do here? Your answer was really helpful in my
discovery.
--
Thank You!


"roadkill" wrote:

If I'm understanding you correctly, these conditional formatting formulas
should work. Put these in K2 and then copy the format out to BP2 and down to
however many rows of start and finish dates you'll have.

For green: "=AND($I2+14=K$1,$I2+14<=L$1)"
For red: "=AND($H2-45=K$1,$H2-45<=L$1)"
For Yellow: "=AND($H2<=L$1,$I2=K$1)"

Will

"maijiuli" wrote:

Hello,

I set up an excel sheet to have dates running in row 1. Example: K1 =
1/1/07, L1 = 1/15/07, M1 = 1/29/07, N1 = 2/12/07, you notice the dates run
every 2 week intervals. This goes all the way to BP1 = 3/9/09.

Cell H2 = start date
Cell I2 = end date

Now, I need to set a formula where if user enters start date and end date in
H2 and I2 then cells K2 - BP2 will highlight "yellow" accordingly. This is
to make easy visually to track and manage projects.

Also, I need to have 2 more conditional formulas to highlight cells.

1) This formula will take the start date and calculate backwards 45 days to
highlight pre-work (green)
2) This formula will take the end date and tack on 14 days for post work and
highlight these cells red.

Can this be done? Thanks for looking.
--
Thank You!

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
counting dates within a timeframe DDR1974 Setting up and Configuration of Excel 0 June 27th 07 07:54 PM
Automatically highlighting cells sponger02 Excel Discussion (Misc queries) 1 May 24th 07 08:05 PM
How do I stop mouse from highlighting cells automatically Tibber60 Excel Discussion (Misc queries) 0 April 24th 06 02:39 PM
Highlighting blanks via GO TO SPECIAL is not highlighting blank cells - HELP, I'm totally stuck. Jamie Furlong Excel Discussion (Misc queries) 6 August 28th 05 09:27 PM
Turn off cursor from automatically highlighting cells in Excel? OregonKate Excel Worksheet Functions 1 July 15th 05 05:50 AM


All times are GMT +1. The time now is 06:07 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"