+ Reply to Thread
Results 1 to 5 of 5

Issues with RAG IF statement - formula wizz needed!

  1. #1
    Registered User
    Join Date
    09-07-2015
    Location
    London
    MS-Off Ver
    Windows 7
    Posts
    1

    Issues with RAG IF statement - formula wizz needed!

    I am using the following IF statement to flag how close to a consultation deadline I am (deadline given by date in F4 with RAG displayed in adjacent column G4):

    =IF(F4<TODAY(),"RED",IF(F4>TODAY()+21,"GREEN","AMBER"))

    Once I have responded to the consultation and added a response date in I4 is there a way turning the whole row or at least G4 blue to mark that it is completed and thus does not require attention - in effect can I add a condition to 'turn-off' the RAG?

    Lastly, and just because its bothering me aesthetically (yeah I'm a perfectionist) I have applied the IF statement to the entire column of F (by using ctrl + D) and as such the column is now red by default - is there a way of making it so that RAG only appears when there is given date in F4?

    Basically a formula novice and I've been trawling forums and making this work through trial and error - any help really appreciated!

    Thanks

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,468

    Re: Issues with RAG IF statement - formula wizz needed!

    From one pedant to another, the below formula should cure the red cells in your second point.

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


    In order to answer the first part it would be easier if we could see the workbook layout. Could you attach one?

    BSB

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,704

    Re: Issues with RAG IF statement - formula wizz needed!

    You can use conditional formatting to turn the rows blue. Select data in A4:I4, then click on CF | New Rule | Use a formula... , and put this formula in the dialogue box:

    =$I4<>""

    Click on the Format button | Fill tab and choose the shade of blue that you want, then OK twice to exit the dialogue box. Then you can use the Format Painter to apply that format to the other rows.

    If you want to avoid RED if F4 is empty, you can do this:

    =IF(F4="","",IF(F4<TODAY(),"RED",IF(F4>TODAY()+21,"GREEN","AMBER")))

    then copy down.

    Hope this helps.

    Pete

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,372

    Re: Issues with RAG IF statement - formula wizz needed!

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



    Regards, TMS
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  5. #5
    Forum Guru Kyle123's Avatar
    Join Date
    03-10-2010
    Location
    Leeds
    MS-Off Ver
    365 Win 11
    Posts
    7,238

    Re: Issues with RAG IF statement - formula wizz needed!

    Another way
    Please Login or Register  to view this content.

+ 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] Having issues with If statement
    By dmory88 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 07-20-2015, 01:19 PM
  2. IF Statement Issues
    By AFWard in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 05-27-2015, 04:55 AM
  3. [SOLVED] Advice needed - SUMIFS/SUMPRODUCT Issues
    By mo4391 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 04-23-2015, 02:35 PM
  4. [SOLVED] VBA Wizz needed (Java script in VBA Macro?)
    By Zonc in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 07-04-2014, 10:32 AM
  5. [SOLVED] multiple "IF" statement formula issues
    By skippy66 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-21-2013, 07:17 PM
  6. If Statement Formula Result Needed
    By Dexta_Dark in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 11-21-2008, 04:30 PM
  7. HELP! - IF Statement Issues
    By MGeorges in forum Excel General
    Replies: 2
    Last Post: 02-09-2005, 07:35 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