+ Reply to Thread
Results 1 to 23 of 23

Return row number

  1. #1
    Registered User
    Join Date
    07-05-2020
    Location
    JERUSALEM
    MS-Off Ver
    2016
    Posts
    30

    Return row number

    Here is the problem
    i am not that smart so please simple solutions
    i have two tables side by side
    4 7 8 10 14 20 ---------------------- 4 7 8 10 14 20 27 28 33
    5 8 10 13 15 17 ---------------------- 5 8 10 13 15 17 22 28 33
    4 5 14 20 24 32 ---------------------- 4 5 14 20 24 32 33 35 38
    2 4 6 11 15 16 ---------------------- 2 4 6 11 15 16 19 24 28
    6 8 11 14 15 16 ---------------------- 6 8 11 14 15 16 20 23 26
    7 9 14 23 24 25 ---------------------- 7 9 14 23 24 25 31 32 37
    13 20 22 23 25 28 ---------------------- 13 20 22 23 25 28 29 34 35

    here is what i need
    in table on the right side with 9 columns to find exact macth of numbers the first row in the left table and to return number of row to next to it and so on and on till the end of the left table
    thank you
    Attached Files Attached Files
    Last edited by MIKE1122; 07-05-2020 at 11:11 AM.

  2. #2
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Return row number

    @MIKE1122

    Welcome to the excelforum.

    Please add in the excel file the expected result for row 1 - 10.
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  3. #3
    Registered User
    Join Date
    07-05-2020
    Location
    JERUSALEM
    MS-Off Ver
    2016
    Posts
    30

    Re: Return row number

    1,0,3,0,5,0,7,0,9
    rowby row starting a1:g1

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Return row number

    Thanks for the reply.

    Please add the result in the excel file and post it again.

    Please add addionaly why you expect that result (based on what?)

  5. #5
    Registered User
    Join Date
    07-05-2020
    Location
    JERUSALEM
    MS-Off Ver
    2016
    Posts
    30

    Re: Return row number

    will post excel file in few hours on roads right now

    i expect thid result
    because i want number of row where first time those numbers appear all together

  6. #6
    Registered User
    Join Date
    07-05-2020
    Location
    JERUSALEM
    MS-Off Ver
    2016
    Posts
    30

    Re: Return row number

    Here is updated file
    middle column expected results
    Attached Files Attached Files

  7. #7
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,463

    Re: Return row number

    Please Login or Register  to view this content.
    Is it are you looking for?
    Quang PT

  8. #8
    Forum Expert
    Join Date
    10-15-2018
    Location
    MA, USA
    MS-Off Ver
    2010, 2019
    Posts
    1,616

    Re: Return row number

    Another guess:

    In I1 copied down:


    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Geoff

    Did I help significantly? If you wish, click on * Add Reputation to say thanks.
    If your problem has been resolved please select ?Solved? from the Thread Tools menu

  9. #9
    Registered User
    Join Date
    07-05-2020
    Location
    JERUSALEM
    MS-Off Ver
    2016
    Posts
    30

    Re: Return row number

    Works perfect when tables are matching in size 7 columns vs 7 7 columns
    but i need when columns are not matching for example 7 columns vs 10 columns or more

  10. #10
    Registered User
    Join Date
    07-05-2020
    Location
    JERUSALEM
    MS-Off Ver
    2016
    Posts
    30

    Re: Return row number

    Thank you but tables are not matching

  11. #11
    Registered User
    Join Date
    07-05-2020
    Location
    JERUSALEM
    MS-Off Ver
    2016
    Posts
    30

    Re: Return row number

    And it checks one column vs one column and i need to check 7 columns into 10 columns

  12. #12
    Registered User
    Join Date
    07-05-2020
    Location
    JERUSALEM
    MS-Off Ver
    2016
    Posts
    30

    Re: Return row number

    And a1:g1 must be compared not only to k1:q1 but to k2:q2 k3:q3 and so on untill match found and then return the row number

  13. #13
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Return row number

    Please be patient and don't open duplicate threads. Thanks.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  14. #14
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Return row number

    Administrative Note:

    More impatience!!!

    We would very much like to help you with your query, however it has been brought to our attention that the same query has been posted on one or more other forums and you have not provided the required cross-post link(s) here.

    Please see Forum Rule #3 about cross-posting and adjust accordingly. Read this to understand why we (and other sites like us) consider this to be important.

    (Note: this requirement is not optional. No help to be offered until the link is provided.)

  15. #15
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Return row number

    As tiny still have questions in this issue that you need to ask here instead of opening duplicate threads, I have removed the solved tag for now.

  16. #16
    Registered User
    Join Date
    07-05-2020
    Location
    JERUSALEM
    MS-Off Ver
    2016
    Posts
    30
    here is a simplified version
    and what is expected
    Attached Files Attached Files

  17. #17
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Return row number

    Hi,

    In your duplicate thread, now closed, I said:
    Hi,

    Welcome to the forum
    This looks like it may be a much simplified example and probably doesn't represent the size or detail of your actual data. We often find that when we give an answer to what is a trivial non representative example when the solution is used with the real world data it doesn't work because of factors like string length and other stuff which is important but hasn't been mentioned.

    If so would you upload your real workbook (or at least a cut down copy), and manually add the results you expect to see.

    You agreed that it was an unrepresentative sample but declined to upload a real workbook with any actual data, just saying you wanted a response for your unrepresentative example.

    Obviously that's your prerogative but just to let you know I prefer not to waste my time formulating an answer for a simple example that may or may not work with production data.
    Long experience tells me that this is unproductive not to say frustrating and I'd rather spend my time on the requests of others who are prepared to offer real data.

    If you aren't prepared to help me to help you then I'll back out.
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  18. #18
    Registered User
    Join Date
    07-05-2020
    Location
    JERUSALEM
    MS-Off Ver
    2016
    Posts
    30

    Re: Return row number

    Dear Richard
    here is the full version of it attached
    Attached Files Attached Files

  19. #19
    Registered User
    Join Date
    07-05-2020
    Location
    JERUSALEM
    MS-Off Ver
    2016
    Posts
    30

    Re: Return row number

    results are expected as shown in simplified version
    for each row and row

  20. #20
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,556

    Re: Return row number

    This proposal is for the file attached to post #16.
    Q1:Z1 are populated using the numbers of the rows of the range with 4 values
    Q2:Z11 are populated using: =SUMPRODUCT(--(ISNUMBER(MATCH($I2:$O2,INDEX($B$2:$E$11,Q$1,),0))))
    The row numbers are displayed in column G using: =MATCH(4,INDEX(Q$2:Z$11,,MATCH(A2,Q$1:Z$1,0)),0)
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  21. #21
    Registered User
    Join Date
    07-05-2020
    Location
    JERUSALEM
    MS-Off Ver
    2016
    Posts
    30

    Re: Return row number

    Thank you JeteMC
    and sorry for late reaction
    the solution you offered looks work thank you
    one more question
    if sizes of table are changing what changes i have to perform in formulas ?
    i attach example file
    thank you again
    Attached Files Attached Files

  22. #22
    Registered User
    Join Date
    03-26-2016
    Location
    São Paulo - Brazil
    MS-Off Ver
    2016
    Posts
    48

    Re: Return row number


  23. #23
    Registered User
    Join Date
    07-05-2020
    Location
    JERUSALEM
    MS-Off Ver
    2016
    Posts
    30

    Re: Return row number

    =AGGREGATE(14,6,A1:A11/(MMULT(COUNTIF(B1:H1,M1:X11),{1;1;1;1;1;1;1;1;1;1;1;1})=COUNT(B1:H1)),1)

    good solution but if there is a alternative with more speed?

+ 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. Replies: 7
    Last Post: 12-06-2015, 05:40 PM
  2. Query date range and ref number match to return another reference number
    By 27paul0 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-09-2015, 07:31 AM
  3. Replies: 2
    Last Post: 01-28-2015, 09:07 AM
  4. [SOLVED] How2 find number in range and return that number or if doesn't exist then the next highest
    By Crawfinator1 in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 06-06-2014, 08:52 AM
  5. Replies: 5
    Last Post: 02-13-2014, 05:37 PM
  6. [SOLVED] To find any 4 digit number and return the same number with desired formating effect.
    By neo4u44 in forum Word Programming / VBA / Macros
    Replies: 3
    Last Post: 04-24-2012, 12:45 AM
  7. Replies: 5
    Last Post: 03-12-2010, 07:33 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