Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default How to:Find the row of the first cell not equal to several values

I have a column with values "OB" followed by several values "IB" and I wat to
see if there is a value different from these and return its row.

that's my array function "={MIN(IF(AND(C3:C500<"OB",
C3:C500<"IB"),ROW(C3:C500),12345678)}" but it's not working correctly

However, when I want to find the first value different from "OB"(in my case
thats the row of the first "IB" value) I use the function:

"{=MIN(IF(C3:C500<"OB",ROW(C3:C500), 12345678)}" and it's working correctly.

Can anybody tell me what's wrong with the first formula and what do I have
to change in it?


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 510
Default How to:Find the row of the first cell not equal to several values

Hi,

In Array formulas, AND is replaced by sign * , OR is replaced by
sign + ...

HTH
Cheers
Carim

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default How to:Find the row of the first cell not equal to several values

Try this

=MIN(IF((C3:C500<"OB")*(C3:C500<"IB"),C3:C500,12 345678))

ctrl shift enter (not just enter)

"Vasil Ivanov" wrote:

I have a column with values "OB" followed by several values "IB" and I wat to
see if there is a value different from these and return its row.

that's my array function "={MIN(IF(AND(C3:C500<"OB",
C3:C500<"IB"),ROW(C3:C500),12345678)}" but it's not working correctly

However, when I want to find the first value different from "OB"(in my case
thats the row of the first "IB" value) I use the function:

"{=MIN(IF(C3:C500<"OB",ROW(C3:C500), 12345678)}" and it's working correctly.

Can anybody tell me what's wrong with the first formula and what do I have
to change in it?


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,646
Default How to:Find the row of the first cell not equal to several values

Hi Vasil,

What about this non-array formula:

=IF(COUNTIF(C3:C20,"OB")+COUNTIF(C3:C20,"IB")=COUN TA(C3:C20),"no 3rd
value","3rd value present!")

Adjust Range!

Regards,
Stefi


€˛Vasil Ivanov€¯ ezt Ć*rta:

I have a column with values "OB" followed by several values "IB" and I wat to
see if there is a value different from these and return its row.

that's my array function "={MIN(IF(AND(C3:C500<"OB",
C3:C500<"IB"),ROW(C3:C500),12345678)}" but it's not working correctly

However, when I want to find the first value different from "OB"(in my case
thats the row of the first "IB" value) I use the function:

"{=MIN(IF(C3:C500<"OB",ROW(C3:C500), 12345678)}" and it's working correctly.

Can anybody tell me what's wrong with the first formula and what do I have
to change in it?


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
Compiling macro based on cell values simonsmith Excel Discussion (Misc queries) 1 May 16th 06 08:31 PM
Help with this conditional IF statement C-Dawg Excel Discussion (Misc queries) 3 May 15th 06 06:01 PM
Urgent date/scheduling calc needed jct Excel Worksheet Functions 3 February 24th 06 01:36 AM
Blank (empty) cell always equal to 0?? ulfah Excel Discussion (Misc queries) 3 February 1st 06 04:55 PM
How can I break values apart that are in the same cell? Phil Excel Worksheet Functions 3 October 4th 05 03:41 PM


All times are GMT +1. The time now is 05:23 AM.

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"