+ Reply to Thread
Results 1 to 6 of 6

IF statment to bring back RAG status on week end between multiple week-ends

  1. #1
    Forum Contributor
    Join Date
    09-03-2012
    Location
    Newcastle
    MS-Off Ver
    Excel 2010
    Posts
    132

    IF statment to bring back RAG status on week end between multiple week-ends

    Hi,

    So I'm trying to create a visual plan which shows the RAG status of a reference number between two weeks.

    The RAG of the reference number is either complete, red, amber or green. T

    In my example:

    HR-03. This currently has a green RAG and a baseline date of 30th september. 30th September is a Monday, and my reporting days are Fridays, therefore I want the formula to find the 30th between those two weeks and highlight the cell green with "G" text (as seen in cell V23).

    However, if the milestone is complete (C) RAG, then I want it to look up the column complete date rather than baseline date, and do the exact same as above (as seen in G22).

    In my attachment I have put in a hard copy, and a formula copy. The hard copy is what the formula copy should look like if the formula is correct.

    I think this will only take a few IF statements all in one formula, so shouldn't be too difficult (unless you're me)!

    Many Thanks
    Last edited by jonathan.haynes; 09-05-2013 at 05:13 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    10-10-2012
    Location
    New York
    MS-Off Ver
    Excel 2007/2010
    Posts
    337

    Re: IF statment to bring back RAG status on week end between multiple week-ends

    try this in cell G4
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    and copy down and over

    In cell BD3 your going to want to put a place holder date like 1/1/3000 to make sure the formula works in the last column. put the date in and format the text white to hide it.

    Let us know if you need help with the conditional formatting.
    Don't just use the answers provided for you. Try to understand how it works by reverse engineering or asking about it.

    Please mark the thread as [SOLVED] (Thread Tools->Mark thread as Solved) when answered.
    If you're happy with an answer given, please click the * under the person's name to boost their reputation.

  3. #3
    Valued Forum Contributor
    Join Date
    10-10-2012
    Location
    New York
    MS-Off Ver
    Excel 2007/2010
    Posts
    337

    Re: IF statment to bring back RAG status on week end between multiple week-ends

    [double posted]

  4. #4
    Forum Contributor
    Join Date
    09-03-2012
    Location
    Newcastle
    MS-Off Ver
    Excel 2010
    Posts
    132

    Re: IF statment to bring back RAG status on week end between multiple week-ends

    Hi,

    This is good thanks, I also have another question but will get back to you soon.

    Cheers
    Last edited by jonathan.haynes; 09-04-2013 at 11:36 AM.

  5. #5
    Forum Contributor
    Join Date
    09-03-2012
    Location
    Newcastle
    MS-Off Ver
    Excel 2010
    Posts
    132

    Re: IF statment to bring back RAG status on week end between multiple week-ends

    So.. the next step I want is attached in my spreadsheet at the bottom half. Like last time the second part is hard coded and the top part formula.

    Column D shows the baseline date, I need this now to have a fixed date in the spreadsheet and not move, black colouring and "B" text.
    Column E the current baseline date should only be shown when the baseline date and current baseline date are different (column D & E).
    Column F is a forecast date, this is a forecast date which we are forecasting completion. This should be in yellow colour and "F" text.

    Any further help would be great, could imagine this getting quite complex now.

    Many thanks
    Last edited by jonathan.haynes; 09-05-2013 at 05:13 AM.

  6. #6
    Forum Contributor
    Join Date
    09-03-2012
    Location
    Newcastle
    MS-Off Ver
    Excel 2010
    Posts
    132

    Re: IF statment to bring back RAG status on week end between multiple week-ends

    So i've worked this one out myself, for anyone interested this was the formula I put in I4:

    =IF(AND($D4>=I$3,$D4<J$3,$G4=""),$I$1,IF(AND($G4>=I$3,$G4<J$3),$H4,IF(AND($F4>=I$3,$F4<J$3),$J$1,IF(AND($E4>=I$3,$E4<J$3),$H4))))

    Thanks for help.

+ 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] excel hlep to calculate the week no from dispatch to closed calls week wise
    By johnodys in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 09-05-2013, 04:53 AM
  2. How to: identify repeat offenders within a 3 week period (week per week basis)
    By Heloc in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 11-28-2012, 12:43 AM
  3. Issue status by week?
    By Whougonacall in forum Excel General
    Replies: 2
    Last Post: 05-24-2010, 12:40 PM
  4. Date lookup to get week back
    By Sibrulotte in forum Excel General
    Replies: 20
    Last Post: 11-25-2009, 05:59 PM
  5. Insert a new row when week ends / week starts?
    By dvent in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-09-2008, 01:13 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