count rows used by pivot table

ajm

Well-known Member
Joined
Feb 5, 2003
Messages
1,776
anybody have a formula to count the rows used by a pivot table? i have seen vba methods but not a formula yet?
 

Some videos you may like

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.

Marcelo Branco

MrExcel MVP
Joined
Aug 23, 2010
Messages
16,407
In VBA i think you can use the TableRange2 property. Something like

Msgbox ActiveSheet.PivotTables(1).TableRange2.Rows.Count

Adjust the Sheet name and the PVT index to suit

M.
 

ajm

Well-known Member
Joined
Feb 5, 2003
Messages
1,776
Thanks Marcelo. i am really keen to get a formula solution and not vba in this instance. How is Rio today? have you got a spectacular view from your desk (like all the post cards) or is it the back of another building like where I am?
 

Marcelo Branco

MrExcel MVP
Joined
Aug 23, 2010
Messages
16,407
Hi ajm,

I live a walking distance to the beach (3 blocks), but unfortunately from my desk now i can view only the back of another building like you

Where do you live in Australia? Many years ago i have been in Australia - Perth many days playing a Bridge championship and only one night in Sidney

I see you live in Brisbane...

Cheers

M.
 

ajm

Well-known Member
Joined
Feb 5, 2003
Messages
1,776
i am in brisbane which is north of Sydney. Today is raining so hopefully we will have a short break from the humidity. cheers,
 

Watch MrExcel Video

Forum statistics

Threads
1,122,481
Messages
5,596,395
Members
414,063
Latest member
N_Bates

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
Top