+ Reply to Thread
Results 1 to 4 of 4

Max value in one cell - Time sheets

  1. #1
    Registered User
    Join Date
    MS-Off Ver

    Max value in one cell - Time sheets

    Trying to make an sheet to calculate my work hours and I need to limit the number of hours worked in one cell, and anything over the limit should be put into another cell for overtime work.

    8 hours shift worked - Cell A
    7.6 MAX hours normal pay - Cell B
    0.4 hours overtime pay - Cell C

    Is there one formula that I can put in Cell B that automatically limits hours to 7.6 and if Cell A is a value above that limit, the rest will automatically go into Cell C?

    If one formula for CELL B won't work then, I could use two separate formulas for both cells.

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    Ipswich, England
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel (Windows 11 64-bit)

    Re: Max value in one cell - Time sheets

    You will need two formulae:

    In B1: =MIN(7.6,A1)

    In C1: =IF(B1<=7.6,"",A1-B1)
    Last edited by AliGW; 01-20-2018 at 03:17 AM. Reason: Error corrected.

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

    Forum Rules (updated September 2018): please read them here.
    How to use the Power Query code you've been given: help here. More about the Power suite here.

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    Woodinville, WA
    MS-Off Ver
    Office 365

    Re: Max value in one cell - Time sheets

    Hi xcentriq,

    I think you are looking for the Median() formula. See the attached with an example:

    Please Login or Register  to view this content.
    Median for Work Overtime.xlsx
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Forum Guru
    Join Date
    MS-Off Ver

    Re: Max value in one cell - Time sheets

    Or try:

    In B1: =MIN(7.6,A1)

    In C1: =IF(A1=B1,"",A1-B1)

+ 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. Replies: 1
    Last Post: 08-29-2017, 01:13 PM
  2. Replies: 7
    Last Post: 08-21-2016, 10:45 PM
  3. [SOLVED] Macro to format column cell as Time after pasting values collected from sheets
    By celias in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-10-2016, 05:09 PM
  4. Replies: 5
    Last Post: 03-03-2014, 01:53 AM
  5. Replies: 5
    Last Post: 04-18-2013, 11:31 AM
  6. Replies: 0
    Last Post: 07-27-2012, 08:01 AM
  7. Time log adding time from separate sheets
    By teastman in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 12-31-2005, 12:20 PM


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