Row Counting specific data

jrake40

New Member
Joined
Nov 22, 2016
Messages
30
I would like to count specific rows in a spreadsheet. For example see below..

Failed XMLs
tran_log_id origin_id reference_id result_code last_updated_dttm
11421022 OMS OMS_39794575 25 01:30.7
11421023 OMS OMS_39794575 25 01:47.2

I have repeated data with different titles and values. I would like to only count the bottom two rows. Is there a way to exclude the title and column headers when doing a row count. That is for this data I want a row count of 2.
 

Excel Facts

What did Pito Salas invent?
Pito Salas, working for Lotus, popularized what would become to be pivot tables. It was released as Lotus Improv in 1989.
Welcome to the forum.

From what I read, this can be done easily with formula. but!
can you explained in detail what is special about the row you are counting?
 
Upvote 0
I have a spreadsheet with different sets like the one above. So the titles and column headers change as well.
So my data rows are like this

Title
Colum headers
data
data
data

The data rows are variable but there is always one row with a title and one row with column headers. I only want to count the data rows.
 
Upvote 0
That's the right idea but I need it to loop. So for each set of data I need it to -2 because there are multiple in the spreadsheet. I was thinking there has to be a way to code it for VBA.
 
Upvote 0
If I had the following two sets of data in a spreadsheet. How could I count the rows only. The issue is that the rows and columns for each data set are different. That is in the first table I have 3 rows I want counted and the second table I have 5 rows that need to be counted.

Table 1
[TABLE="width: 500"]
<tbody>[TR]
[TD]A[/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AA[/TD]
[TD]BB[/TD]
[TD]CC[/TD]
[TD]DD[/TD]
[TD]EE[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]4[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]4[/TD]
[TD]5[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]2[/TD]
[TD]3[/TD]
[TD]4[/TD]
[TD]5[/TD]
[/TR]
</tbody>[/TABLE]


Table 2
[TABLE="width: 500"]
<tbody>[TR]
[TD]B[/TD]
[TD][/TD]
[TD][/TD]
[/TR]
[TR]
[TD]AB[/TD]
[TD]BC[/TD]
[TD]CD[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]2[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]2[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]2[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]2[/TD]
[TD]3[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]2[/TD]
[TD]3[/TD]
[/TR]
</tbody>[/TABLE]

The values in the cells do not matter to me so therefore I want a way I can count the rows. Just the row itself as 1. So in this case I would want it to give me a value of 8. Since there are 8 rows that contain numerical values ( 3 rows in table 1, 5 rows in table 2).
 
Upvote 0
is tran_log_id in column A and always number?
if so =COUNTIFS(A:A,">0") will give you the answers
or just =COUNT(A:A)
 
Last edited:
Upvote 0

Forum statistics

Threads
1,223,445
Messages
6,172,177
Members
452,446
Latest member
walkman99

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