+ Reply to Thread
Results 1 to 10 of 10

Can I format a number to a percentage of a previous cell?

Hybrid View

  1. #1
    Registered User
    Join Date
    06-10-2017
    Location
    East Yorkshire, England
    MS-Off Ver
    2010
    Posts
    6

    Can I format a number to a percentage of a previous cell?

    Hi all,

    First time post so sorry if this is in the wrong area.

    I have been trying to mess about with something and can't seem to get my head around things.

    What I ideally want is:

    When we talk about showing progress from a start number so if the number is 2.2 in cell B2. In cell C2 if the number inputted is 10-15% greater I would like to be able to conditionally format that to go to light green. If the number in C2 is 16-25% progress to format to dark green and 25%+ to purple. And then the same formula for a number in putted in D2 so the number is a percentage better than the one inputted in B2 but also be able to play around with the percentages.

    I would then easily somehow like it to then do the same for B3 to C3/D3 - B4 to C4/D4 etc

    Is this something that is do able?

    Thanks for any help.

    All the best

    Andy

  2. #2
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,767

    Re: Can I format a number to a percentage of a previous cell?

    Try these CF rules

    select "Use formula ........", enter formula below, FORMAT==>Fill==> select colour==> OK

    =AND(C2>=B2*1.1,C2<=B2*1.15) light green

    =AND(C2>=B2*1.16,C2<=B2*1.25) dark green

    =c2>b2*1.25 purple

  3. #3
    Registered User
    Join Date
    06-10-2017
    Location
    East Yorkshire, England
    MS-Off Ver
    2010
    Posts
    6

    Re: Can I format a number to a percentage of a previous cell?

    Brilliant

    I assume I will then have to manually input B3-C4-D4 B5 etc?

    Thanks again.

  4. #4
    Registered User
    Join Date
    06-10-2017
    Location
    East Yorkshire, England
    MS-Off Ver
    2010
    Posts
    6

    Re: Can I format a number to a percentage of a previous cell?

    Sorry just seen an error I made.

    It to turn yellow if it is equal to the B2 number

    I would want the light green to be 1-15%

    Sorry to be a pain.

  5. #5
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,767

    Re: Can I format a number to a percentage of a previous cell?

    just add another CF

    =C2=B2

    Fill as Yellow

    or is it

    =AND(C2=B2,C2<=B2*1.15) light green

    i.e. C2=B2 or <= B2*1.15

    Confused by your reply as to which you want.
    Last edited by JohnTopley; 06-10-2017 at 05:00 AM.

  6. #6
    Registered User
    Join Date
    06-10-2017
    Location
    East Yorkshire, England
    MS-Off Ver
    2010
    Posts
    6

    Re: Can I format a number to a percentage of a previous cell?

    The =C2=B2 was exactly what I wanted thank you!

    I just assume now I will need to manually input them for all the cells no way to copy the conditions?

  7. #7
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,767

    Re: Can I format a number to a percentage of a previous cell?

    In CF, set "Applies to:" to the range you require

  8. #8
    Registered User
    Join Date
    06-10-2017
    Location
    East Yorkshire, England
    MS-Off Ver
    2010
    Posts
    6

    Re: Can I format a number to a percentage of a previous cell?

    Very sorry but is there also a way at the bottom to show how many are green light green yellow red etc so it automatically tally's them up?

  9. #9
    Registered User
    Join Date
    06-10-2017
    Location
    East Yorkshire, England
    MS-Off Ver
    2010
    Posts
    6

    Re: Can I format a number to a percentage of a previous cell?

    Thank you so much last question and I am done!

    Is there a way to turn of the formatting if there is nothing in the cell because at the moment as the cells are blank they are formatting to yellow.

    No worries if not!

  10. #10
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    30,767

    Re: Can I format a number to a percentage of a previous cell?

    Not without VBA: you could add formulae which "mirror" the CF formulae

    =SUMPRODUCT((C2:C10>=B2:B10)*(C2:C10<=B2:B10*1.15))

    counts those in C >= B and <= B*1.15

+ 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. Percentage added to a previous number
    By george2015 in forum Excel General
    Replies: 1
    Last Post: 05-17-2015, 10:53 PM
  2. percentage change from previous cell over a column.
    By spoon76 in forum Excel General
    Replies: 2
    Last Post: 10-09-2014, 04:31 PM
  3. Replies: 3
    Last Post: 01-31-2013, 09:38 PM
  4. Replies: 0
    Last Post: 01-31-2012, 08:51 PM
  5. How to format percentage column as a number format
    By acsishere in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-25-2008, 04:12 PM
  6. Replies: 2
    Last Post: 02-01-2006, 12:50 PM
  7. Replies: 1
    Last Post: 06-06-2005, 06:05 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