Trouble with zero's
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 3 of 3

Thread: Trouble with zero's

  1. #1
    New Member
    Join Date
    Mar 2002
    Posts
    9
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

     
    Is there a simple way to either record a macro, or do a bit of VB programming that would take a cell's contents and add a leading zero to it? Example, value is :20, but I need it to be 0:20. It has to do with the way the sheet was setup, and since there is a formula that relies on this value (it is a time value), it just gives me the value error if I don't add the zeroes. Thanks in advance for any help.

  2. #2
    MrExcel MVP Anne Troy's Avatar
    Join Date
    Feb 2002
    Location
    Westwood NJ
    Posts
    2,581
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    Better if we know the formula, Joe. Otherwise, if :20 is 20 minutes, why don't you try this format on the cells:

    h:mm
    ~Anne Troy

  3. #3
    New Member
    Join Date
    Mar 2002
    Posts
    9
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

      
    Actually, I did a little poking around, and found some hidden columns I did not notice before. I was able to cobble together the information I needed. I thank you for your reply though.

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

 

 
DMCA.com