+ Reply to Thread
Results 1 to 4 of 4

Max value in one cell - Time sheets

  1. #1
    Registered User
    Join Date
    06-16-2017
    Location
    Sydney
    MS-Off Ver
    2016
    Posts
    6

    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.


    example:
    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
    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,383

    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.
    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.

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    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
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,899

    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

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