• Hi All

    Please note that at the Chandoo.org Forums there is Zero Tolerance to Spam

    Post Spam and you Will Be Deleted as a User

    Hui...

  • When starting a new post, to receive a quicker and more targeted answer, Please include a sample file in the initial post.

checking values of a row

Hi all,

I want to check a row values and then if two continues cells have a certain predefined values my condition get true value.

i.e:
I have a range from A1 to A5 named MyRange. if in any two continues cell of this range one cell has "A" and the next one has "B" my condition is True else False.

Thanks in advance for your help
 
Something like this perhaps?
=SUMPRODUCT((A1:A5="A")*(A2:A6="B"))>0
Note that the range in the second criteria is shifted by 1.
 
Back
Top