Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default min function on non consecutive rows

I have used this function on a golf league score sheet:
=IF(SUMPRODUCT(COUNTIF(INDIRECT({"C7","C11","C15", "C19"}),C22))=1,"Winner","No
Winner") to figure out which score for that hole is the lowest and that it is
not duplicated.

Once I expand the cells to check which are not consecutive I cannot go past
30 cells. I have about 50 cells to check in a column. How can I accomplish
this in one formula?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 751
Default min function on non consecutive rows

Put the cell names that you want to include (C7, C11 etc) in a
separate range, say in F1:F50.

=IF(SUMPRODUCT((C1:C200=C22)*ISNUMBER(MATCH(ADDRES S(ROW(C1:C200),COLUMN(C1:C200),
4),F1:F50,0)))=1,"Winner","No")

Does this help?
Kostis Vezerides

On Feb 14, 8:42 pm, bikemrh wrote:
I have used this function on a golf league score sheet:
=IF(SUMPRODUCT(COUNTIF(INDIRECT({"C7","C11","C15", "C19"}),C22))=1,"Winner","No
Winner") to figure out which score for that hole is the lowest and that it is
not duplicated.

Once I expand the cells to check which are not consecutive I cannot go past
30 cells. I have about 50 cells to check in a column. How can I accomplish
this in one formula?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,726
Default min function on non consecutive rows

=IF(SUMPRODUCT(COUNTIF(INDIRECT("C"&{7,11,15,19,23 ,27,31,35,39,43,47,51,55,59,63,67,71,75,79,83,87,9 1,95,99,103,107,11,115,119,123,127,131,135,139,143 ,137}),C22))=1,"Winner","No
Winner")

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"bikemrh" wrote in message
...
I have used this function on a golf league score sheet:
=IF(SUMPRODUCT(COUNTIF(INDIRECT({"C7","C11","C15", "C19"}),C22))=1,"Winner","No
Winner") to figure out which score for that hole is the lowest and that it
is
not duplicated.

Once I expand the cells to check which are not consecutive I cannot go
past
30 cells. I have about 50 cells to check in a column. How can I accomplish
this in one formula?



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 7
Default min function on non consecutive rows

Thanks, worked like a charm. this is what i was looking for.

"Bob Phillips" wrote:

=IF(SUMPRODUCT(COUNTIF(INDIRECT("C"&{7,11,15,19,23 ,27,31,35,39,43,47,51,55,59,63,67,71,75,79,83,87,9 1,95,99,103,107,11,115,119,123,127,131,135,139,143 ,137}),C22))=1,"Winner","No
Winner")

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)



"bikemrh" wrote in message
...
I have used this function on a golf league score sheet:
=IF(SUMPRODUCT(COUNTIF(INDIRECT({"C7","C11","C15", "C19"}),C22))=1,"Winner","No
Winner") to figure out which score for that hole is the lowest and that it
is
not duplicated.

Once I expand the cells to check which are not consecutive I cannot go
past
30 cells. I have about 50 cells to check in a column. How can I accomplish
this in one formula?




  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default min function on non consecutive rows

Here's another one:

=IF(SUMPRODUCT(--(MOD(ROW(C7:C200),4)=3),--(C7:C200=C22))=1,"Winner","No
Winner")

Adjust for the real end of range.

Biff

"bikemrh" wrote in message
...
I have used this function on a golf league score sheet:
=IF(SUMPRODUCT(COUNTIF(INDIRECT({"C7","C11","C15", "C19"}),C22))=1,"Winner","No
Winner") to figure out which score for that hole is the lowest and that it
is
not duplicated.

Once I expand the cells to check which are not consecutive I cannot go
past
30 cells. I have about 50 cells to check in a column. How can I accomplish
this in one formula?





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
consecutive date numbering by rows of 4 doinwork Excel Discussion (Misc queries) 5 January 25th 07 04:51 PM
copy non-consecutive rows confused Excel Discussion (Misc queries) 7 September 16th 06 07:39 AM
PULLING OUT CONSECUTIVE ROWS GARY Excel Discussion (Misc queries) 2 August 26th 06 04:25 AM
Function to Count Number of Consecutive Rows with a Specific Criteria? Templee1 Excel Worksheet Functions 2 July 10th 05 10:22 PM
Select non-consecutive rows dee Excel Discussion (Misc queries) 14 December 4th 04 08:45 PM


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