+ Reply to Thread
Results 1 to 4 of 4

Display R, A or G depending on text in 2 other cells

  1. #1
    Forum Contributor
    Join Date
    04-28-2004
    Location
    Norwich, England
    MS-Off Ver
    2010
    Posts
    119

    Display R, A or G depending on text in 2 other cells

    Hi I am trying to nest a formula with IF & AND to work out a RAG status. I have 2 questions per row (in Columns I:J) which will be answered either Yes or No.
    For each combination I need to give a RAG status in Column K – e.g. two Yes replies give Green, 2 No replies give no and one No out of 2 will give Amber

    Please could anyone help me out with the syntax as I am getting myself tied up in knots!

    Many thanks in advance

    Below is hoped for response in Column K:

    ColI---Col--- JCol K
    Q1----Q2----RAG
    Yes---Yes---G
    Yes---No----A
    No----Yes---A
    No----No----R
    Last edited by raehippychick; 04-15-2009 at 08:10 AM.

  2. #2
    Registered User
    Join Date
    03-24-2009
    Location
    New York
    MS-Off Ver
    Excel 2003
    Posts
    25

    Re: Display R, A or G depending on text in 2 other cells

    I tested this and it works. I put this in cell K3.

    Please Login or Register  to view this content.
    hope this is what you were looking for.
    Oh you wanted the elegant solution? Sorry, that's extra!

  3. #3
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,437

    Re: Display R, A or G depending on text in 2 other cells

    here's one to cover listed possibilities

    =MID("RAG",(I2="yes")+(J2="yes")+1,1)
    Cheers
    Andy
    www.andypope.info

  4. #4
    Forum Contributor
    Join Date
    04-28-2004
    Location
    Norwich, England
    MS-Off Ver
    2010
    Posts
    119

    Re: Display R, A or G depending on text in 2 other cells

    That's great - they both work - many thanks to both of you

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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