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

rufuxinix

New Member
Joined
Jan 23, 2019
Messages
39
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

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
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,215,497
Messages
6,125,158
Members
449,208
Latest member
emmac

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