Frequency

R

Reza

i want to calculate the frequency of a set of numbers in a column that are
spaced 24 rows apart, i.e. want to calculate the frequency for the following
values, A2,A26,A50,A74...etc..
 
M

Max

Use this in say, B2:
=INDIRECT("A"&ROWS($1:1)*24-22)
Copy B2 down as far as required to extract all the values (A2, A26, etc)
into a contiguous col range. Then you could easily do whatever you want.
 
T

T. Valko

i want to calculate the frequency

Define frequency.

This formula will return the count of 1's in the range A2, A26, A50, A74:

=SUMPRODUCT(--(MOD(ROW(A2:A74),24)=2),--(A2:A74=1))

Or, this version will account for new row insertions above the range:

=SUMPRODUCT(--(MOD(ROW(A2:A74)-ROW(A2),24)=0),--(A2:A74=1))
 
R

REZAJAM84

Define frequency.

This formula will return the count of 1's in the range A2, A26, A50, A74:

=SUMPRODUCT(--(MOD(ROW(A2:A74),24)=2),--(A2:A74=1))

Or, this version will account for new row insertions above the range:

=SUMPRODUCT(--(MOD(ROW(A2:A74)-ROW(A2),24)=0),--(A2:A74=1))

--
Biff
Microsoft Excel MVP






- Show quoted text -

Beauty!!!!!!!!!!!!!!! thank
you!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 
R

REZAJAM84

Use this in say, B2:
=INDIRECT("A"&ROWS($1:1)*24-22)
Copy B2 down as far as required to extract all the values (A2, A26, etc)
into a contiguous col range. Then you could easily do whatever you want.
--
Max
Singaporehttp://savefile.com/projects/236895
xdemechanik
---





- Show quoted text -

THANK YOU!!!!
 
T

T. Valko

You're welocme. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


Define frequency.

This formula will return the count of 1's in the range A2, A26, A50, A74:

=SUMPRODUCT(--(MOD(ROW(A2:A74),24)=2),--(A2:A74=1))

Or, this version will account for new row insertions above the range:

=SUMPRODUCT(--(MOD(ROW(A2:A74)-ROW(A2),24)=0),--(A2:A74=1))

--
Biff
Microsoft Excel MVP






- Show quoted text -

Beauty!!!!!!!!!!!!!!! thank
you!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top