ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   how i can make formula (https://www.excelbanter.com/excel-discussion-misc-queries/233520-how-i-can-make-formula.html)

moin

how i can make formula
 
i want to make a formula for time sheet if a employee do over time like
3,4,3.4,3,4 but we have to show 2,2,2,2,2,2 and remaining 9 add in next cell
show as bonus is this possible?
--
MoinnioM

JLatham

how i can make formula
 
Maybe this will help give you some ideas.

Your original values in row 2, from A2 to F2, as

3 4 3 4 3 4
in G2 (right after last 4), formula is =SUM(A2:F2) and should show 21
in next row (row 3) put this formula into A3
=MIN(A2,2)
and fill that all the way to F3: all should show 2
in G3 the formula is =SUM(A3:F3) and should show 12
in H3 (bonus cell) the formula is =G2-G3

You would always enter the actual hours into row 2 in this example.

"moin" wrote:

i want to make a formula for time sheet if a employee do over time like
3,4,3.4,3,4 but we have to show 2,2,2,2,2,2 and remaining 9 add in next cell
show as bonus is this possible?
--
MoinnioM



All times are GMT +1. The time now is 08:23 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com