Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 43
Default counting every 3 rd row

The formula "=countif(a1:a1000,"A??")" is working, but i have to count every
3rd row from a1 to a1000 like a1,a4,a7 etc., How to write formula to do this
task.
Thanks for reply
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default counting every 3 rd row

=SUMPRODUCT(--(MOD(ROW(A1:A1000),3)=1),A1:A1000)

"ezil" wrote:

The formula "=countif(a1:a1000,"A??")" is working, but i have to count every
3rd row from a1 to a1000 like a1,a4,a7 etc., How to write formula to do this
task.
Thanks for reply

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 43
Default counting every 3 rd row



"joel" wrote:

=SUMPRODUCT(--(MOD(ROW(A1:A1000),3)=1),A1:A1000)

"ezil" wrote:

The formula "=countif(a1:a1000,"A??")" is working, but i have to count every
3rd row from a1 to a1000 like a1,a4,a7 etc., How to write formula to do this
task.
Thanks for reply


Thanks for the formula but where to put the condition How the formula like
with the condition
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,049
Default counting every 3 rd row

i had to do it like this
in column B put
=MOD(Row(),3)

this gives a 0 for rows, 3,6,9 ....
then in another cell

=SUM((B1:B100=0)*(A1:A100="A"))

entered as an array formula

this, B1:B100=0 , is what gives values for every third row and this
A1:A100="A", counts A's

the array formula thus counts where col B=0 and Col A is "A"



"ezil" wrote in message
...


"joel" wrote:

=SUMPRODUCT(--(MOD(ROW(A1:A1000),3)=1),A1:A1000)

"ezil" wrote:

The formula "=countif(a1:a1000,"A??")" is working, but i have to count
every
3rd row from a1 to a1000 like a1,a4,a7 etc., How to write formula to do
this
task.
Thanks for reply


Thanks for the formula but where to put the condition How the formula like
with the condition


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 9,101
Default counting every 3 rd row

=SUMPRODUCT(--(MOD(ROW(A1:A1000),3)=1),--(A1:A1000="A??"))


"ezil" wrote:



"joel" wrote:

=SUMPRODUCT(--(MOD(ROW(A1:A1000),3)=1),A1:A1000)

"ezil" wrote:

The formula "=countif(a1:a1000,"A??")" is working, but i have to count every
3rd row from a1 to a1000 like a1,a4,a7 etc., How to write formula to do this
task.
Thanks for reply


Thanks for the formula but where to put the condition How the formula like
with the condition

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
counting function but not double counting duplicates JRD Excel Worksheet Functions 2 November 7th 07 06:43 PM
Counting help caloy Excel Discussion (Misc queries) 2 February 28th 06 07:59 PM
Counting rows, then counting values. Michael via OfficeKB.com Excel Discussion (Misc queries) 7 August 4th 05 10:57 PM
Counting Rows Then Counting Values in Columns Michael via OfficeKB.com Excel Programming 1 June 1st 05 04:10 PM
Counting names in a column but counting duplicate names once TBoe Excel Discussion (Misc queries) 9 May 11th 05 11:24 PM


All times are GMT +1. The time now is 11:09 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"