+ Reply to Thread
Results 1 to 4 of 4

Conditional Formatting Reliant on date and another cell

  1. #1
    Registered User
    Join Date
    08-01-2013
    Location
    Cardiff
    MS-Off Ver
    Office 365
    Posts
    64

    Conditional Formatting Reliant on date and another cell

    Hi,

    I am running a project and have a requirement to supply resource to it.

    I have a date cell of when resource is required and a cell stating whether the resource has been allocated or not.

    There are a couple of rules;

    1. If resource is allocated the date cell turns green
    2. If the date cell is greater than 7 days before requirement it is amber if no resource is allocated
    3. If the date cell is 7 days or less before the resource requirement it is red if no resource is allocated.

    I have attached some unformatted samples of how it could look.

    If it is easier to format the resource cell rather than the date cell then that will be fine.

    Thanks in advance.

    Steve

  2. #2
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Conditional Formatting Reliant on date and another cell

    There's no attachment to your post. Here's how to attach:
    click Go Advanced (under the reply box),
    scroll down until you see Manage Attachments,
    click that and select Browse,
    select your file and click Open,
    click Upload,
    (you will see your attachment appear above the Attachment Key)
    click Close this window,
    click Submit reply.

    For your Conditional Formatting, you should be able to use formulae something like these:
    =alloc_cell="allocated"
    Green
    =AND(alloc_cell<>"allocated",date_cell<reqt_cell-7)
    Amber
    =AND(alloc_cell<>"allocated",date_cell>=reqt_cell-7)
    Red

    alloc_cell is the cell which states whether the resource is allocated or not
    date_cell could be replaced with TODAY() if you want this always to be live
    reqt_cell is the cell with the date the resourse is required


    If that doesn't make sense, we can have another look once your file is attached.
    Regards,
    Aardigspook

    I recently started a new job so am a bit busy and may not reply quickly. Sorry - it's not personal - I will reply eventually.
    If your problem is solved, please go to 'Thread Tools' above your first post and 'Mark this Thread as Solved'.
    If you use commas as your decimal separator (1,23 instead of 1.23) then please replace commas with semi-colons in your formulae.
    You don't need to give me rep if I helped, but a thank-you is nice.

  3. #3
    Registered User
    Join Date
    08-01-2013
    Location
    Cardiff
    MS-Off Ver
    Office 365
    Posts
    64

    Angry Re: Conditional Formatting Reliant on date and another cell

    Hi Aardigspook,

    Thanks for the response.

    I have tried to upload the document but its not allowing me to select it for upload for some reason. Never had this problem before?

    Thanks for the formulas below. Got them working on my mock spreadsheet but when I go to put them into the spreadsheet I'm actually using.

    I will carry on playing around with them.

    Cheers
    Steve
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    03-20-2015
    Location
    Primarily UK, sometimes NL
    MS-Off Ver
    Work: Office 365 / Home: Office 2010
    Posts
    2,405

    Re: Conditional Formatting Reliant on date and another cell

    So, using your attached file, you could colour the whole row for each if you want, using these CF formulae, applied to the range A2:B4:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Green fill
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Amber fill
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    Red fill

    The $ signs make the column references absolute, which allows you to colour the whole row. If you'd rather just colour column A, use the same formulae but apply them just to the range A2:A4.

    Attached is your file with the above formulae working.
    If you still can't get them working in your real file, get back to us with any error messages and/or say what isn't working and hopefully we can help fix the problem.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. [SOLVED] Conditional Formatting to Highlight Cell if Delivery Date is Greater than the Due Date
    By rahul_ferns76 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-02-2019, 12:19 AM
  2. conditional cell formatting via date
    By prowsie in forum Excel General
    Replies: 4
    Last Post: 02-28-2017, 07:27 AM
  3. Conditional formatting, reliant upon text in two cells
    By Zookopf in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-14-2015, 09:13 AM
  4. Replies: 3
    Last Post: 11-23-2013, 06:21 AM
  5. Conditional Formatting on another cells date value to the current cell date
    By jennys83 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 11-28-2012, 12:55 PM
  6. Replies: 5
    Last Post: 08-22-2012, 05:06 PM
  7. Sorting or if statements reliant on formatting
    By Andy in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-06-2006, 08:30 AM

Tags for this Thread

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