+ Reply to Thread
Results 1 to 17 of 17

Search for all values that repeat themselves in the next row

  1. #1
    Registered User
    Join Date
    10-17-2011
    Location
    romania
    MS-Off Ver
    Excel 2010
    Posts
    25

    Search for all values that repeat themselves in the next row

    I want to return all values from one row that repeat themselves in the next row
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Re: Search for all values 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

  3. #3
    Registered User
    Join Date
    10-17-2011
    Location
    romania
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: Search for all values that repeat themselves in the next row

    Thank you very much

  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: Search for all values that repeat themselves in the next row

    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...
    Attached Files Attached Files
    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

  5. #5
    Registered User
    Join Date
    10-17-2011
    Location
    romania
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: Search for all values that repeat themselves in the next row

    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.
    Attached Files Attached Files

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: Search for all values that repeat themselves in the next row

    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?

  7. #7
    Registered User
    Join Date
    10-17-2011
    Location
    romania
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: Search for all values that repeat themselves in the next row

    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.

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: Search for all values that repeat themselves in the next row

    Can you post a sample sheet, showing some manually calculated results?

  9. #9
    Registered User
    Join Date
    10-17-2011
    Location
    romania
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: Search for all values that repeat themselves in the next row

    Here i used ImranBhatti's formula
    Attached Files Attached Files

  10. #10
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Re: Search for all values that repeat themselves in the next row

    Do you mean this way
    =IFERROR(IF(IFERROR(MATCH(A2,$A3:$J3,0),""),A2),"")
    You may replicate Glen's solution in similar fashion
    Attached Files Attached Files

  11. #11
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: Search for all values that repeat themselves in the next row

    I read the requirement slightly differently. Row 1 against Row 2. Answer against Row 3, next answer against row 4, etc...
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    10-17-2011
    Location
    romania
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: Search for all values that repeat themselves in the next row

    No Glenn, you read it right, that is exactly what i wanted, thank you.
    And thank you ImranBhatti as well.

  13. #13
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: Search for all values that repeat themselves in the next row

    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.

  14. #14
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Re: Search for all values that repeat themselves in the next row

    You are welcome thusarix.
    Glad we could help you.

  15. #15
    Registered User
    Join Date
    10-17-2011
    Location
    romania
    MS-Off Ver
    Excel 2010
    Posts
    25

    Re: Search for all values that repeat themselves in the next row

    Quote Originally Posted by Glenn Kennedy View Post
    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.
    did both of those way before you wrote this

  16. #16
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,023

    Re: Search for all values that repeat themselves in the next row

    OK. Cheers.

  17. #17
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,784

    Re: Search for all values that repeat themselves in the next row

    And thanks for the rep as well

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Drop down dynamic search field displaying repeat choices from a unique list?
    By tonyridino in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-23-2015, 08:30 AM
  2. Replies: 7
    Last Post: 09-15-2015, 09:44 AM
  3. Formula to search for repeat values and return unique information
    By sccrbrg in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 02-19-2015, 10:47 PM
  4. Macro to cut, paste, search, repeat between two workbooks; request for help
    By wallabumba in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-03-2014, 10:58 AM
  5. [SOLVED] Search within a column and repeat the search until all items are found
    By RANDY LIPOSKY in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 01-09-2014, 10:23 AM
  6. [SOLVED] Search Column for Repeat values and output
    By cp41 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-06-2013, 03:44 PM
  7. [SOLVED] Search for a value and if the value is found copy the whole row. And repeat the proces
    By beamonemo in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-13-2012, 02:34 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1