+ Reply to Thread
Results 1 to 7 of 7

Progress bar to show both percentage completion and time left

  1. #1
    Valued Forum Contributor
    Join Date
    03-28-2014
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    Excel 2016
    Posts
    702

    Progress bar to show both percentage completion and time left

    Hi,

    Can anyone help me on how to show progress bar for both percentage completion and time left.

    The code below is already created with percentage completion. Just to add time left.

    Please Login or Register  to view this content.

  2. #2
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Progress bar to show both percentage completion and time left

    Hi, see my post #27 in this thread:
    http://www.excelforum.com/excel-prog...ml#post3712514

    The problem is how to define the time the macro would take (this would vary on what the data is you are copying from A1, what your machine specification is, how much of the CPU is available to the application at a given time etc etc). You will need to run your macro to get an idea of how long it takes but it will only ever be very approximate.

  3. #3
    Forum Expert
    Join Date
    04-22-2013
    Location
    .
    MS-Off Ver
    .
    Posts
    4,418

    Re: Progress bar to show both percentage completion and time left

    Maybe you could do something like:

    Please Login or Register  to view this content.
    Which might give you some idea, but it would need to be a measureable amount of time (>1 second) to complete one loop.

    This assumes that each loop will take the exact same amount of time, which might work for something simple but based on the code in your other post this will certainly not be the case, so the time left estimate using this method would be useless.
    Last edited by ragulduy; 05-28-2014 at 11:39 AM.

  4. #4
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Progress bar to show both percentage completion and time left

    Similarly,

    Please Login or Register  to view this content.
    Entia non sunt multiplicanda sine necessitate

  5. #5
    Valued Forum Contributor
    Join Date
    03-28-2014
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    Excel 2016
    Posts
    702

    Re: Progress bar to show both percentage completion and time left

    Hi ragulduy,

    Thanks for the details explanation. Now I am fully understand why the left display by windows when we copy and paste file from one folder to another always inaccurate. .

    The code above working fine but the time left not display in time format.

    I have added this but still the same.

    Please Login or Register  to view this content.
    It display long number, maybe need to convert to time format. e.g. XX Mins, XX Sec.

  6. #6
    Valued Forum Contributor
    Join Date
    03-28-2014
    Location
    Kuala Lumpur, Malaysia
    MS-Off Ver
    Excel 2016
    Posts
    702

    Re: Progress bar to show both percentage completion and time left

    Hi shg,

    Thanks for your vba code.

    I want question on your declaration f = Timer , and fETC = (1 / fPct - 1) * (Timer - f).


    If possible, I want to convert to time format. e.g. XX Mins, XX Sec. please help thanks.

  7. #7
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689

    Re: Progress bar to show both percentage completion and time left

    Please Login or Register  to view this content.

+ 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. Completion Percentage of a date range
    By Brian in forum Excel General
    Replies: 5
    Last Post: 09-08-2021, 06:55 AM
  2. [SOLVED] Milestones Completion Percentage
    By chriseverclear in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-07-2012, 06:39 PM
  3. [SOLVED] Percentage Completion Not Correct
    By chriseverclear in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-07-2012, 03:23 AM
  4. Replies: 1
    Last Post: 08-29-2006, 07:21 AM

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