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

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
[Table="width:, class:head"]
[tr=bgcolor:#FFFFFF][td]Break[/td][td]
5​
[/td][td]
2​
[/td][td]16:30[/td][td]<-- "16:30"[/td][/tr]

[tr=bgcolor:#FFFFFF][td]No break[/td][td]
4​
[/td][td]
3​
[/td][td]
1.333333​
[/td][td][/td][/tr]
[/table]

=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,224,820
Messages
6,181,160
Members
453,021
Latest member
Justyna P

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