+ Reply to Thread
Results 1 to 4 of 4

Progress bar (%) hopefully simple and quick

  1. #1
    Forum Contributor
    Join Date
    04-09-2014
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    250

    Exclamation Progress bar (%) hopefully simple and quick

    I am trying to create a progress bar which i am manually creating by simple formatting the following range of cells with a border - so basically displaying a rectangle with no fill

    d5:m5

    i have tick boxes on my spreadsheet - i have already set up the calculations in another cell so that when 7 out of 10 boxes are ticked - y2 will display 70% etc. that's all done.

    What i need now is to somehow tell my 10 cells to change colour according to the number in Y2.

    e.g. if Y2 says 70% i would like the first 7 cells of d5:m5 to change green - creating the illusion of a percentage bar filling up.

    is there an easy way to conditional format this or script this?

    or is their another easier way to do this///.



    thanks,

  2. #2
    Valued Forum Contributor
    Join Date
    12-02-2012
    Location
    Melbourne, VIC
    MS-Off Ver
    Excel 2016
    Posts
    750

    Re: Progress bar (%) hopefully simple and quick

    If you know VBA scripting a bit, this is fairly easy.
    • First draw a rectangle that perfectly meets the edges of the cells. & fill it with color of your choice.
    • Next, using code change the width of the rectangle by multiplying it with the % completed value.
    • Store this VBA code in the Worksheet_Change event so that it runs every time the % value changes.

    To do this via conditional formatting, you'll need to assign a condition to each of the 10 cells. So for first cell the condition would be >=10%, for second cell >=20% ..., you get the drift!

    Good luck
    - Jewel
    Last edited by jewelsharma; 04-15-2014 at 11:02 AM. Reason: Typo

  3. #3
    Registered User
    Join Date
    02-09-2014
    Location
    England
    MS-Off Ver
    Excel 2010
    Posts
    69

    Re: Progress bar (%) hopefully simple and quick

    I use this to put a message on the status bar.
    You could probably adapt it to fill the cells.

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    03-28-2014
    Location
    N. Ireland
    MS-Off Ver
    Excel 2010
    Posts
    11

    Re: Progress bar (%) hopefully simple and quick

    Hi there Muzza86,

    Try the following, although am sure there are cleaner ways to do it. You could run it on a change event to have it work automatically or incorporate it into existing code.

    Please Login or Register  to view this content.
    Mowgli

+ 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] How to separate text?
    By am1221 in forum Excel General
    Replies: 4
    Last Post: 10-10-2012, 04:56 AM
  2. Quick simple question!
    By Dermot81 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-09-2006, 09:39 PM
  3. Replies: 4
    Last Post: 07-20-2006, 01:25 AM
  4. simple quick question
    By John in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-26-2005, 11:05 AM
  5. Quick simple question
    By Penny_Pecker in forum Excel - New Users/Basics
    Replies: 3
    Last Post: 03-31-2005, 10:09 PM

Tags for this Thread

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