+ Reply to Thread
Results 1 to 8 of 8

Formula to work out if value is within a certain percentage

  1. #1
    Registered User
    Join Date
    10-23-2018
    Location
    England
    MS-Off Ver
    2016
    Posts
    4

    Question Formula to work out if value is within a certain percentage

    Hi All,

    Apologies if this may be in the wrong sub-forum.

    I have a spreadsheet set up to work out if someone is achieving a KPI average. At present i have it set up with conditional formatting to show as a green value if the person is above the average, black if its on the average and red if its below the average.

    What i am looking to change is for it to be orange if they are below the average but within 10%. So if the average was 200 and they hit 180-199 it would show as orange, anything below that would show as red. Hope this explains what I'm trying to achieve let me know if i need to explain further detail.

    Any help would be much appreciated.

    Thanks.

  2. #2
    Forum Guru Norie's Avatar
    Join Date
    02-02-2005
    Location
    Stirling, Scotland
    MS-Off Ver
    Microsoft Office 365
    Posts
    19,643

    Re: Formula to work out if value is within a certain percentage

    Where would the KPI average come from and where is the KPI for each person stored?
    If posting code please use code tags, see here.

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

    Re: Formula to work out if value is within a certain percentage

    you have to use "use formula to determine which cells to format" if the average is in cell A1 <A1*.9 format as red etc

  4. #4
    Registered User
    Join Date
    10-23-2018
    Location
    England
    MS-Off Ver
    2016
    Posts
    4

    Re: Formula to work out if value is within a certain percentage

    Quote Originally Posted by Norie View Post
    Where would the KPI average come from and where is the KPI for each person stored?
    Thanks for the reply Norie, The KPI data is stored on a seperate weekly master list that i use a vlookup to bring each persons data into a simple looking spreadsheet just to display their values against the average as below image shows.
    KPI.jpg

    So i need a formatting/formula that would be making C3 show as orange as its below 10% of 200.

  5. #5
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,211

    Re: Formula to work out if value is within a certain percentage

    That need conditional formatting

    Select B3:E3 Press Alt H L R >
    New rule > use a formula > =B3<B$2 > Format > change font or fill color Orange > OK
    New rule > use a formula > =B3<0.8*B$2 > Format > change font or fill color Red > OK

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

    Re: Formula to work out if value is within a certain percentage

    <c2*.9 as a formal and format orange however 10% of 200 is 20 and so it is not below 180! if you mean below =and(c3> c2*.9,c3<c2)

  7. #7
    Registered User
    Join Date
    10-23-2018
    Location
    England
    MS-Off Ver
    2016
    Posts
    4

    Re: Formula to work out if value is within a certain percentage

    Quote Originally Posted by davsth View Post
    <c2*.9 as a formal and format orange however 10% of 200 is 20 and so it is not below 180! if you mean below =and(c3> c2*.9,c3<c2)
    Hi Davsth, thanks for the help. I have got this partly working but i think i have completely confused myself in the process.

    I currently have
    =and(c3> c2*.9,c3<c2) = orange (I'm not entirely sure what this formula means but it seems to work)
    cell value equals exact = black
    cell value less than = red
    cell value more than = green

    (Ignore the values above in that table)
    With C3 as 180 and C2 as 200. 180 and below appears as red, 181-199 appears as orange, 200 appears as black, 201+ appears as green.

    Does this all seem correct or am i missing something?
    Shouldn't 180 be orange?

  8. #8
    Registered User
    Join Date
    10-23-2018
    Location
    England
    MS-Off Ver
    2016
    Posts
    4

    Re: Formula to work out if value is within a certain percentage

    Quote Originally Posted by Bo_Ry View Post
    That need conditional formatting

    Select B3:E3 Press Alt H L R >
    New rule > use a formula > =B3<B$2 > Format > change font or fill color Orange > OK
    New rule > use a formula > =B3<0.8*B$2 > Format > change font or fill color Red > OK
    This has worked exactly as i need!
    Thank you Bo_Ry and everyone else for providing help. My Excel learning continues..

+ 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] Formula to work out percentage
    By arpanpanchal in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 09-05-2017, 10:43 PM
  2. [SOLVED] Formula to work out a percentage based on a selection from drop down
    By abri in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-27-2017, 02:30 PM
  3. Formula required to work out desired percentage score
    By arfa17 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-02-2014, 07:47 AM
  4. Formula to calculate the percentage of work completed
    By Zodiark in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-02-2012, 04:42 PM
  5. Replies: 4
    Last Post: 09-08-2010, 11:17 AM
  6. how do i work out a percentage
    By juliebenn in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-01-2008, 12:10 PM
  7. [SOLVED] how do i use a formula to work a precentage of a percentage
    By Natalie in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 05-13-2005, 01: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