Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
spottkitty
 
Posts: n/a
Default Count if for every other row

I have this formula that adds every other column in my sheet.

=SUM(AH16,AJ16,AL16,AN16,AP16,AR16,AT16,AV16,AV17, AX16,AZ16)

I'm trying to countif the columns next to these that are 1 or greater. the
ways I've tried the formula return errors.

Any insight would be appreciated!

Thanks!
  #2   Report Post  
RagDyer
 
Posts: n/a
Default Count if for every other row

Try this to add your columns:

=SUMPRODUCT((MOD(COLUMN(AH16:AZ16),2)=0)*AH16:AZ16 )

And try this to count the adjoining columns that are =1:

=SUMPRODUCT((MOD(COLUMN(AI16:BA16),2)=1)*(AI16:BA1 6=1))
--
HTH,

RD
==============================================
Please keep all correspondence within the Group, so all may benefit!
==============================================




"spottkitty" wrote in message
...
I have this formula that adds every other column in my sheet.

=SUM(AH16,AJ16,AL16,AN16,AP16,AR16,AT16,AV16,AV17, AX16,AZ16)

I'm trying to countif the columns next to these that are 1 or greater.

the
ways I've tried the formula return errors.

Any insight would be appreciated!

Thanks!


  #3   Report Post  
Ron Rosenfeld
 
Posts: n/a
Default Count if for every other row

On Mon, 24 Oct 2005 17:21:02 -0700, "spottkitty"
wrote:

I have this formula that adds every other column in my sheet.

=SUM(AH16,AJ16,AL16,AN16,AP16,AR16,AT16,AV16,AV17 ,AX16,AZ16)

I'm trying to countif the columns next to these that are 1 or greater. the
ways I've tried the formula return errors.

Any insight would be appreciated!

Thanks!


Something like:

=SUMPRODUCT(--((AI16:BA16)*(MOD(COLUMN(AI16:BA16),2)=1)=1))

and for consistency, you could rewrite your first, SUM formula as:

=SUMPRODUCT(AH16:AZ16*(MOD(COLUMN(AH16:AZ16),2)=0) )

Discussion:

The columns you enumerated in your first formula are all even numbered columns;
hence the MOD function to isolate them.

I assumed when you said the "columns next to these that are 1 or greater", you
meant to look at the contents of every other column from AI16:BA16 and see if
the contents were one or greater. These, of course, would be odd numbered
columns.


--ron
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
Count Intervals of 1 Numeric value in a Row and Return Count down Column Sam via OfficeKB.com Excel Worksheet Functions 8 October 4th 05 04:37 PM
Count Position of Filtered TEXT cells in a column Sam via OfficeKB.com Excel Worksheet Functions 8 May 18th 05 04:23 AM
Count Position of Filtered TEXT cells in a column Sam via OfficeKB.com Excel Worksheet Functions 0 May 15th 05 08:14 PM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM
SUMPRODUCT Formula to Count Row of data Below Matched Criteria Sam via OfficeKB.com Excel Worksheet Functions 8 February 3rd 05 01:37 AM


All times are GMT +1. The time now is 11:02 PM.

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"