+ Reply to Thread
Results 1 to 13 of 13

Excel 2007 : Conditional Formatting

  1. #1
    Registered User
    Join Date
    05-16-2011
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    9

    Post Conditional Formatting

    Hi. I'm trying to have Excel enter the time from column D into columns E through AB without having to do it by hand. Is there a formula to do this? Thank you so much.
    Attached Files Attached Files

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

    Re: Conditional Formatting

    What should the values be if a stay lasted several days?
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    05-16-2011
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Conditional Formatting

    The values should be in minutes if it's in between the column E and AB hours. Column D should be in hours and minutes. I hope that's what you mean.

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

    Re: Conditional Formatting

    No, it's not.

    It makes sense (to me) that the total of the minutes should equal the total stay. So if someone checked in at noon, and then checked out at noon two days later, all the cells should be 120.

  5. #5
    Registered User
    Join Date
    05-16-2011
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Conditional Formatting

    Yes your right. I didn't know I had any like that went that far.

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

    Re: Conditional Formatting

    See if the attached does what you want. I punted and used a UDF.
    Attached Files Attached Files

  7. #7
    Registered User
    Join Date
    05-16-2011
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Conditional Formatting

    I tried the formulas and everything came up #NAME?. Do I change something in the formula?

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

    Re: Conditional Formatting

    You have to enable macros when prompted. See http://grok.lsu.edu/Article.aspx?articleId=6144

  9. #9
    Registered User
    Join Date
    05-16-2011
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Conditional Formatting

    OMG!!! It worked!!! God bless you fellow Texan!!

  10. #10
    Registered User
    Join Date
    05-16-2011
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Conditional Formatting

    Ok I enabled macros. Should I just be able to add to it now?

  11. #11
    Registered User
    Join Date
    05-16-2011
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Conditional Formatting

    And I don't know what punt or UDT mean either. I enabled macros and tried to duplicate ur formulas but it still wouldn't work.

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

    Re: Conditional Formatting

    A UDF is a user-defined function. This UDF is one I wrote and put in the workbook I posted.

    Why don't you just add your data to that workbook?

    Then copy the formulas down, one whole row at a time. The formula in each row is a single array formula; see http://office.microsoft.com/en-us/ex...001087290.aspx
    Last edited by shg; 05-16-2011 at 09:21 PM.

  13. #13
    Registered User
    Join Date
    05-16-2011
    Location
    US
    MS-Off Ver
    Excel 2003
    Posts
    9

    Re: Conditional Formatting

    Oh ok. Sorry, I was doing it comletely wrong. Thank you again.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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