Subtotal function in Excel 2013 Table causes Filtering issues

rstuart

New Member
Joined
Apr 26, 2009
Messages
32
Office Version
  1. 365
Platform
  1. Windows
Position
Sales Person
Sales $
=SUBTOTAL(3,B$2:B2)
DAVE
1000
=SUBTOTAL(3,B$2:B3)<strike></strike>
MARK
2000
=SUBTOTAL(3,B$2:B4)<strike></strike>
HELEN
3000
=SUBTOTAL(3,B$2:B5)<strike></strike>
MATT
4000
=SUBTOTAL(3,B$2:B6)<strike></strike><strike></strike>
DEREK
5000
=SUBTOTAL(3,B$2:B7)<strike></strike><strike></strike>
MARY
6000
=SUBTOTAL(3,B$2:B8)<strike></strike><strike></strike>
MARTHA
7000

<tbody>
</tbody>

I have replicated my Excel 2013 Table above. When I use the SubTotal function to automatically renumber the rows from 1 to the last, it is causing an issue when I filter the Sales column.

When I apply a Top 5 number filter to the Sales column, the filter doesn't work and returns a 6th row of data. (Apply a Top 10 and you'll get 11 rows of data)

I have tested my Excel table without the SubTotal function it and it all works as it should do.

I really need the table to renumber the position column itself automatically from 1 to the last - after applying filters which may add or remove rows of data.

Is there an alternative to the SubTotal function - which is causing my Filter errors?
 

Excel Facts

Difference between two dates
Secret function! Use =DATEDIF(A2,B2,"Y")&" years"&=DATEDIF(A2,B2,"YM")&" months"&=DATEDIF(A2,B2,"MD")&" days"

Forum statistics

Threads
1,215,491
Messages
6,125,101
Members
449,205
Latest member
ralemanygarcia

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