Is it possible to count number of appearances of a value in a table at different intervals?

rufuxinix

Board Regular
Joined
Jan 23, 2019
Messages
58
Office Version
  1. 2019
Platform
  1. Windows
I have a table with numbers in 5 colums.
I want to know how many times a number appears in a colums in the last 10 rows, 20 rows, 30 rows, etc.
I can do it on one row with Countif but to replicate it to more rows is a very time consuming exercise.
Any easier ways of doing it in Excel?
Thanks.
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Use ROW() to isolate rows,e g.
searching for a 1 in A1:E30 but only in the last 20 rows, ie the ROW() is greater than 10.

SUMPRODUCT((A1:E30=1)*(ROW(A1:E30)>10))
 
Last edited:
Upvote 0
Use ROW() to isolate rows,e g.
searching for a 1 in A1:E30 but only in the last 20 rows, ie the ROW() is greater than 10.

SUMPRODUCT((A1:E30=1)*(ROW(A1:E30)>10))

I don't see the Thank you reply I left here before, something wrong with this system as it keeps telling me I am not logged on, I have to keep relogging and it seems to drop
entries into the thread.
Anyway, thanks again the formula works well.

However I now face a new problem
I am working with a column
So my formula is
SUMPRODUCT((A1:A30=1)*(ROW(A1:AE30)>10))

I now want to copy the formula to the cell below to get the result for the number of times number 2 comes up in the same range.
Excel copies but changes the range to
SUMPRODUCT((A2:E31=1)*(ROW(A2:E31)>10))

How do i get around this issue?

Thanks in advance.
 
Upvote 0
Sorry, let me correct the previous post,

However I now face a new problem
I am working with a column
So my formula is
SUMPRODUCT((A1:A30=1)*(ROW(A1:A30)>10))

The new copied cell becomes
SUMPRODUCT((A2:A31=1)*(ROW(A2:A31)>10))

The range should have stayed as originally entered, in the previous cell
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,020
Latest member
Mohamed Magdi Tawfiq Emam

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