Is this possible to make easier with the new "filter" formula? One formula, one cell?

Razzy

Board Regular
Joined
Jul 24, 2020
Messages
106
Office Version
  1. 365
Platform
  1. Windows
Sample.xlsx
ABCDEFGHIJKLM
1QuantityA (m)B (m)Hight (m)Typetestantallsortertsumfiltrertvektet
210,30,23,34R10,00000,533551
3150,30,12,19O120,00000,423111
440,30,153,34F30,01340,013441
550,30,83,34F40,53350,000000
610,30,43,24O250,00000,000000
710,40,73,24F60,42310,000000
810,30,63,34R70,00000,000000
940,30,23,34O380,00000,000000
10Result3
11
12Bucket15
Ark1
Cell Formulas
RangeFormula
H2:H9H2=IF(AND((B2^2+C2^2)^2>0,E2="F"),(B2^2+C2^2)^2,0)
I2:I9I2=IF(H2<>0,A2,0)
J2:J9J2=IFERROR(LARGE($H$2:$H$9,G2),"")
K2:K9K2=SUMIF($H$2:$H$9,J2,$I$2:$I$9)
L2:L9L2=IF(J2<>J1,SUMIF($H$2:$H$9,J2,$I$2:$I$9),0)
M2:M9M2=IFERROR(ROUNDUP(L2/$B$12,0),0)
M10M10=SUM(M2:M9)


Information:
- A, and B represents a square cross section.
- Hight is the hight of the column.
- Type is the type of Column ("R" for Round, "O" for oval, "F" for Square).
- Successfull/unique test is the diameter of the profile (does not matter what order A and B come in). Pytagoras.
- Neglect type R, and O?, just focus on type "F".
- See my solution.



Task:
1. How many unique profiles are there of type F? And how many are these if you count in the bucket/basket of a maximum of 15 pieces?

2. How meny unique profiles are there of type F, with the exact same length? Count in bucket.


Thanks in advance!
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
With one helper column
+Fluff New.xlsm
ABCDEFGHIJKLMN
1QuantityA (m)B (m)Hight (m)Typetestantallsortertsumfiltrertvektet
210.30.23.34R0.01691000.532911112
3150.30.12.19O10.012000.2025111
440.30.153.34F0.01265630.01265640.012656441
5110.30.83.34F0.532940.5329110000
610.30.43.24O20.062545000000
710.30.63.24F0.202560.202510000
8150.30.63.34R0.20257000000
940.30.23.34O30.01698000000
10Result4
11
12Bucket10
Data
Cell Formulas
RangeFormula
F2:F9F2=(B2:B9^2+C2:C9^2)^2
I2:I9I2=IF(AND((B2^2+C2^2)^2>0,E2="F"),(B2^2+C2^2)^2,0)
J2:J9J2=IF(I2<>0,A2,0)
K2:K9K2=IFERROR(LARGE($I$2:$I$9,H2),"")
L2:L9L2=SUMIF($I$2:$I$9,K2,$J$2:$J$9)
M2:M9M2=IF(K2<>K1,SUMIF($I$2:$I$9,K2,$J$2:$J$9),0)
G6G6=SUM(ROUNDUP(SUMIFS(A2:A9,E2:E9,"F",F2#,UNIQUE(FILTER((B2:B9^2+C2:C9^2)^2,(E2:E9="F"))))/B12,0))
N2:N9N2=IFERROR(ROUNDUP(M2/$B$12,0),0)
N10N10=SUM(N2:N9)
Dynamic array formulas.
 
Upvote 0
With one helper column

Epic answer. Four words and a solution in less than two hours since I posted the problem. I have spent a week on my solution.

Thank you Flutt for raising the level of competence on the forum!

Thanks again :giggle:
 
Upvote 0
Sample.xlsx
ABCDEFGH
1QuantityA (m)B (m)Hight (m)TypeKolonne1
210,30,23,34R0,0169
3150,30,12,19O10,01
440,30,153,34F0,0126563
550,30,83,34F0,5329
610,30,43,24O20,0625
710,40,73,24F0,4225
810,30,63,34R0,2025
940,30,23,34O30,0169
10
11
12Bucket15new#VERDI!
Ark1
Cell Formulas
RangeFormula
F2:F9F2=(B2:B9^2+C2:C9^2)^2
H12H12=SUM(ROUNDUP(SUMIFS(A2:A9,E2:E9,"F",F2#,UNIQUE(FILTER((B2:B9^2+C2:C9^2)^2,(E2:E9="F"))))/B12,0))
Press CTRL+SHIFT+ENTER to enter array formulas.


What am I doing wrong with the formula in H12? And why do you write F2#? Never seen this wildcard before :giggle:
 
Upvote 0
You should not use CSE entry on either of the formula.
 
Upvote 0
You should not use CSE entry on either of the formula.

Sample.xlsx
ABCDEFGH
1QuantityA (m)B (m)Hight (m)TypeKolonne1
210,30,23,34R#OVERFLYT!
3150,30,12,19O1#OVERFLYT!
440,30,153,34F#OVERFLYT!
550,30,83,34F#OVERFLYT!
610,30,43,24O2#OVERFLYT!
710,40,73,24F#OVERFLYT!
810,30,63,34R#OVERFLYT!
940,30,23,34O3#OVERFLYT!
10
11
12Bucket15new#VERDI!
Ark1
Cell Formulas
RangeFormula
F2:F9F2=(B2:B9^2+C2:C9^2)^2
H12H12=SUM(ROUNDUP(SUMIFS(A2:A9,E2:E9,"F",F2#,UNIQUE(FILTER((B2:B9^2+C2:C9^2)^2,(E2:E9="F"))))/B12,0))


hm... Sorry i'll try more...
 
Upvote 0
Delete the contents of F3:F9
 
Upvote 0
Sample.xlsx
ABCDEFGH
1QuantityA (m)B (m)Hight (m)TypeKolonne1
210,30,23,34R0,0169
3150,30,12,19O10,01
440,30,153,34F0,0126563
550,30,83,34F0,5329
610,30,43,24O20,0625
710,40,73,24F0,4225
810,30,63,34R0,2025
940,30,23,34O30,0169
10
11
12Bucket10new3
Ark1
Cell Formulas
RangeFormula
F2:F9F2=(B2^2+C2^2)^2
H12H12=SUM(ROUNDUP(SUMIFS(A2:A9,E2:E9,"F",Tabell1[Kolonne1],UNIQUE(FILTER((B2:B9^2+C2:C9^2)^2,(E2:E9="F"))))/B12,0))


It works like this, I will now try to add criteria for length :)
 
Upvote 0
You do not need to put a formula in each cell in col F, just in F2 & it will spill down.

+Fluff New.xlsm
ABCDEFGH
1QuantityA (m)B (m)Hight (m)Type
210.30.23.34R0.0169
3150.30.12.19O10.01
440.30.153.34F0.012656
5110.30.83.34F0.5329
610.30.43.24O20.0625
710.30.63.24F0.2025
8150.30.63.34R0.2025
940.30.23.34O30.0169
10
11
12Bucket10New4
Data
Cell Formulas
RangeFormula
F2:F9F2=(B2:B9^2+C2:C9^2)^2
H12H12=SUM(ROUNDUP(SUMIFS(A2:A9,E2:E9,"F",F2#,UNIQUE(FILTER((B2:B9^2+C2:C9^2)^2,(E2:E9="F"))))/B12,0))
Dynamic array formulas.
 
Upvote 0
Any tips on how to add the hight into this formula:

UNIQUE(FILTER((B2:B9^2+C2:C9^2)^2

Like:

UNIQUE(FILTER((B2:B9^2*E2:E9+C2:C9^2*E2:E9)^2

I am not so familiar with this function yet
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,022
Latest member
Mohamed Magdi Tawfiq Emam

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