How to add minutes in specific cell based on what i input

Kenjiorson

New Member
Joined
Oct 25, 2023
Messages
16
Platform
  1. Windows
Cell E5 auto add minutes from cell D5 when cell C5 input either 1 or 2.
1 is auto add 45 minutes and 2 is 90 minutes, 1 formula is in cell E1 and 2 is in cell E2.
What formula/function to input in E5?
Thank you

3 time sheet.jpg
 

Excel Facts

Workdays for a market open Mon, Wed, Friday?
Yes! Use "0101011" for the weekend argument in NETWORKDAYS.INTL or WORKDAY.INTL. The 7 digits start on Monday. 1 means it is a weekend.
Hi i had some problem with it

When i key 10am or 11am is ok

When i key in 10.30am or 10.35am, shows #VALUE!

Any solution to solve it?
 
Upvote 0
Hi, unfortunately Excel does not use decimals for time periods. Try entering it as 10:30, instead of 10.30.
Alternatively, you may enter .4375 - which Excel translates to 10:30 am.
 
Upvote 0
Assuming if there's no value in Cell C5, Cells E5=D5. If so, try the following formula:
Excel Formula:
=IF($C5=1,$D5+$E$1,IF($C5=2,$D5+$E$2,$D5))
Hi if i want to add another 2 more eg
S1 and S2
S1 same as 1
S2 same as 2

how do i edit the formula or need write a new one?
 
Upvote 0
Hi if i want to add another 2 more eg
S1 and S2
S1 same as 1
S2 same as 2

how do i edit the formula or need write a new one?
Cell E5 auto add minutes from cell D5 when cell C5 input either 1 or 2.
1 is auto add 45 minutes and 2 is 90 minutes, 1 formula is in cell E1 and 2 is in cell E2.
=IF($C5=1,$D5+$E$1,IF($C5=2,$D5+$E$2,$D5))

If i want to add in Cell C5, S1 is 45 minutes and S2 is 90 minutes.
how do i edit the formula or need write a new one?

If cell i4 read from cell C5,
1=120, 2=160, S1=100 and S2=130
How do i write this formula too

Thank you in advance
Not sure what you meant above. Does S1 = 1 or E1?
S1 is different from 1, it is a number i will manually input
meaning i will input either 1, 2, S1 or S2.
Thank you for reply
 
Upvote 0

Forum statistics

Threads
1,224,827
Messages
6,181,199
Members
453,022
Latest member
RobertV1609

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top