+ Reply to Thread
Results 1 to 7 of 7

IF 100% Then Task is Done

  1. #1
    Registered User
    Join Date
    04-20-2020
    Location
    Amstelveen, Netherlands
    MS-Off Ver
    16
    Posts
    17

    IF 100% Then Task is Done

    Hi Everyone,

    I am trying to create a macro that will Copy and delete all tasks (from a ToDo list) that are 100% done to a diffrent sheet called Done. I'm struggling to search for the 100% value (this column is formatted as percentage).

    This is what i have so far:

    Please Login or Register  to view this content.

    Can anyone help me out?
    Attached Files Attached Files
    Last edited by joepFIMBLE; 04-23-2020 at 08:06 AM.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,613

    Re: IF 100% Then Task is Done

    Hi,

    Two suggestions:
    Please Login or Register  to view this content.
    The first will help you if you have more than one 100%. Deleting a row shifts all rows below one row up. This is why it is worth having a loop going large->small direction. because all rows below current row were tested before.

    The second 100% is just one.

    If this value is computed some way, it would be safer to have
    Please Login or Register  to view this content.
    or may be even :
    Please Login or Register  to view this content.
    Best Regards,

    Kaper

  3. #3
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,170

    Re: IF 100% Then Task is Done

    Please Login or Register  to view this content.
    Good Luck
    I don't presume to know what I am doing, however, just like you, I too started somewhere...
    One-day, One-problem at a time!!!
    If you feel I have helped, please click on the star to left of post [Add Reputation]
    Also....add a comment if you like!!!!
    And remember...Mark Thread as Solved.
    Excel Forum Rocks!!!

  4. #4
    Registered User
    Join Date
    04-20-2020
    Location
    Amstelveen, Netherlands
    MS-Off Ver
    16
    Posts
    17

    Re: IF 100% Then Task is Done

    Tank you Kasper for you help, again!

    The mocro works perfectly now, little bid stupid of me to forget to use 1 in stead of 100.. Also the backward loop is a perfect solution, thanks a lot!

  5. #5
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,613

    Re: IF 100% Then Task is Done

    See also solution by sintek
    It replaces the loop with the use of autofilter.
    If there is a lot of data, such approach will be significantly quicker.

  6. #6
    Registered User
    Join Date
    04-20-2020
    Location
    Amstelveen, Netherlands
    MS-Off Ver
    16
    Posts
    17

    Re: IF 100% Then Task is Done

    Thank you Sintek.

    Your solution is actually a lot faster than my loop!

    Will use it, thanks

  7. #7
    Forum Expert sintek's Avatar
    Join Date
    12-04-2015
    Location
    Cape Town
    MS-Off Ver
    2013 | 2016 | 2019
    Posts
    13,170

    Re: IF 100% Then Task is Done

    Glad I could contribute...Tx for rep +

+ 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: 4
    Last Post: 01-06-2020, 11:38 AM
  2. Replies: 3
    Last Post: 12-31-2019, 01:46 PM
  3. Pivot table summarizing time spent per task per day from a task log
    By Fattyfatfat Kid in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 04-29-2019, 08:38 PM
  4. [SOLVED] Pivot Chart: Task spend over time, +comparison w/ Task Budget
    By mike_302 in forum Excel Charting & Pivots
    Replies: 3
    Last Post: 12-28-2018, 04:21 PM
  5. export excel list of task in custom outlook task 2010.
    By maxseal in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-22-2014, 03:51 PM
  6. [SOLVED] IF contingent task closed, THEN change formatting of dependent task cell
    By tek_9 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 10-29-2012, 08:40 PM
  7. [SOLVED] dialog box for active cell task to speed repeditive task
    By Todd F. in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-09-2005, 10:05 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