IF(AND( Array formula

Giordano Bruno

Well-known Member
Joined
Jan 7, 2007
Messages
1,341
I am using the following array formula which tells me the first row on which there is a difference between two columns of data in columns A and C.

=MIN(IF(A1:A3000<>C1:C3000,ROW(A1:A3000),3001))

If it identifies, say row 12 then I wish to mark row 12 in column B with an 'x' and have the formula identify the next row where A and C differ. I've tried the following, but it always returns 3001

=MIN(IF(AND(A1:A3000<>C1:C3000,B1:B3000<>"x"),ROW(A1:A3000),3001))

I'm sure I'm doing something really stupid, but I can't see what it is.

Any help gratefully received
 

Excel Facts

Format cells as time
Select range and press Ctrl+Shift+2 to format cells as time. (Shift 2 is the @ sign).
Hi Aladin,

Thanks for your comment. I have the formula in the top window and can quickly 'Goto' the row that is picked as different. When I've done this, I want to mark the row with an "x" and have the formula tell me the next row that is different. It seemed like an easy thing, but perhaps it is not so easy.
 
Upvote 0

Forum statistics

Threads
1,214,979
Messages
6,122,550
Members
449,088
Latest member
davidcom

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top