victorcarreto
New Member
- Joined
- Jun 28, 2012
- Messages
- 7
Hello, I am dealing with texts, not numbers. Column A has a text in English, and column B a text in Portuguese. I need to find pairs of cells A1-B1 or A1234-B1234 whose number of words have a difference of 9 words minimum. For that I have this formula which I wrote on column C, to identify such case by writing the word “MISMATCH”:
=IF(ABS((LEN(A1)-LEN(SUBSTITUTE(A1," ",""))+1)-(LEN(B1)-LEN(SUBSTITUTE(B1," ",""))+1))>=9,"MISMATCH",0)
The thing is that I don´t want to use a column, like I used column C, to add such a formula, because I would be inserting and deleting cells in column A and B, and the formula loses its reference every time a modification like this is done.
So, what I need is a macro that, with just a shortcut key ,finds next or takes me directly to the next pair of cells in the condition of this formula (I mean, a pair A-B in which A or B has more than 9 words in relation to its pair).
Any idea of how it could be done??
Thank you!
=IF(ABS((LEN(A1)-LEN(SUBSTITUTE(A1," ",""))+1)-(LEN(B1)-LEN(SUBSTITUTE(B1," ",""))+1))>=9,"MISMATCH",0)
The thing is that I don´t want to use a column, like I used column C, to add such a formula, because I would be inserting and deleting cells in column A and B, and the formula loses its reference every time a modification like this is done.
So, what I need is a macro that, with just a shortcut key ,finds next or takes me directly to the next pair of cells in the condition of this formula (I mean, a pair A-B in which A or B has more than 9 words in relation to its pair).
Any idea of how it could be done??
Thank you!