Time into formula

silentwolf

Well-known Member
Joined
May 14, 2008
Messages
1,216
Office Version
  1. 2016
Hi guys,

can someone tell me how to I need to change this function so I can enter a Time wenn the Cell has a certain value.

=if("A1"="Break";16,5;B1/C1)

it is german so that is why the";" is writing not like the english version ","

But what I like to achieve is that in the cell gets writen 16:30 when the value in A1 ="Break" and if a other name then do a calculation.

Many thanks for your help.

tried like above but that does not work ..(
 

Excel Facts

Shade all formula cells
To shade all formula cells: Home, Find & Select, Formulas to select all formulas. Then apply a light fill color.
maybe "16:30" instead of 16,5
or
TIME(16,30,0)
 
Last edited:
Upvote 0
Hi,
no unfortunatelly that is not working either I did try that already ..(
 
Upvote 0
Break
5​
2​
16:30<-- "16:30"
No break
4​
3​
1.333333​
=IF(A1="Break","16:30",B1/C1)

you can try: TIME(16,30,00)
 
Last edited:
Upvote 0
Hi,
thanks-- I got it with your help!
=if(A1="Break";Time(16;30;0);B1+C1/60*24)
not sure in english but it works :)
 
Upvote 0

Forum statistics

Threads
1,214,429
Messages
6,119,433
Members
448,897
Latest member
ksjohnson1970

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