We're aware that some users are experiencing technical issues which the team are working to resolve. See the Community Noticeboard for more info. Thank you for your patience.
📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!

excel help

Options
I'm trying to create a spreadsheet at work to enable us to keep on top of certain applications/requests we need to do before a job starts. I would like to highlight the name of the job in different colours depending on the time from the starting date i.e. we need to apply for agreement six weeks prior to a start date i would like the background of that job to show green seven weeks before and to turn red when there is less than six weeks.
Does anyone know of the correct formulas for this.

We have several diffent time scales for various jobs (6 weeks, 7 days, 3 days) and I would like to be able to enter something into a column that would automatically relate to the specific timescale.

Any help would be very much appreciated :)

Max
«1

Comments

  • Wombat
    Wombat Posts: 960 Forumite
    Part of the Furniture 500 Posts Combo Breaker
    You need conditional formatting on the cell(s) you want to change colour.

    Here's someone with the same question (and the answer):

    http://www.mrexcel.com/tip054.shtml

    More info/examples here:

    http://www.contextures.com/xlCondFormat01.html

    HTH
  • maxamos
    maxamos Posts: 104 Forumite
    Thanks for that I'll have a read through the guides and try them out.

    Just need to work out the formula to give the values now

    Max
  • EvilMonkey
    EvilMonkey Posts: 680 Forumite
    Just a quick point about conditional formatting, it's limited to 3 conditions. If you've more than that (I'd say these are the types of jobs with different timescales you mentioned) CF may not be the answer.

    If it isn't then I think it's probably into the macro sphere. Not too bad, you could put an auto open macro in to run everytime its opened to do something similar. It's been a while since I did it, but I have done something like this in the past. Repost if CF isn't working and I'll post some of the code up for you (it wasn't complex honest)

    E.M.
  • Fairwinds
    Fairwinds Posts: 776 Forumite
    Part of the Furniture 500 Posts Combo Breaker
    With your start date in Col A, and your time scale in col B (42days or 7 days etc), highlight the cells in the row that you want to conditionally format.

    From the format -> conditional format menu, change the option from cell value is to formula is.

    First condition (for row2) is then =TODAY()+$B2>=$A2 select background pattern to be red.

    Add a second condition as =TODAY()+$B2<$A2 and select background colour as green.

    Probably then easier to use the format painter (paint brush ) to apply the format to all rows that you require.

    Hope that helps

    P.S Evil monkey is correctabout the limitation of 3 colours with conditional formatting, however you can use the base colour of the sheet as another colour which effectively allows you 4 colours.
  • AndyRat
    AndyRat Posts: 98 Forumite
    Part of the Furniture 10 Posts Combo Breaker
    The are other ways to get more colours, you can use the formatting of numbers to provide three more there was a post regarding this a few months back, sorry, I don't have time to search for it right now :-(

    And as previously mentioned, you can use macros to format as well, increasing the colours further.....

    HTH
  • maxamos
    maxamos Posts: 104 Forumite
    Thanks for all the answers

    I was thinking about creating a value of either 1, 2 or 3 depending on the how many days were left and link the conditional formatting to those values ie 1=green 2=yellow and 3=red, and then have a formula to create this value dependent on which application was required ( ihope that makes sense).

    Does that sound feasible or would be a bit long winded.

    Cheers

    Max
  • Fairwinds
    Fairwinds Posts: 776 Forumite
    Part of the Furniture 500 Posts Combo Breaker
    AndyRat wrote:
    The are other ways to get more colours, you can use the formatting of numbers to provide three more

    HTH


    I don't believe that is correct, you can format the fonts as well, but only within the 3 conditions. It doesn't give you 3 more conditions
    Maxamos wrote:
    I was thinking about creating a value of either 1, 2 or 3 depending on the how many days were left and link the conditional formatting to those values ie 1=green 2=yellow and 3=red, and then have a formula to create this value dependent on which application was required ( ihope that makes sense).

    Does that sound feasible or would be a bit long winded.

    HTH

    That sounds completely feasible. You may want to try and get the two condtions working first - have you tried what I suggested. did it work for the two conditions?
  • sloughflint
    sloughflint Posts: 2,345 Forumite
    I could swear I created a formula with nested conditions a while back with more than 3 conditions. I'll have a root round later and see if I can find it.
  • Fairwinds
    Fairwinds Posts: 776 Forumite
    Part of the Furniture 500 Posts Combo Breaker
    You can use if statements, to nest functions, but you can't format for more than 3 conditions (without using VBA)
  • AndyRat
    AndyRat Posts: 98 Forumite
    Part of the Furniture 10 Posts Combo Breaker
    Just found the old post I referred to yesterday.....

    http://forums.moneysavingexpert.com/showthread.html?p=1550516#post1550516

    That might help.....
This discussion has been closed.
Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 350.9K Banking & Borrowing
  • 253.1K Reduce Debt & Boost Income
  • 453.5K Spending & Discounts
  • 243.9K Work, Benefits & Business
  • 598.8K Mortgages, Homes & Bills
  • 176.9K Life & Family
  • 257.2K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16.1K Discuss & Feedback
  • 37.6K Read-Only Boards

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.