+ Reply to Thread
Results 1 to 7 of 7

1000 hours display

  1. #1
    Registered User
    Join Date
    04-13-2015
    Location
    Luanda
    MS-Off Ver
    Vista
    Posts
    43

    1000 hours display

    Hi guys,
    I need urgently help.

    I have this worksheet with a column which i have had standarized to be insert values less or equal to 100 and have it back as hours, but now i need values less or equal to 1000, and it to return as hours.

    eg. if i insert 1000, it will be 1000:00

    please check the CODE and the file

    Please Login or Register  to view this content.
    Attached Files Attached Files

  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: 1000 hours display

    The macro is working fine for your need.
    All you have to do is to change data validation.
    You have it set now to be between 0 and 100 while in new situation it shall be between 0 and 1000.
    Best Regards,

    Kaper

  3. #3
    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: 1000 hours display

    So Ctrl+G
    B5:B10005
    Data validation (from Data Tools group in Data card)
    set to be between 0 and 1000 (as it is already done in B8)

  4. #4
    Registered User
    Join Date
    04-13-2015
    Location
    Luanda
    MS-Off Ver
    Vista
    Posts
    43

    Re: 1000 hours display

    The problem is:
    If i want to get a 1000 hour, i don't get it.
    did you test it?

    if I type 1000 to get 1000:00 (this is hours), i get 0:60000.
    but i want hours for numbers greater than 166 up to 1000.

    please run some test
    Last edited by Isaacadete; 11-10-2015 at 08:34 AM.

  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: 1000 hours display

    OK. I did a test before, but apparently I tested only something like 150, and of course it worked.

    Here is a corrected macro part:
    Please Login or Register  to view this content.
    This change + data validation change should do the job.

  6. #6
    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: 1000 hours display

    PS. To achieve smoother response you could switch of screen updating during macro run , for instance here:
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    04-13-2015
    Location
    Luanda
    MS-Off Ver
    Vista
    Posts
    43

    Re: 1000 hours display

    thank you so much, for fixing it.
    working perfectly.

    but i still having the back view as date, but i have already understand that excel doesn't count time for more than 23 hours, more than that i will count as days and hours.
    Because i wanted to have as well as 250:00 instead of 10/01/1900 10:00:00.

    Quote Originally Posted by Kaper View Post
    PS. To achieve smoother response you could switch of screen updating during macro run , for instance here:
    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. [SOLVED] TextBox - Display hours greater than 24 and negative hours too.
    By gnaske in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 04-21-2014, 03:01 PM
  2. [SOLVED] Help adding hours over 1000.
    By designedsilence in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-12-2014, 05:04 AM
  3. [SOLVED] Display HOURS in one cell and MINUTES in another
    By chris1965 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-23-2013, 10:25 AM
  4. Display weeks and hours
    By cascao in forum Excel Charting & Pivots
    Replies: 7
    Last Post: 06-21-2012, 12:39 PM
  5. [SOLVED] Display Message Every Hour for 5 Hours
    By cg0789 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-17-2012, 10:58 AM
  6. Replies: 5
    Last Post: 09-20-2011, 07:39 AM
  7. [SOLVED] How do I get entries over 1000 characters to display in a cell?
    By Mike in Berkeley in forum Excel General
    Replies: 3
    Last Post: 09-11-2005, 06:05 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