+ Reply to Thread
Results 1 to 5 of 5

Achieving an overall RAG using IF formula?

  1. #1
    Registered User
    Join Date
    07-16-2020
    Location
    England
    MS-Off Ver
    2016
    Posts
    2

    Achieving an overall RAG using IF formula?

    Hiya,

    I have a series of questions on my spreadsheet. Some involve a Yes/No response and some have a Yes/No/NA response. I have conditionally formatted my responses so Yes=Green, No=Red, N/A =Grey

    I am trying to see whether I could get Excel to automatically calculate a RAG rating. I would like a box at the bottom of the page that will show as green (if over 70% of responses are yes/green), amber (if between 40%-70% are yes/green) or red (if less than 40% are green/yes).

    I have attached a test spreadsheet so hopefully you can see what I mean.

    I think it will be the iF formula but I’m not sure?

    Many thanks in advance.
    Attached Files Attached Files
    Last edited by lizziex121; 07-16-2020 at 12:34 PM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,882

    Re: Not sure what formula to use?

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Registered User
    Join Date
    07-16-2020
    Location
    England
    MS-Off Ver
    2016
    Posts
    2

    Re: Not sure what formula to use?

    Thank you - is that okay?

  4. #4
    Forum Expert
    Join Date
    10-10-2016
    Location
    Sheffield
    MS-Off Ver
    365 and rarely 2016
    Posts
    3,212

    Re: Achieving an overall RAG using IF formula?

    Yes
    either as a formula and then just format with values bewteen or as a condtional format using a formula

    countif(b3:b9,"Yes")/7

    or countif(b3:b9,"Yes")/sum(countif(b3:b9,{"Yes","No"}) if you ignore N/A

    note your "No" is currently "No " and should be edited

  5. #5
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Achieving an overall RAG using IF formula?

    Set red colour for B13 as default
    Two CF formula in cell B13
    =COUNTIF($B$3:$B$9,"Yes")/ROWS($B$3:$B$9)>=0.8
    Set Green
    =COUNTIF($B$3:$B$9,"Yes")/ROWS($B$3:$B$9)>=0.5
    Set amber
    Quang PT

+ 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. Replies: 3
    Last Post: 03-24-2020, 07:27 AM
  2. Replies: 3
    Last Post: 01-10-2019, 09:34 AM
  3. Replies: 5
    Last Post: 02-16-2018, 06:50 AM
  4. Replies: 8
    Last Post: 09-22-2017, 05:41 AM
  5. Excel formula bar to display the result of the formula , not the formula?
    By max_max in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-18-2016, 07:15 PM
  6. Replies: 11
    Last Post: 06-06-2014, 03:34 PM
  7. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04:06 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