LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Cliff
 
Posts: n/a
Default Count entries in columns and rows

=IF(A1=1,IF(OR(COUNTIF(A1:AS2,1)=2*(COUNTIF(A6:E7, 1)+COUNTIF(A11:E12,1)+COUNTIF(A16:E17,1)+COUNTIF(A 21:E22,1)+COUNTIF(A26:E27,1)+COUNTIF(A31:E32,1)+CO UNTIF(A36:E37,1)+COUNTIF(A41:E42,1)=1),1,""),""))

The above formula is returning #Value.

I am trying to find if A1=1, then look for only two occurrences of the
number 1 in cell range A1:AS2 and then look in these eight ranges as a group,
(A6:E7)+(A11:E12)+(A16:E17)+(A21:E22)+(A26:E27)+(A 31:E32)+(A36:E37)+(A41:E42),
for only one occurrence of the number 1. If either the first one range group
or the second eight range groups are true, return the number 1 or leave the
cell blank.

I tried to make this a question as clear as I could. I would appreciate any
help.
 
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
Conditional count of rows dependent on multiple columns Edwin Castro Excel Worksheet Functions 1 January 11th 06 12:16 AM
How to Count Rows with defined values in multiple columns ryesworld Excel Worksheet Functions 9 November 8th 05 06:32 PM
How to swap rows and columns? [email protected] Excel Discussion (Misc queries) 5 September 21st 05 08:07 AM
Removing Near-Duplicate Rows, Leaving Those w/Most Data in Specific Columns foofoo Excel Discussion (Misc queries) 1 April 2nd 05 12:02 AM
Reduce columns and rows count? murat Excel Worksheet Functions 3 March 16th 05 07:43 PM


All times are GMT +1. The time now is 10:35 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"