Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Countif on non adjacent rows

Something along the lines of:

=COUNTIF(Offset('QA Input'!$E$9,(row(A1)-1)*5,0,1,252),'Monthly
Report'!$D$1)

Drag fill down the column.
--
Regards,
Tom Ogilvy


"St@cy" wrote in message
...
=COUNTIF('QA Input'!$E9:$IV9,'Monthly Report'!$D$1)

The formula above returns the correct information, but I need to copy it
down the column with the row changed to multiples of 5. (In other words, I
need the result of every fifth row.)

Does someone know a short cut or the programming for a macro?



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default Countif on non adjacent rows

Thanks it worked after I removed the sheet name for D1. I still am not sure
how offset works, but I think I'm going to need it for my next problem. Now,
I have to count the number of "D"s in one row which have a "1" two rows above
it. (The "D"s and :1"s will change later, so I'll use a reference cell.)
Then I'll need to copy the formula down the column again checking the same
pattern of every fifth row. I'm thinking I'll need to use a lookup or index
and the offset, but I'm stumped how. I'd appreciate your help again.

Thanks,
St@cy

"Tom Ogilvy" wrote:

Something along the lines of:

=COUNTIF(Offset('QA Input'!$E$9,(row(A1)-1)*5,0,1,252),'Monthly
Report'!$D$1)

Drag fill down the column.
--
Regards,
Tom Ogilvy


"St@cy" wrote in message
...
=COUNTIF('QA Input'!$E9:$IV9,'Monthly Report'!$D$1)

The formula above returns the correct information, but I need to copy it
down the column with the row changed to multiples of 5. (In other words, I
need the result of every fifth row.)

Does someone know a short cut or the programming for a macro?




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 24
Default Countif on non adjacent rows

Okay, someone helped figure out the basic formula I needed,
=SUMPRODUCT(--('QA Input'!$E$9:$IV$9=$C$1),--('QA Input'!$E$11:$IV$11="D"))
but I still need help with the OFFSET (same conditions as before).

"St@cy" wrote:

Thanks it worked after I removed the sheet name for D1. I still am not sure
how offset works, but I think I'm going to need it for my next problem. Now,
I have to count the number of "D"s in one row which have a "1" two rows above
it. (The "D"s and :1"s will change later, so I'll use a reference cell.)
Then I'll need to copy the formula down the column again checking the same
pattern of every fifth row. I'm thinking I'll need to use a lookup or index
and the offset, but I'm stumped how. I'd appreciate your help again.

Thanks,
St@cy

"Tom Ogilvy" wrote:

Something along the lines of:

=COUNTIF(Offset('QA Input'!$E$9,(row(A1)-1)*5,0,1,252),'Monthly
Report'!$D$1)

Drag fill down the column.
--
Regards,
Tom Ogilvy


"St@cy" wrote in message
...
=COUNTIF('QA Input'!$E9:$IV9,'Monthly Report'!$D$1)

The formula above returns the correct information, but I need to copy it
down the column with the row changed to multiples of 5. (In other words, I
need the result of every fifth row.)

Does someone know a short cut or the programming for a macro?




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
COUNTIF with adjacent columns Custard Tart Excel Worksheet Functions 4 January 27th 10 01:26 AM
Add cells on two adjacent rows but non-adjacent columns Eve Excel Worksheet Functions 14 October 20th 09 02:32 AM
Countif in non adjacent columns mickjjuk Excel Worksheet Functions 3 October 8th 08 02:57 PM
Compare adjacent fields in adjacent rows Quimera New Users to Excel 6 May 30th 08 11:36 AM
How do I use countif across non-adjacent cells? Nick Excel Worksheet Functions 2 June 9th 05 03:28 AM


All times are GMT +1. The time now is 10:46 PM.

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

About Us

"It's about Microsoft Excel"