Help on a formula

Ptipok
Ptipok
edited 12/09/19 in Smartsheet Basics

Hi there,

I try to convert hours to duration, on a basis : 7 hours = 1 day.

I made a formula that has been working so far. But my boss asked me to add a minute setting. So that's my formula :

= IF(AND(Heures@row = "0,5"); 0,05;

IF(AND(Heures@row = "1"); 0,1;

IF(AND(Heures@row = "1,5"); 0,2;

IF(AND(Heures@row = "2"); 0,3; 

IF(AND(Heures@row = "2,5"); 0,35;

IF(AND(Heures@row = "3"); 0,4; 

IF(AND(Heures@row = "3,5"); 0,5; 

IF(AND(Heures@row = "4"); 0,6; 

IF(AND(Heures@row = "4,5"); 0,65; 

IF(AND(Heures@row = "5"); 0,7; 

IF(AND(Heures@row = "5,5"); 0,8; 

IF(AND(Heures@row = "6"); 0,9; 

IF(AND(Heures@row = "6,5"); 0,95; 

IF(AND(Heures@row = "7"); 1))))))))))))))

So it works for whole numbers, but nothing is dispolayed if I select a decimal number.

Have you an idea ?

Thanks a lot for your help.

Comments