ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Moving date line (https://www.excelbanter.com/excel-discussion-misc-queries/212982-moving-date-line.html)

Ben White

Moving date line
 
The person who used to create our spreadsheets has left the office, and I've
been tasked with trying to recreate what she used to do with seeming ease.

I'm trying to create a calender for our projects, with a series of dates
(the first date of each week) in adjacent cells horizontally, all grouped
within a scroll-bar.

Move importantly, I'm trying to create a vertical red bar that
autonmatically advances left to right as each week passes.

Thanks in advance to anyone who can help us.

ExcelBanter AI

Answer: Moving date line
 
Recreating a Calendar for Projects in Excel

To start, let's create a list of dates for each week. You can do this by typing the first date of the week in the first cell, and then dragging the fill handle (the small square in the bottom right corner of the cell) across the adjacent cells to fill in the rest of the dates. Alternatively, you can use the Fill Series command under the Fill dropdown menu in the Editing group on the Home tab.

Next, let's group these cells within a scroll bar. To do this, select all of the cells containing the dates, right-click on the selection, and choose Format Cells from the dropdown menu. In the Format Cells dialog box, click on the Alignment tab, and then check the box next to Wrap text. This will allow the dates to wrap within the cells and fit within the scroll bar.

Now, let's create the vertical red bar that will advance as each week passes. To do this, we'll use a combination of conditional formatting and a formula. First, select the cell where you want the red bar to appear. Then, go to the Home tab, click on the Conditional Formatting dropdown menu in the Styles group, and choose New Rule. In the New Formatting Rule dialog box, choose Use a formula to determine which cells to format, and then enter the following formula:

Formula:

=AND(TODAY()=A1,TODAY()<A1+7

This formula checks if today's date is between the date in cell A1 and the date in cell A1 plus 7 days (i.e. one week). If the formula evaluates to TRUE, the cell will be formatted with a red fill color.

Finally, let's make the red bar advance automatically. To do this, we'll use the OFFSET function in a formula. Select the cell containing the red bar, and then enter the following formula:

Formula:

=OFFSET(A1,0,WEEKDAY(TODAY()-A1)) 

This formula uses the WEEKDAY function to calculate the number of days between the date in cell A1 and today's date, and then uses the OFFSET function to move the cell to the right by that number of days. As each week passes, the red bar will automatically advance to the next set of dates.

I hope this helps you recreate the calendar for your projects in Excel! Let me know if you have any questions or need further assistance.
[/list]

Max

Moving date line
 
More importantly, I'm trying to create a vertical red bar that
automatically advances left to right as each week passes.


Try Conditional Formatting. Assuming real dates (1st-of-week chrono dates)
are listed in B2 across to say E2, you could select B3:E3, then apply CF
using Formula Is: =AND(ISNUMBER(B2),B2<TODAY())
Format with red fill, ok out. That should yield the progressive red bar that
you seek.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:20,500 Files:365 Subscribers:65
xdemechanik
---
"Ben White" wrote:
The person who used to create our spreadsheets has left the office, and I've
been tasked with trying to recreate what she used to do with seeming ease.

I'm trying to create a calender for our projects, with a series of dates
(the first date of each week) in adjacent cells horizontally, all grouped
within a scroll-bar.

Move importantly, I'm trying to create a vertical red bar that
autonmatically advances left to right as each week passes.

Thanks in advance to anyone who can help us.


RagDyeR

Moving date line
 
Open one of her old WBs and select the cells displaying the date bar.
Then, from the Menu Bar, click on:
<Format <Conditional Format
And you should see and be able to duplicate the processes / formulas she
used to create the effects.
--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===

"Ben White" <Ben wrote in message
...
The person who used to create our spreadsheets has left the office, and I've
been tasked with trying to recreate what she used to do with seeming ease.

I'm trying to create a calender for our projects, with a series of dates
(the first date of each week) in adjacent cells horizontally, all grouped
within a scroll-bar.

Move importantly, I'm trying to create a vertical red bar that
autonmatically advances left to right as each week passes.

Thanks in advance to anyone who can help us.



Ben White[_2_]

Moving date line
 
Thanks guys, really helpful!

"RagDyeR" wrote:

Open one of her old WBs and select the cells displaying the date bar.
Then, from the Menu Bar, click on:
<Format <Conditional Format
And you should see and be able to duplicate the processes / formulas she
used to create the effects.
--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===

"Ben White" <Ben wrote in message
...
The person who used to create our spreadsheets has left the office, and I've
been tasked with trying to recreate what she used to do with seeming ease.

I'm trying to create a calender for our projects, with a series of dates
(the first date of each week) in adjacent cells horizontally, all grouped
within a scroll-bar.

Move importantly, I'm trying to create a vertical red bar that
autonmatically advances left to right as each week passes.

Thanks in advance to anyone who can help us.





All times are GMT +1. The time now is 08:11 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com