GROUPBY error in the array filter

Fxingenieria

New Member
Joined
May 1, 2022
Messages
8
Office Version
  1. 365
Platform
  1. Windows

I was triying to do this example from MrExcel, but I get a #VALUE! error. Please can you review in the file I am sending, the red sheet, I painted with yellow the formula. Thank you so much!!
 

Attachments

  • Screenshot Error .png
    Screenshot Error .png
    40.3 KB · Views: 22

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"
You are not providing very much information and an image doesn't help.

Is Groupby function available on your system?
Move to an empty cell.
Start to enter the function =Group does =Groupby( show?

Have you used Groupby or PivotBy with other examples?
 
Upvote 0
You are not providing very much information and an image doesn't help.

Is Groupby function available on your system?
Move to an empty cell.
Start to enter the function =Group does =Groupby( show?

Have you used Groupby or PivotBy with other examples?
Thanks for your answer. The Groupby function is availabre in my system, 365. The error comes from the filter_array part of the function, this part goes to #VALUE! error.
 
Upvote 0
Thanks for your answer. The Groupby function is availabre in my system, 365. The error comes from the filter_array part of the function, this part goes to #VALUE! error.
I have used Groupby in other examples and I get the same error of this part of function, the filter_array.
 
Upvote 0
If this is the same data, the formula works.
I noticed that you are using semicolons; you could try the formula with commas.


GroupBy_PivotBy_PercentOf_Functions_2633.xlsx
ABCDEFGHI
1GroupBy
2
3
4CategoryProductSalesCost
5FruitApple1,275689
6VegetablesAsparagus4,8642,335CategoryProductSalesCost
7FruitBanana3,8091,828FruitCherry9,9365,365
8HerbsBasil8,0883,640FruitDill9,8555,223
9VegetablesBroccoli3,9432,090FruitFig9,0284,965
10VegetablesCabbage2,6531,353FruitGuava5,3852,854
11FruitCherry9,9365,365FruitBanana3,8091,828
12HerbsCilantro3,9672,142FruitElderberry2,7681,439
13FruitDill9,8555,223FruitApple1,275689
14FruitElderberry2,7681,439Fruit42,05622,363
15VegetablesEndive7,1643,725VegetablesPeppers8,5563,936
16HerbsFennel9,5144,376VegetablesEndive7,1643,725
17FruitFig9,0284,965VegetablesAsparagus4,8642,335
18FruitGuava5,3852,854VegetablesBroccoli3,9432,090
19HerbsOregano7,2623,341VegetablesCabbage2,6531,353
20HerbsParsley3,5401,628Vegetables27,18013,439
21VegetablesPeppers8,5563,936Grand Total69,23635,802
22
Groupby
Cell Formulas
RangeFormula
F6:I21F6=GROUPBY(A4:B21,C4:D21,SUM,3,2,-3,A4:A21<>"Herbs")
Dynamic array formulas.
 
Upvote 0
If this is the same data, the formula works.
I noticed that you are using semicolons; you could try the formula with commas.


GroupBy_PivotBy_PercentOf_Functions_2633.xlsx
ABCDEFGHI
1GroupBy
2
3
4CategoryProductSalesCost
5FruitApple1,275689
6VegetablesAsparagus4,8642,335CategoryProductSalesCost
7FruitBanana3,8091,828FruitCherry9,9365,365
8HerbsBasil8,0883,640FruitDill9,8555,223
9VegetablesBroccoli3,9432,090FruitFig9,0284,965
10VegetablesCabbage2,6531,353FruitGuava5,3852,854
11FruitCherry9,9365,365FruitBanana3,8091,828
12HerbsCilantro3,9672,142FruitElderberry2,7681,439
13FruitDill9,8555,223FruitApple1,275689
14FruitElderberry2,7681,439Fruit42,05622,363
15VegetablesEndive7,1643,725VegetablesPeppers8,5563,936
16HerbsFennel9,5144,376VegetablesEndive7,1643,725
17FruitFig9,0284,965VegetablesAsparagus4,8642,335
18FruitGuava5,3852,854VegetablesBroccoli3,9432,090
19HerbsOregano7,2623,341VegetablesCabbage2,6531,353
20HerbsParsley3,5401,628Vegetables27,18013,439
21VegetablesPeppers8,5563,936Grand Total69,23635,802
22
Groupby
Cell Formulas
RangeFormula
F6:I21F6=GROUPBY(A4:B21,C4:D21,SUM,3,2,-3,A4:A21<>"Herbs")
Dynamic array formulas.

If this is the same data, the formula works.
I noticed that you are using semicolons; you could try the formula with commas.


GroupBy_PivotBy_PercentOf_Functions_2633.xlsx
ABCDEFGHI
1GroupBy
2
3
4CategoryProductSalesCost
5FruitApple1,275689
6VegetablesAsparagus4,8642,335CategoryProductSalesCost
7FruitBanana3,8091,828FruitCherry9,9365,365
8HerbsBasil8,0883,640FruitDill9,8555,223
9VegetablesBroccoli3,9432,090FruitFig9,0284,965
10VegetablesCabbage2,6531,353FruitGuava5,3852,854
11FruitCherry9,9365,365FruitBanana3,8091,828
12HerbsCilantro3,9672,142FruitElderberry2,7681,439
13FruitDill9,8555,223FruitApple1,275689
14FruitElderberry2,7681,439Fruit42,05622,363
15VegetablesEndive7,1643,725VegetablesPeppers8,5563,936
16HerbsFennel9,5144,376VegetablesEndive7,1643,725
17FruitFig9,0284,965VegetablesAsparagus4,8642,335
18FruitGuava5,3852,854VegetablesBroccoli3,9432,090
19HerbsOregano7,2623,341VegetablesCabbage2,6531,353
20HerbsParsley3,5401,628Vegetables27,18013,439
21VegetablesPeppers8,5563,936Grand Total69,23635,802
22
Groupby
Cell Formulas
RangeFormula
F6:I21F6=GROUPBY(A4:B21,C4:D21,SUM,3,2,-3,A4:A21<>"Herbs")
Dynamic array formulas.
Thanks, I will change to comma to see if it works.
 
Upvote 0
See post #5
Copy the example to a clean sheet.
N.B. Click on the icon below the f(x) in the header, move to your sheet's A1, and paste.

Does your system provide the same results?
 
Upvote 0
I tried editing the formula and it not longer works.
You are correct; the formula fails with the filter part. It yields a value error.
 
Upvote 0
I tried many edits and workarounds but none of them work.

I sent a feedback post to Microsoft with the inquiry.
 
Upvote 0

Forum statistics

Threads
1,221,310
Messages
6,159,176
Members
451,543
Latest member
cesymcox

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