+ Reply to Thread
Results 1 to 7 of 7

Timesheet with Attandance Codes & Mutiple Nested Functions

  1. #1
    Valued Forum Contributor
    Join Date
    07-16-2007
    Location
    GA
    MS-Off Ver
    Office 365 - Version 2403
    Posts
    1,059

    Question Timesheet with Attandance Codes & Mutiple Nested Functions

    Hi Everyone,

    I'm creating a Timesheet that has attendance codes in it. I have a nested function working, but it appears that I have one too many criteria.

    Here's the formula that partially works:

    '=IF(G55="","",IF(G54=$G$37,$H$37,IF(G54=$G$38,$H$38,IF(G54=$G$39,$H$39,IF(G54=$G$40,$H$40,IF(G54=$G$41,$H$41,IF(G54=$G$42,$H$42,IF(G54=$G$43,$H$43,IF(G54=$G$44,$H$44,,IF(G54=$G$45,$H$45,IF(G58="","0:00",IF(G59>=$J$48,$G59-$G55-$I$48,$G58-$G55))))))))

    As you can see, it's quite lengthy. I'm seeking a less complex or another formula that works just as well, but can accept all the attendance codes & be used in Excel 2007 & 2003.

    I attached a 2007 version for your review.

    The (large formula is in Cell G27 & I would like it to extract the codes & it's relevant hours from the Attendance Codes area.

    Thanks
    Attached Files Attached Files
    MyCon
    -- Using Latest Version of Excel

  2. #2
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Timesheet with Attandance Codes & Mutiple Nested Functions

    A VLOOKUP() might handle most of the IFs in the middle, but I see you're doing some odd stuff at the end.

    Perhaps if you just briefly described what you're trying to total with all those IFs, maybe there's a simpler test we can offer.
    _________________
    Microsoft MVP 2010 - Excel
    Visit: Jerry Beaucaire's Excel Files & Macros

    If you've been given good help, use the icon below to give reputation feedback, it is appreciated.
    Always put your code between code tags. [CODE] your code here [/CODE]

    ?None of us is as good as all of us? - Ray Kroc
    ?Actually, I *am* a rocket scientist.? - JB (little ones count!)

  3. #3
    Valued Forum Contributor
    Join Date
    07-16-2007
    Location
    GA
    MS-Off Ver
    Office 365 - Version 2403
    Posts
    1,059

    Re: Timesheet with Attandance Codes & Mutiple Nested Functions

    Hi,

    For the most part, row 27 is calculating the time arrived to the time left, minus lunch. I'm throwing in the attendance code to track the various attendance, such as # of vacation days taken. I'll do this somewhere else, which will be in some type of summary block, which I didn't create yet.

    How would VLookup work here?

    Thanks

  4. #4
    Forum Expert JBeaucaire's Avatar
    Join Date
    03-21-2004
    Location
    Bakersfield, CA
    MS-Off Ver
    2010, 2016, Office 365
    Posts
    33,492

    Re: Timesheet with Attandance Codes & Mutiple Nested Functions

    Have you readup on VLOOKUP? You know how it works?

  5. #5
    Valued Forum Contributor
    Join Date
    07-16-2007
    Location
    GA
    MS-Off Ver
    Office 365 - Version 2403
    Posts
    1,059

    Re: Timesheet with Attandance Codes & Mutiple Nested Functions

    Hi,

    I've tried using VLookup in the past & for whatever reasons, never could fully get it function to my needs. Give the scenario & example that I have given, how would I utilize this function or any other applicable function?

  6. #6
    Valued Forum Contributor
    Join Date
    07-16-2007
    Location
    GA
    MS-Off Ver
    Office 365 - Version 2403
    Posts
    1,059

    Re: Timesheet with Attandance Codes & Mutiple Nested Functions

    Hi JBeaucaire,

    I figured out the VLookUp works & for my needs, it works great.! Now, Im trying to figure out how I can sum a row & my matrix table at the same time.

    I have a matrix with codes in it, such as:

    Column 1 Column 2
    V 8
    1/2 4

    I have another table that lists the tasks & estimated hours for Monday through Sunday.

    I wish to sum the week & add also add one of these codes, if the person took a vacation day.

    For example,

    If a person works 32 hours & takes 1 day vacation, the formula would see "V" & add 32 + 8.

    How can I create the formula?

  7. #7
    Valued Forum Contributor
    Join Date
    07-16-2007
    Location
    GA
    MS-Off Ver
    Office 365 - Version 2403
    Posts
    1,059

    Re: Timesheet with Attandance Codes & Mutiple Nested Functions

    Hi Everyone,

    I attached an example file for review & assistance.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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