MSGROUPS.NET | Search | Post Question | Groups | Stream | About | Register

### Formatting question with Round

• Follow

```I have a Proposal, in the proposal there is a sheet that gathers the the
facility upgrade cost, production man hours, by building and other info.

One thing I need for this sheet to do is take the Production hrs per
building and calculate installation days per building. Here is the formula I
am using:

=IF(E5<6,1,ROUND(E5/(\$F\$3*8)*1.3,0))

In this case:

E5 is (7.9) Production Hrs By Building and is gathered from the Costing Tab
or Sheet in the Proposal

F3 is estimated crew size of (3) and is gathered from the Costing Tab or
Sheet in the Proposal

Currently I am getting irratic calculations shown below. I would like for it
to show a part of a day if it is 7.9 hours to do the job and there are 3 men
working 8 hours a day it should show something like 0.34 intallation time day
with a Safety Factor.

Production Hrs By Bldg	Installation Time (Days) with Safety Factor
E5            7.9                          	0.0
E6            0.8            	1.0
E7            3.2	                1.0
E8            6.4            	0.0
E9            3.3            	1.0
E10           19.5	                1.0

```
 0

```Dave - Your last argument in the Round function is telling it to round it to
0 decimal places.  =IF(E5<6,1,ROUND(E5/(\$F\$3*8)*1.3,2)) might be more to your
liking

"DaveOfArkansas" wrote:

> I have a Proposal, in the proposal there is a sheet that gathers the the
> facility upgrade cost, production man hours, by building and other info.
>
> One thing I need for this sheet to do is take the Production hrs per
> building and calculate installation days per building. Here is the formula I
> am using:
>
> =IF(E5<6,1,ROUND(E5/(\$F\$3*8)*1.3,0))
>
> In this case:
>
> E5 is (7.9) Production Hrs By Building and is gathered from the Costing Tab
> or Sheet in the Proposal
>
> F3 is estimated crew size of (3) and is gathered from the Costing Tab or
> Sheet in the Proposal
>
> Currently I am getting irratic calculations shown below. I would like for it
> to show a part of a day if it is 7.9 hours to do the job and there are 3 men
> working 8 hours a day it should show something like 0.34 intallation time day
> with a Safety Factor.
>
>            Production Hrs By Bldg	Installation Time (Days) with Safety Factor
> E5            7.9                          	0.0
> E6            0.8            	1.0
> E7            3.2	                1.0
> E8            6.4            	0.0
> E9            3.3            	1.0
> E10           19.5	                1.0
>
```
 0

```Thank you that helps.

Could you help me with one other thing in the formula.

If you will notice that E5 gives an installation days of (0.0) and E6 gives
an installation days of (1.0).

7.9 is > than 0.8 why doesn't it show it as it should be?

By the way with your new formula E5 now shows installation days of (0.43)
which is correct. But it still shows (1.00) for E6.

Production Hrs By Bldg          Installation Time (Days) with
Safety Factor
E5            7.9                            	0.0
E6            0.8            	                1.0
E7            3.2	                                1.0
E8            6.4            	                0.0
E9            3.3            	                1.0
E10         19.5	                                1.0

"Duke Carey" wrote:

> Dave - Your last argument in the Round function is telling it to round it to
> 0 decimal places.  =IF(E5<6,1,ROUND(E5/(\$F\$3*8)*1.3,2)) might be more to your
> liking
>
>
> "DaveOfArkansas" wrote:
>
> > I have a Proposal, in the proposal there is a sheet that gathers the the
> > facility upgrade cost, production man hours, by building and other info.
> >
> > One thing I need for this sheet to do is take the Production hrs per
> > building and calculate installation days per building. Here is the formula I
> > am using:
> >
> > =IF(E5<6,1,ROUND(E5/(\$F\$3*8)*1.3,0))
> >
> > In this case:
> >
> > E5 is (7.9) Production Hrs By Building and is gathered from the Costing Tab
> > or Sheet in the Proposal
> >
> > F3 is estimated crew size of (3) and is gathered from the Costing Tab or
> > Sheet in the Proposal
> >
> > Currently I am getting irratic calculations shown below. I would like for it
> > to show a part of a day if it is 7.9 hours to do the job and there are 3 men
> > working 8 hours a day it should show something like 0.34 intallation time day
> > with a Safety Factor.
> >
> >            Production Hrs By Bldg          Installation Time (Days) with Safety Factor
> > E5            7.9                          	0.0
> > E6            0.8            	                1.0
> > E7            3.2	                                1.0
> > E8            6.4            	                0.0
> > E9            3.3            	                1.0
> > E10         19.5	                                1.0
> >
```
 0

```OK, look at your formula.  The first test in the IF() is whether the value in
column E is less than 6 and, if so, return a 1, OTHERWISE do the ROUND()
portion of the calculation.  Since .8 is far less than 6, the first test
passes and the formula gives you the 1.

I sense the first test in the IF() is either unneeded, or does not embody
the proper logic.

"DaveOfArkansas" wrote:

> Thank you that helps.
>
> Could you help me with one other thing in the formula.
>
> If you will notice that E5 gives an installation days of (0.0) and E6 gives
> an installation days of (1.0).
>
> 7.9 is > than 0.8 why doesn't it show it as it should be?
>
> By the way with your new formula E5 now shows installation days of (0.43)
> which is correct. But it still shows (1.00) for E6.
>
>             Production Hrs By Bldg          Installation Time (Days) with
> Safety Factor
> E5            7.9                            	0.0
> E6            0.8            	                1.0
> E7            3.2	                                1.0
> E8            6.4            	                0.0
> E9            3.3            	                1.0
> E10         19.5	                                1.0
>
>
> "Duke Carey" wrote:
>
> > Dave - Your last argument in the Round function is telling it to round it to
> > 0 decimal places.  =IF(E5<6,1,ROUND(E5/(\$F\$3*8)*1.3,2)) might be more to your
> > liking
> >
> >
> > "DaveOfArkansas" wrote:
> >
> > > I have a Proposal, in the proposal there is a sheet that gathers the the
> > > facility upgrade cost, production man hours, by building and other info.
> > >
> > > One thing I need for this sheet to do is take the Production hrs per
> > > building and calculate installation days per building. Here is the formula I
> > > am using:
> > >
> > > =IF(E5<6,1,ROUND(E5/(\$F\$3*8)*1.3,0))
> > >
> > > In this case:
> > >
> > > E5 is (7.9) Production Hrs By Building and is gathered from the Costing Tab
> > > or Sheet in the Proposal
> > >
> > > F3 is estimated crew size of (3) and is gathered from the Costing Tab or
> > > Sheet in the Proposal
> > >
> > > Currently I am getting irratic calculations shown below. I would like for it
> > > to show a part of a day if it is 7.9 hours to do the job and there are 3 men
> > > working 8 hours a day it should show something like 0.34 intallation time day
> > > with a Safety Factor.
> > >
> > >            Production Hrs By Bldg          Installation Time (Days) with Safety Factor
> > > E5            7.9                          	0.0
> > > E6            0.8            	                1.0
> > > E7            3.2	                                1.0
> > > E8            6.4            	                0.0
> > > E9            3.3            	                1.0
> > > E10         19.5	                                1.0
> > >
```
 0

3 Replies
257 Views

Similiar Articles:

7/17/2012 9:14:32 AM