how to use two size thing one formula

raji123

New Member
Joined
Jun 17, 2022
Messages
11
Office Version
  1. 2013
Platform
  1. Windows
Hi everyone its my problem down

I have two types of "rainpet"
rainpet 4m
rainpet 6m

when,
A1=length
A2=width
A3=numbers(1,2,3,..)
if A3=1 then rainpet is no need
if A3=2or above
then,
use of rain pet numbers= ROUNDUP(A1/6,0) for 6m rainpet
ROUNDUP(A1/4,0) for 4m rainpet

but problem is here
I have to use both size of rain pet adding +2m in length
for example
A1=30m
A2=5.4m (width is no matter)
A3=2
whole length=30m+2m=32m
when length is 32m
then I have to use 6m rainpet=4 pieces (when A3=3 then double,A3=4 Then triple ....continue)
4m rainpet=2 pieces (when A3=3 then double,A3=4 Then triple ....continue)

And when length is 10m +2m =12m then (no need 4m rainpet ) 6m rainpet is 2 piece is ok.

thanks
 

Excel Facts

Will the fill handle fill 1, 2, 3?
Yes! Type 1 in a cell. Hold down Ctrl while you drag the fill handle.
then I have to use 6m rainpet=4 pieces (when A3=3 then double,A3=4 Then triple ....continue)
4m rainpet=2 pieces (when A3=3 then double,A3=4 Then triple ....continue)

And when length is 10m +2m =12m then (no need 4m rainpet ) 6m rainpet is 2 piece is ok.
Sorry having a hard time understanding this section. Am I understanding the pieces and multiplication portion correctly?
See example:
Book1
FGHI
1NumMultiPieces
22m=times 12
33m=times 26
44m=times 312
55m=times 420
66m=times 530
77m=times 642
88m=times 756
99m=times 872
1010m=times 990
1111m=times 10110
1212m=times 11132
1313m=times 12156
1414m=times 13182
1515m=times 14210
1616m=times 15240
1717m=times 16272
1818m=times 17306
1919m=times 18342
2020m=times 19380
2121m=times 20420
2222m=times 21462
2323m=times 22506
2424m=times 23552
2525m=times 24600
2626m=times 25650
2727m=times 26702
2828m=times 27756
2929m=times 28812
3030m=times 29870
Sheet1
Cell Formulas
RangeFormula
I2:I30I2=F2*H2
 
Upvote 0
sorry my english is not good. so I cant explain my problem correctly but see this sheet you will understand


パイプハウス.xlsx
ABCDEFG
130奥行(Length)
25.4間口(width)
32連棟(multi-built)
4*we can change in yellow part. needed number
5when A3 is 1 then C7 or C8 is 0 is ok
6
7レインペット(rainpet) 6m6個(piece)
8レインペット(rainpet) 4m8個(piece)
9
10it is normally used roundup formula.
11but,we needhere is problem
12
13レインペット(rainpet) 6m4個(piece)
14レインペット(rainpet) 4m2個(piece)
15
16we can add +2m in A1 then need this result
17
18
Sheet3
Cell Formulas
RangeFormula
C7C7=ROUNDUP((A1+2)/6,0)*(A3-1)
C8C8=ROUNDUP((A1+2)/4,0)*(A3-1)
     
     
**this value (C7*6)+(C8*4)=(A3+2 ) is wanted**
 
Last edited:
Upvote 0
sorry my english is not good. so I cant explain my problem correctly but see this sheet you will understand


パイプハウス.xlsx
ABCDEFG
130奥行(Length)
25.4間口(width)
32連棟(multi-built)
4*we can change in yellow part. needed number
5when A3 is 1 then C7 or C8 is 0 is ok
6
7レインペット(rainpet) 6m6個(piece)
8レインペット(rainpet) 4m8個(piece)
9
10it is normally used roundup formula.
11but,we needhere is problem
12
13レインペット(rainpet) 6m4個(piece)
14レインペット(rainpet) 4m2個(piece)
15
16we can add +2m in A1 then need this result
17
18
Sheet3
Cell Formulas
RangeFormula
C7C7=ROUNDUP((A1+2)/6,0)*(A3-1)
C8C8=ROUNDUP((A1+2)/4,0)*(A3-1)
     
     
**this value (C7*6)+(C8*4)=(A3+2 ) is wanted**
Trying to come up with a solution for C7 x 6 + C8*4 to equal Cell 'A3" + 2.

Here's the "if 1, then equal's zero" part.
Book1
ABCD
130奥行(Length)
25.4間口(width)
32連棟(multi-built)
4*we can change in yellow part. needed number
5when A3 is 1 then C7 or C8 is 0 is ok
6
7レインペット(rainpet) 6m6個(piece)
8レインペット(rainpet) 4m8個(piece)
raji123
Cell Formulas
RangeFormula
C7C7=IF(A3>=2,ROUNDUP((A1+2)/6,0)*(A3-1),"0")
C8C8=IF(A3>=2,ROUNDUP((A1+2)/4,0)*(A3-1),"0")
 
Upvote 0
Trying to come up with a solution for C7 x 6 + C8*4 to equal Cell 'A3" + 2.

Here's the "if 1, then equal's zero" part.
Book1
ABCD
130奥行(Length)
25.4間口(width)
32連棟(multi-built)
4*we can change in yellow part. needed number
5when A3 is 1 then C7 or C8 is 0 is ok
6
7レインペット(rainpet) 6m6個(piece)
8レインペット(rainpet) 4m8個(piece)
raji123
Cell Formulas
RangeFormula
C7C7=IF(A3>=2,ROUNDUP((A1+2)/6,0)*(A3-1),"0")
C8C8=IF(A3>=2,ROUNDUP((A1+2)/4,0)*(A3-1),"0")
Thank you for reply this formula is too near solve my problem, and hope that "C7"*6+"C8"*4="A3"+2 will come out.
 
Upvote 0
Could you provide a list of some more examples?
So far I see:

Example: 1
A1 = 30
A2 = 5.4
A3 = 2
Answer: 6m = '4' & 4m = '2'

Example: 2
A1 = 10
A2 = 5.4
A3 = 2
Answer: 6m = '2' & 4m = '0'

I don't think this is correct, but thought I'd share:
Book1
ABC
130.0m 奥行
25.4m 間口
32.0m 連棟
4
5レインペット 6m4 個
6レインペット 4m2 個
raji123
Cell Formulas
RangeFormula
C5C5=IF($A$3>=2,ROUNDUP(($A$1+$A$3)/$B5,0)*($A$3)/3,"0")
C6C6=IF($A$3>=2,ROUNDUP(($A$1+$A$3)/$B6,0)*($A$3)/8,"0")
 
Upvote 0
Yes sure-:
Example1
A1=6m
A2=5.4m
A3=2
Answer: 6m = '0' & 4m = '2'
Example2
A1=8m
A2=5.4m
A3=2
Answer: 6m = '1' & 4m = '1'
Example3
A1=10m
A2=5.4m
A3=2
Answer: 6m = '2' & 4m = '0'
Example4
A1=12m
A2=5.4m
A3=2
Answer: 6m = '1' & 4m = '2'
Example5
A1=14m
A2=5.4m
A3=2
Answer: 6m = '2' & 4m = '1'
Example6
A1=16m
A2=5.4m
A3=2
Answer: 6m = '3' & 4m = '0'
.
.
.
.

Example7
A1=20m
A2=5.4m
A3=2
Answer: 6m = '3' & 4m = '1'

Example7
A1=30m
A2=5.4m
A3=2
Answer: 6m = '4' & 4m = '2'

Example8
A1=40m
A2=5.4m
A3=2
Answer: 6m = '7' & 4m = '0'

like this....

"I think if "A1"+2 is divide by 6 then, (4m=0) 4m rainpet is no need"
 
Upvote 0

Forum statistics

Threads
1,215,064
Messages
6,122,936
Members
449,094
Latest member
teemeren

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