IF(AND( Array formula

Giordano Bruno

Well-known Member
Joined
Jan 7, 2007
Messages
1,231
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
 

Some videos you may like

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

Giordano Bruno

Well-known Member
Joined
Jan 7, 2007
Messages
1,231
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.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,970
Messages
5,599,105
Members
414,287
Latest member
Rbwester

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
Top