Link to home
Start Free TrialLog in
Avatar of Go-Bruins
Go-Bruins

asked on

Excel - sorting and summarizing from another sheet

Hi all,

Let's say I have a random list of items on a sheet:

User generated image

What is the best and most efficient way to bring only the Fruit items into another sheet in the same workbook?
Avatar of Roy Cox
Roy Cox
Flag of United Kingdom of Great Britain and Northern Ireland image

I would suggest AdvancedFilter automated by VBA. Attach an example and I'll add some code.
SOLUTION
Avatar of JP
JP
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Here's a quick example. If it does what you want then let me know, I'm finishing now but I can provide a fuller explanation and any changes in the morning
Fruit.xlsm
Just had a look at the other suggestion, but I think you will find advancedfilter much faster, especially on bigger lists
Avatar of Go-Bruins
Go-Bruins

ASKER

Thanks for the replies. Any way to do this w/o code and macros?
Formulas will be more complicated especially as you do not know how many formulas are required, but a PivotTable would work
Fruit.xlsm
Thanks again. I was going to try some kind of =filter formula, but I think the pivot table is a more flexible.

Sorry - but one more question. On the pivot table, let's assume I set the filter to "Vegetable", how do I get the running count in the "Grand Total" field?
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Thanks, but I'm trying to stay away from any cut n paste, as it may lead to errors.
ASKER CERTIFIED SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Beautiful. Thanks.
Pleased to help