+ Reply to Thread
Results 1 to 9 of 9

Excel, counting work time with lookup function.

  1. #1
    Registered User
    Join Date
    03-28-2024
    Location
    Waxhaw, NC
    MS-Off Ver
    365
    Posts
    5

    Excel, counting work time with lookup function.

    Does anyone work with lookup function with time values?
    Any help is appreciated
    Only need help with the lookup function, Cells: D7 To add correctly
    D10 through D14 to add correctly
    I’m having formula trouble looking up and adding time worked in one day, a week, and a month.
    I’ve tried many formulas and formats but can’t get the correct time worked.
    Using named ranges, Formatting is as shown.
    Thanks,
    Attached Files Attached Files
    Last edited by Gleisner2; 03-28-2024 at 03:22 PM. Reason: To clarify

  2. #2
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Excel, counting work time with lookup function.

    I have to admit that I do not have a complete understanding of what you are trying to do here, but I do see something that might be the problem.

    Did you intend the T1Time Range to be hours? Excel counts time in days. So 1.5 is 36 hours (one full day plus one half day) You might be getting into this problem in cell B6. You need to take the result and multiply it by 24 to get hours

    =(Date5-Date3)*24
    One spreadsheet to rule them all. One spreadsheet to find them. One spreadsheet to bring them all and at corporate, bind them.

    A picture is worth a thousand words, but a sample spreadsheet is more likely to be worked on.

  3. #3
    Registered User
    Join Date
    03-28-2024
    Location
    Waxhaw, NC
    MS-Off Ver
    365
    Posts
    5

    Re: Excel, counting work time with lookup function.

    That works, i tried several times and all returned the correct values.
    Thankyou

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,885

    Re: Excel, counting work time with lookup function.

    crossposted: https://www.mrexcel.com/board/thread...alues.1256438/

    Rule 7: Cross-posting Without Telling Us

    Your post does not comply with Rule 3 of our Forum RULES. Do not cross-post your question on multiple forums without telling us about your threads on other forums.

    Post a link to any other forums where you have asked the same question.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Read this to understand why we ask you to do this.

    I have added the crosspost reference for you today. Please comply with this and all our rules in the future

    However, if you continue to crosspost, you can expect to have your thread BLOCKED until you update it yourself.
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  5. #5
    Registered User
    Join Date
    03-28-2024
    Location
    Waxhaw, NC
    MS-Off Ver
    365
    Posts
    5

    Re: Excel, counting work time with lookup function.

    Thanks for pointing this out. I have asked mr excel to remove the post. sorry for my lack of professionalism.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,853

    Re: Excel, counting work time with lookup function.

    You do not need to do that. Cross-posting is allowed on BOTH sites, but on BOTH sites you have to declare it and provide a link. It's in BOTH forums' rules.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  7. #7
    Registered User
    Join Date
    03-28-2024
    Location
    Waxhaw, NC
    MS-Off Ver
    365
    Posts
    5

    Re: Excel, counting work time with lookup function.

    I've attached a simple spreadsheet that
    I would like to solve these 2 time values.
    1. to count the time worked today: 3/28/2024
    Using the list of times from Cday2 & T1me +
    the current value in cell J6
    2. To count the hours worked for the week and/or month.
    What are your thoughts?
    Attached Files Attached Files

  8. #8
    Forum Expert dflak's Avatar
    Join Date
    11-24-2015
    Location
    North Carolina
    MS-Off Ver
    365
    Posts
    7,920

    Re: Excel, counting work time with lookup function.

    Since this is a new spreadsheet, it should be in a separate thread.

    I think this is what you want. I converted your data ranges into an Excel table, You can add and delete data in excel tables and the formula and charts will keep up. Tables are dynamic.

    I added helper columns day is the full day without the hours. Week is Day - Weekday (Day) + 7 which is the Saturday at the end of the week in which DAY is. And month which is simply =Text(Day,"mmm")

    Columns P & Q also contain these formulas and some SUMIFS. You can hide the helper columns if you wish. Enter the desired date in cell Q2.
    Attached Files Attached Files

  9. #9
    Registered User
    Join Date
    03-28-2024
    Location
    Waxhaw, NC
    MS-Off Ver
    365
    Posts
    5

    Re: Excel, counting work time with lookup function.

    Hi dlak, Thanks for creating this table. It works, it shows the times for the days, weeks, and month. My spreadsheet uses a few page tabs, and a macro to place data from the 1st page (See screenshot). And places it on the second page. I will add the 3 columns there to replicate the dynamic table. Ill let you know how it works out. You said it will grow with the data. data gets placed row by row through the day.
    Thanks

+ 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] Why does my Lookup function not work?
    By Punxatawny in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-04-2019, 03:25 AM
  2. IF function to work out Ordinary hours, Time 1/2 and Double time!!
    By Jazzy2009 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 03-13-2014, 11:32 PM
  3. [SOLVED] Macro that work same as V-lookup function
    By robrobet in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 03-13-2014, 01:01 PM
  4. Word macro, Excel worksheet function LOOKUP won't work
    By Chuck S48 in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 08-09-2012, 09:44 AM
  5. Replies: 0
    Last Post: 07-12-2012, 12:47 PM
  6. Lookup to count completed work items by time
    By IzzyFizzyLove in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-28-2011, 05:27 AM
  7. Lookup-function does not work
    By SamMy in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-06-2006, 04:40 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