Table and Filter Question

MikeL

Active Member
Joined
Mar 17, 2002
Messages
488
Office Version
  1. 365
Platform
  1. Windows
Simplified example - I cant figure how to accomplish.

I have a list of fruits in Col A. I have entered amounts of those fruits at 4 stores - Stores1-4 in the first row. I would like to summarize the type of fruit and amount of fruit by store.

For example, to see fruit at Store 3, I filter col D which would exclude apples. But then I have to hide Col B and C (or Stores 1 and 2) to get the view I'm expecting. Tedious when I have a lot of columns to work with.

I have not been able to accomplish this via filter or pivot. Is there a vba or pivot solution?

--------------------------------------------------------------------------

Table below:


Cell Formulas
RangeFormula
A1fruit
A2orange
A3kiwi
A4apple
A5pear
B1Store1
B240
B510
C1Store2
C220
C430
D1Store3
D230
D310
D525
E1Store4
E320


If I wanted total amounts of fruit by type at Store 3, I;m expecting to get:

Excel 2010
AB
1fruitStore3
2orange30
3kiwi10
4pear25
store3
Cell Formulas
RangeFormula
A1fruit
A2orange
A3kiwi
A4pear
B1Store3
B230
B310
B425


Any thoughts? I am fine if there was a way to select a store and filter to a new worksheet - that is ideal.
Thanks in advance.
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
First, you should re-arrange the data using Reverse Pivot Table technique

See this
Excel Factor Entry 1 - Reverse PivotTable • My Online Training Hub

You achieve this


A
B
C
1
Fruit​
Store​
Amount​
2
orange​
Store1​
40​
3
orange​
Store2​
20​
4
orange​
Store3​
30​
5
kiwi​
Store3​
10​
6
kiwi​
Store4​
20​
7
apple​
Store2​
30​
8
pear​
Store1​
10​
9
pear​
Store3​
25​

<tbody>
</tbody>


Then with the re-arranged data create a Pivot Table

Fruit ---> Row Label
Store ---> Report Filter
Amount ---> Values area



A
B
C
1
2
Store​
Store3​
3
4
Fruit​
Amount​
5
kiwi​
10​
6
orange​
30​
7
pear​
25​
8
Grand Total​
65​

<tbody>
</tbody>



Hope this helps

M.
 
Upvote 0

Forum statistics

Threads
1,215,391
Messages
6,124,679
Members
449,179
Latest member
jacobsscoots

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