lezawang
Well-known Member
- Joined
- Mar 27, 2016
- Messages
- 1,805
- Office Version
- 2016
- Platform
- Windows
Hi
I have a table like the one below. I sorted "Store" column. I want to find the subtotal of east store or subtotal of north store or north store etc. using subtotal() function.
I know after sorting, I can go to Data tab-->subtotal, that is an option
another option maybe I can use SumIf() function. Another option I can use pivot table.
But I wonder, can I use subtotal() function to do exactly what Data-->Subtotal does? Thank you very much.
<colgroup><col width="64" span="4" style="width:48pt"> </colgroup><tbody>
</tbody>
I have a table like the one below. I sorted "Store" column. I want to find the subtotal of east store or subtotal of north store or north store etc. using subtotal() function.
I know after sorting, I can go to Data tab-->subtotal, that is an option
another option maybe I can use SumIf() function. Another option I can use pivot table.
But I wonder, can I use subtotal() function to do exactly what Data-->Subtotal does? Thank you very much.
name | store | item | price |
linda | east | tv | 662 |
jack | east | dryer | 444 |
alex | east | computer | 723 |
allen | east | tv | 356 |
mary | east | dryer | 792 |
sam | north | washer | 452 |
adam | north | tv | 998 |
david | north | dryer | 307 |
eric | north | computer | 464 |
jim | south | dryer | 410 |
tim | south | computer | 890 |
tom | south | washer | 899 |
sue | south | tv | 931 |
liz | south | dryer | 739 |
dana | west | computer | 459 |
anna | west | tv | 967 |
kim | west | dryer | 931 |
louis | west | computer | 481 |
jeff | west | washer | 737 |
<colgroup><col width="64" span="4" style="width:48pt"> </colgroup><tbody>
</tbody>