Empty table row count

PhilHickey

New Member
Joined
Jan 25, 2025
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Hello Everybody, newbie here.
I have a simple question re Excel Tables. The following Excel formula returns a count of rows in a Table's databody range: =ROWS(Table1[#Data]). This works perfectly unless the table is emptied. When I expect to see a count of zero it returns 1. This has been bugging me for some time. Any help much appreciated.
TIA
Phil
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
for example

Excel Formula:
=LET(t,Table1[Data]+0,MIN(t,ROWS(t)))
 
Upvote 0
Welcome to the MrExcel board!

A table cannot have zero rows in its data body range. So what exactly are you trying to achieve?
As well as a general more detailed explanation perhaps you could also refer to the following diagrams and tell us what result you would expect for each one and why?

A.
1737860339789.png
B.
1737860374484.png
C.
1737860410745.png
D.
1737860446163.png
E.
1737860484678.png



F.
1737860527788.png
G.
1737860572752.png


@JEC
Your formula returns 1 for the table in G above which doesn't seem to be answering the request. (It also errors if the 'Data' column is not numerical.)
 
Upvote 0

Forum statistics

Threads
1,225,902
Messages
6,187,729
Members
453,436
Latest member
MEZHH

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