+ Reply to Thread
Results 1 to 5 of 5

adding a value in a cell based off another cell

  1. #1
    Forum Contributor
    Join Date
    04-02-2019
    Location
    Ottawa,Ontario
    MS-Off Ver
    365
    Posts
    180

    adding a value in a cell based off another cell

    What I am trying to achieve is adding either 30 mins or 1hr worth of paid breaks if some criteria is met

    criteria is :

    anything over 5hrs worked = 30mins, however if the time is over 10hrs its =1hr

    in my worksheet that is attached

    column d is where the total hours for the day would be. d4 has 7.45. this would equal 30mins pay in column h4(0.50 ), however if d4 was changed to 10.45, then h4 would have 1.00.

    is this possible ?
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,081

    Re: adding a value in a cell based off another cell

    How about
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,736

    Re: adding a value in a cell based off another cell

    You can use this formula in H4:

    =IF(D4>=10,1,IF(D4>=5,0.5,0))

    Copy down as required.

    Hope this helps.

    Pete

  4. #4
    Forum Contributor
    Join Date
    04-02-2019
    Location
    Ottawa,Ontario
    MS-Off Ver
    365
    Posts
    180

    Re: adding a value in a cell based off another cell

    sweet !!!!

    Thanks !!!

  5. #5
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,081

    Re: adding a value in a cell based off another cell

    Glad to help & thanks for the feedback.

+ 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: 3
    Last Post: 03-09-2019, 08:09 PM
  2. [SOLVED] Adding Line after each cell based on the cell value
    By nasrulla in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-04-2019, 10:47 AM
  3. Replies: 1
    Last Post: 05-24-2018, 11:24 AM
  4. adding and stopping clock in a cell based on adjacent cell value
    By Rohan1985 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 08-22-2015, 08:37 PM
  5. Adding color and a value to a cell based on contents in another cell
    By gbecker in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 04-28-2014, 10:56 PM
  6. Adding text in a cell based on the contents of the cell above
    By trep420 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-01-2013, 07:06 PM
  7. Adding date to a cell based upon entry in another cell
    By callpaul in forum Excel General
    Replies: 2
    Last Post: 05-17-2010, 03:34 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