+ Reply to Thread
Results 1 to 3 of 3

Formatting depending on value of other cell (date being within two weeks)

  1. #1
    Registered User
    Join Date
    11-03-2015
    Location
    London
    MS-Off Ver
    2013
    Posts
    1

    Formatting depending on value of other cell (date being within two weeks)

    Hi
    I have a spreadsheet logging activity on a number of audits, each audit has its own row.
    One column lists whether we've received payment (Yes or No)
    Another column lists whether they've completed their pre audit survey - left blank until they do, then we input the date completed (so would always be today or before today).
    Another column lists the audit date.

    I'd like the payment column's cell to be highlighted if it still shows 'No' when the audit date column shows a date either this week or next week.
    And the survey column's cell to be highlighted if no date has been entered when the audit date column shows a date either this week or next week

    I've been trying without success!
    I can get the audit date to highlight if it's this week or next week, but not the other two as listed above...

    Thanks!

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,147

    Re: Formatting depending on value of other cell (date being within two weeks)

    Please post a small sample file illustrating what you require.


    Click on "Go Advanced" then Paper Clip icon to "Add Files"

  3. #3
    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: Formatting depending on value of other cell (date being within two weeks)

    Welcome to the forum.

    If your audit dates are in column A, payment Y/N in column B and pre-audit survey completion dates in column C, try the following.

    Select your column B range (B2:B100 or whatever). Click Conditional Formatting on the 'Home' tab, then 'New Rule' then 'Use a formula to determine which cells to format'. Enter this rule:
    =AND(B2<>"Yes",A2>=TODAY(),A2<=TODAY()+14)
    then select the highlighting you want using the 'Format' button (red fill or whatever).

    Repeat for column C using this formula:
    =AND(C2="",A2>=TODAY(),A2<=TODAY()+14)

    Here's a file showing those working (and Col A, though you said you'd got that working yourself): CF highlight column entries for this week or next _ for karen1978.xlsx

    Hope that helps.
    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.

+ 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. Conditional formatting depending on cell
    By Jeffro2p in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-22-2014, 10:37 PM
  2. [SOLVED] Conditional Formatting Depending on Value of Other Cell
    By Ednarb in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 06-18-2014, 01:14 PM
  3. Formula to work out a sum depending on number of weeks
    By malrobarts in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-13-2014, 08:23 AM
  4. Conditional formatting depending on date
    By zad1969 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 04-03-2013, 03:02 AM
  5. [SOLVED] Excel 2007 : Conditional formatting depending on cell value
    By djsouljah in forum Excel General
    Replies: 2
    Last Post: 05-29-2012, 03:04 AM
  6. Conditional formatting depending on another cell
    By 123wc in forum Excel General
    Replies: 4
    Last Post: 01-26-2012, 01:16 PM
  7. Highlight a date cell 3 weeks in advance
    By donjjjordan in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 05-17-2011, 12:07 PM

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