+ Reply to Thread
Results 1 to 11 of 11

Using Conditional Format to autoshade a calendar based on a series or date ranges

  1. #1
    Registered User
    Join Date
    10-13-2010
    Location
    England
    MS-Off Ver
    Excel 2000
    Posts
    8

    Using Conditional Format to autoshade a calendar based on a series or date ranges

    Hello there, first time posting and I'd really appreciate your help.

    My problem:

    My colleagues and I receive logsheets daily and we all use the same spreadsheet to input this data. The day and chronological order the sheets turn up at can vary so I have created a tab (i.e. OCT 2010) Where next to the 120 vehicles I have the following 3 coloumns:

    FIRST BATCH ENTRY OF THE MONTH

    First Date of Log Sheets / Last Date of Log Sheets / Miles Driven in this range
    I then have this group of three coloumns repeated 10 times across because the logsheets can turn up in drips and drabs and not in any particular date order. i.e 23rd - 27th October, then next week 4th -5th October. All the mileage is then added up at the end.

    Therefore I need some sort of alert for when we haven't received a certain range. At the moment I have a manually made calendar in the next tab that I manually highlight myself as the logsheets come in. Can I get conditional formatting to do this or is another method advisable?

    Many Thanks and apologies for the bulk of text! (using Excel 2000)

  2. #2
    Forum Contributor BlastRanger's Avatar
    Join Date
    09-02-2010
    Location
    Indonesia
    MS-Off Ver
    2003, 2007, 2010
    Posts
    238

    Re: Using Conditional Format to autoshade a calendar based on a series or date ranges

    You need to add more information that can clearly describe your situation and what you want it to be.

    Sample Sheet would be recommended
    Please give a Reputation as a gift for a thanks.
    By clicking the second icon at the top right corner of a user post or reply

  3. #3
    Registered User
    Join Date
    10-13-2010
    Location
    England
    MS-Off Ver
    Excel 2000
    Posts
    8

    Re: Using Conditional Format to autoshade a calendar based on a series or date ranges

    Thankyou for your response, below is an image for the month of January 2011 as an example.

    I have one tab for data entry and one tab which acts as a calendar to flag any missing entries we need to chase for the month.

    http://img291.imageshack.us/img291/5270/examplea.png


    The reason I need it like this is because:

    A) The data has to be input as soon as it is receieved by various users

    B) The data doesn't get sent in uniformly ie. it may be two weeks worth in one batch, it may two days worth and it also doesn't always get sent in in date order.

    The crux of the matter is that as I enter those two dates (From and To date) I need the calendar to autoshade the range between the two. I am currently doing this manually with each entry but it seems unnecessarily time consuming as it is.

    I hope this makes sense and your help is much aprreciated.

  4. #4
    Forum Contributor
    Join Date
    05-29-2009
    Location
    Kalgoorlie Australia
    MS-Off Ver
    Excel 2007/10
    Posts
    251

    Re: Using Conditional Format to autoshade a calendar based on a series or date ranges

    hello milesy 2000
    As blastranger suggests, please attach a dummy sheet see we can see the formulas, etc.
    The image attached doesn't really make entirely clear, we don't want to have to recreate your sheet so we can help.
    Regards
    Peter

  5. #5
    Registered User
    Join Date
    10-13-2010
    Location
    England
    MS-Off Ver
    Excel 2000
    Posts
    8

    Re: Using Conditional Format to autoshade a calendar based on a series or date ranges

    Hello Peter

    I am probably making what I require sound far more complicated than it is!

    I'm not sure if this is what you mean by dummy sheet but I have attached my workbook with one month included as an example and irrelevant information removed. It isn't very formula intensive.

    I just want the calendar sheet (Tab 2) to shade itself automatically as the data is entered on Tab 1 rather than how it's being done at the moment - clicking to Tab 2 and manually highlighting cells then adding a colour. I have a calendar like this premade for each month of data entry.
    Attached Files Attached Files

  6. #6
    Forum Contributor
    Join Date
    05-29-2009
    Location
    Kalgoorlie Australia
    MS-Off Ver
    Excel 2007/10
    Posts
    251

    Re: Using Conditional Format to autoshade a calendar based on a series or date ranges

    sorry milesy
    were are you adding the info on tab 1 and which cell on tab two should be changing.
    Lets look at MR A
    Also the sheet seems to me as if you recreate it each month, I have a similar sheet for stuff, did you want the weekends to auto change colour as the month changes, the dates to auto change across the sheets

  7. #7
    Registered User
    Join Date
    10-13-2010
    Location
    England
    MS-Off Ver
    Excel 2000
    Posts
    8

    Re: Using Conditional Format to autoshade a calendar based on a series or date ranges

    Let's say for example I get into my office and see that Mr A has sent some driver log sheets in that morning. On inspection I see that the first entry is for the 18th October and the final entry on the log sheet is for the 22nd October. So I input those dates into F7 and F8 respectively (as per the dummy sheet). I then take the end mileage from the start and put this data into F9 (total mileage). Finally I add up all the mileage that is miscellaneous (like a tyre change) and enter that into F10 (ineligible mileage).

    The cells that should now be shaded to Green automatically are U7:Y7 on Sheet 2 (The date period on the calendar that I just entered). This allows me at a quick glance to see which driver hasn't sent in some of his logsheets.

    And yes I do recreate it each month (create a copy and then adjust dates / shade weekends etc), I wouldn't know any other way. If this could all be an automated process that would even more beneficial.

    Much Appreciation for your assistance Peter.

  8. #8
    Forum Contributor
    Join Date
    05-29-2009
    Location
    Kalgoorlie Australia
    MS-Off Ver
    Excel 2007/10
    Posts
    251

    Re: Using Conditional Format to autoshade a calendar based on a series or date ranges

    hello again, you say
    "So I input those dates into F7 and F8 respectively (as per the dummy sheet). I then take the end mileage from the start and put this data into F9 (total mileage). Finally I add up all the mileage that is miscellaneous (like a tyre change) and enter that into F10 (ineligible mileage)."

    Did you mean So I input those dates into F7 and G7respectively (as per the dummy sheet). I then take the end mileage from the start and put this data into H7 (total mileage). Finally I add up all the mileage that is miscellaneous (like a tyre change) and enter that into I7(ineligible mileage).
    I assume that in this example it would be the first log of the month, so all the rest would be blank. And as the second log comes in then the info would go into J7 to M7. I also assume that there would never be more then 5 log periods per bloke per month.
    Regards
    Peter
    If you can wait until tomorrow I will copy my stuff from work and show it to you as an example.
    It's now nearly 11pm and I'm up at 4.30 for work so I better get some shut eye.
    Send me private message if you still want the above info tomorrow please.
    Last edited by peterjuhnke; 10-13-2010 at 10:49 AM.

  9. #9
    Registered User
    Join Date
    10-13-2010
    Location
    England
    MS-Off Ver
    Excel 2000
    Posts
    8

    Re: Using Conditional Format to autoshade a calendar based on a series or date ranges

    Oh I really am asleep today, yes I did mean that.

    Yes it can wait until tomorrow, the reason I am tackling this now is because the new claim period has just started.

    If there is a better way of laying the whole thing out then I am definately open to that because i haven't input any data for the new claim period.

    I assume that in this example it would be the first log of the month, so all the rest would be blank
    Yes, but just to clarify, while it would be the first logsheet I received for that vehicle that month, it may not be the first log sheet RECORDED for that vehicle that month. My main problem is I never know what logsheets I will get in or when, because Mr A, Mr B and Mr C might all drive Vehicle 001 but whilst Mr A is very prompt with sending his logs in, Mr B may always be late and Mr C loses half of his down the side of the driver seat and we get them two months later. If I received all the logsheets in solid one-month batches and in order I wouldn't really need the "Logs Received Calendar"... but I don't.

    So it is possible to get Sheet 2 to shade itself based on the date ranges between F7:G7, J7:K7, N7:O7 etc?

    Thanks and I shall await your example tomorrow.
    Last edited by milesy2000; 10-13-2010 at 11:06 AM.

  10. #10
    Forum Contributor
    Join Date
    05-29-2009
    Location
    Kalgoorlie Australia
    MS-Off Ver
    Excel 2007/10
    Posts
    251

    Re: Using Conditional Format to autoshade a calendar based on a series or date ranges

    hello milesy
    Please have a look at the attached, I think this is what you are after, please let me know.
    I made the 2nd tab indicat which was the 1st, 2nd ect log sheet recieved.
    If you had excel 2007 or later you could make each as a different colour. (2003 only has 3 cond formats available).
    You put the start date in the first tab, it transfers to the 2nd sheet, the weekends are greyed out, .The days in the list which are not relevent, eg there is no 29/ 30 /31th feb in 2010, are highlighted.
    If this is what you are after and need more info please let me know.
    The second tab has got some formulas in the cells so you will have to be care full not to stuff them up. I would suggest protecting the secons sheet, i normally leave the password blank as it is normally a accedent that happens not an intentional stuff up.
    If you need to copy the formula to more cells, copy D7, highlight D7 and all the rest of the cells you want the formula in, SPECIAL PASTE: FORMULAS.
    Regards
    Peter
    Attached Files Attached Files

  11. #11
    Registered User
    Join Date
    10-13-2010
    Location
    England
    MS-Off Ver
    Excel 2000
    Posts
    8

    Re: Using Conditional Format to autoshade a calendar based on a series or date ranges

    Hello Peter

    I have been away for the weekend as of Friday Morning so apologies for the delayed response.

    This is fantastic and absolutely what I wanted. It works perfectly. Numbering the entries on the calendar was a great idea and I'm sure this will come in handy in future.

    I do seem to be having a few minor issues.

    I changed the dates to correspond with the real dates I need, so the file now starts in October 2010. When I make 2 new tabs for November 2010 (Data Sheet + Calendar) the orange shading for the FALSE day (November 31st) only appears at the bottom of the calendar. It begins to shade in cell AH133 rather than AH7. You will see what I mean in the attached file.

    Also, I need to repeat this for 6 months (12 tabs altogether) up until March 2011. Is the quickest way to do this enter the date on the data sheet and then the date on the calendar sheet then go through the formula on the calendar sheet and change All 'OCT' references to 'NOV'?

    Many Thanks Peter, you have been most helpful.

    ( I have included the link to the file in a PM as it was telling me the file was too big to attach.)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1