I want to return all values from one row that repeat themselves in the next row
I want to return all values from one row that repeat themselves in the next row
In B4 enter this formula and copy across
=IFERROR(IF(IFERROR(MATCH(B2,$B$3:$K$3,0),""),B2),"")
Teach me Excel VBA
Thank you very much
Or, if you want to return them in a row, without the gaps, use an array formula in B6:
=IFERROR(INDEX(2:2,SMALL(IF(ISNUMBER(MATCH($B$2:$K$2,$B$3:$K$3,0)),COLUMN($B$2:$K$2)),COLUMNS($B6:B6))),"")
Array Formulae are a little different from ordinary formulae in that they MUST be confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER.
You will know the array is active when you see curly brackets { } - or "curly braces" for those of you in the USA, or "flower brackets" for those of you in India - appear around the outside of your formula. If you do not use CTRL+SHIFT+ENTER you will (almost always) get an error message or an incorrect answer. Press F2 on that cell and try again.
Don't type the curly brackets yourself - it won't work...
Glenn
None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.
Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh
Thank you Glenn, that is even better since i want to search the resulted values even further in the next rows, 15 rows to be precise.I just have to figure out how your formula works.
So.. you want the values in row 1 that exist anywhere i the remaining rows to be returned? yes? No? Do you want the returned in a row, or in a column?
I want to searh values from row 2 in row 3, then i want to search the resulted values in row 4, and the resulted values from the last search in row 5 and so on.The results in a row
Last edited by thusarix; 04-15-2017 at 05:22 AM.
Can you post a sample sheet, showing some manually calculated results?
Here i used ImranBhatti's formula
Do you mean this way
You may replicate Glen's solution in similar fashion=IFERROR(IF(IFERROR(MATCH(A2,$A3:$J3,0),""),A2),"")
I read the requirement slightly differently. Row 1 against Row 2. Answer against Row 3, next answer against row 4, etc...
No Glenn, you read it right, that is exactly what i wanted, thank you.
And thank you ImranBhatti as well.
You're welcome.
If that takes care of your original question, please select "Thread Tools" from the menu link above and mark this thread as SOLVED.
It'd also be appreciated if you were to click the Add Reputation button at the foot of any of the posts of all members who helped you reach a solution.
You are welcome thusarix.
Glad we could help you.
OK. Cheers.
And thanks for the rep as well
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks