+ Reply to Thread
Results 1 to 24 of 24

Match multiple names showing row numbers

  1. #1
    Registered User
    Join Date
    02-27-2016
    Location
    Canada
    MS-Off Ver
    10
    Posts
    10

    Match multiple names showing row numbers

    I am very limited n my knowledge with excel and could use some help for my business....
    I have monthly entry's, each sheet named by month.... on a separate sheet, lets call it DATA, I have the whole year indexed for fast lookup.
    I want to be able to find multiple MATCH's shown for each month showing its row number, separated by a comma, and showing all the multiple instances of a certain name, and all its row numbers in a single cell.
    I was able to figure out how to find 1 instance of a name with this...
    example: =MATCH(A1,JANUARY!$B$1:$B$1000,0)

    this example returns the row number where to find the name I am looking for, which is great...
    but if there's multiple entry's of this same name in the month, then I need it to show that same name and have it list all its row numbers.

    for example if NAME1 is on row 191, then it will show: 191
    this is good... but, I would like it to show more matches of the same name and its row number... in a SINGLE CELL.

    for example : 191, 237, 278

    This will help me quickly find NAME1 and its exact row number on the monthly sheet, and all the re-accruing instances of that same name.

    I tried this: =MATCH(A1,JANUARY!$B$1:$B$1000,0)&","&MATCH(A1,JANUARY!$B$1:$B$100,0)
    but it just shows the same NAME1 repeated... : 191,191

    I should mention, on the DATA sheet, the 1st row has all the names list in column A,
    columns B through M are the month's, which would contain the formula.

    And to make it correctly show its proper row number if there's a header on the MONTHLY sheets... I had to add how many rows the header was... so,
    if 2 top rows are used as a header, the list actually starts on row 3,
    so I used this instead to show the proper location... : =MATCH(A1,JANUARY!$B$1:$B$1000,0)+2
    this would correctly show its location for that month.

    I greatly appreciate any suggestion or help with this.

    I'll try a small example here... this will show in the cell: 3
    I would like it to show: 3, 5, 6, 8


    ( January (tab) )

    A B
    Date Client Amount

    1/1/2018 NAME1 $100
    1/1/2018 NAME2 $75
    1/1/2018 NAME1 $65
    1/2/2018 NAME1 $120
    1/2/2018 NAME2 $200
    1/2/2018 NAME1 $140
    1/2/2018 NAME3 $120


    ( DATA (tab) )

    Clients JAN

    NAME1 =MATCH(A3,January!$B$3:$B$600,0)+2
    NAME2
    NAME3
    NAME4
    NAME5
    NAME6
    NAME7
    NAME8
    NAME9
    NAME10

  2. #2
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Match multiple names showing row numbers

    Attach a sample workbook (not a picture or text). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  3. #3
    Registered User
    Join Date
    02-27-2016
    Location
    Canada
    MS-Off Ver
    10
    Posts
    10

    Re: Match multiple names showing row numbers

    Ok, I will give it a go, and do my best...
    I did a mock up with just the month of MAY in this excel book, I didn't include all other 11 months because you don't need them to see the example...
    So as you can see in this excel sheet on the DATA tab sheet, cell G2 shows "3", I would like it to show all the instances of "NAME1" from the "MAY" tab sheet , so cell G2 should show....
    3,5,8
    because NAME1 is on the month of MAY and in row 3, row 5 and row 8.
    cell G3 shows 4,
    I would like it to show 4,10.
    Because NAME2 is on the month of MAY and in row 4 and row 10.
    and so on and so forth...

    If you look at cell G7 on the DATA tab sheet, I put the example I tried that doesn't work... it just shows 7,7
    it should show ...
    7,11

    Maybe a whole new function is needed to give proper results...
    any help with this is greatly appreciated!

    Frank..
    Attached Files Attached Files

  4. #4
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Match multiple names showing row numbers

    is that what you want?
    done with PowerQuery

  5. #5
    Registered User
    Join Date
    02-27-2016
    Location
    Canada
    MS-Off Ver
    10
    Posts
    10

    Re: Match multiple names showing row numbers

    Quote Originally Posted by sandy666 View Post
    is that what you want?
    done with PowerQuery
    Hi, thanks so much for the reply...
    I would like the results on the DATA tab sheet, in the corresponding cells, just as I have it now.
    but yes, your example that you show on the month sheet is correct, but I don't want this to display the results on the month sheet, I would like the row numbers to display right where they are under each column on the DATA sheet....
    The #NA is important to me also, because it shows under which month that this client isn't present, which is what I like.

    I don't know if the MATCH formula will work for this, ... maybe VLOOKUP? not sure because I'm not skilled enough.

    thanks again.
    Frank...

  6. #6
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Match multiple names showing row numbers

    it doesn't matter where result table is it was easier to me put it on source tab.
    for the rest.... I can do that for whole data not a part - you gave a part of data only so you got part answer
    in your example NAME4 doesn't exist so it doesn't exist in result table so I can't use NA for this

  7. #7
    Registered User
    Join Date
    02-27-2016
    Location
    Canada
    MS-Off Ver
    10
    Posts
    10

    Re: Match multiple names showing row numbers

    the reason for having this displayed on the separate sheet, "DATA" sheet, so that I can open that sheet and have a quick overview of the whole year, and see a client name, under the corresponding month, and where to find them on any given month, with all occurrence's, as there is 12 sheets/tab's , with each month displayed separately. Jan, Feb, Mar... ect..

    so, is it possible to have the result table on the DATA sheet? for each month as I have it now? with the proper syntax/formula.. what ever that may be

    Frank

  8. #8
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Match multiple names showing row numbers

    is that correct now?

    you can load result table(s) whereever you want, this is not a problem

    problem is you need PowerQuery to do that:

    Power Query for
    or maybe someone will give you any formula solution
    Last edited by sandy666; 05-21-2018 at 11:52 PM.

  9. #9
    Registered User
    Join Date
    02-27-2016
    Location
    Canada
    MS-Off Ver
    10
    Posts
    10

    Re: Match multiple names showing row numbers

    Almost.. LOL
    and thanks for having patients with me...

    you put the NAME and CUSTOM column's on the DATA sheet, but I don't need or want that there...
    I would like the result's under the month of MAY on the DATA sheet, as I have it now...
    so for example, 2,4,7 would be in Cell G2.
    I don't know how to accomplish this.

    you see... my "Real" DATA sheet has 100's of names, and I have each column showing the month, as it is with this example.. just a heck of a lot of more names... with the result on each row of the corresponding name.... so I can look quickly down the list of names.. which are all in alphabetical order, and I have a "Freeze Pane" under the Month rows, so the Month name always stays on top, and I can scroll all the way down and see the name and which month to lookup.

    I am not sure how you accomplished that little table with the CUSTOM column, because there's no syntax in the cell's. Just the results.. I don't know how you did this.
    But anyways.. can the results be just under the month column?.... as I have it now... even though its wrong right now.
    and whats the formula's to accomplish this?
    when I am entering data on the current month... it will automatically populate under the proper month column on the DATA sheet.
    Last edited by xfiels; 05-22-2018 at 12:08 AM.

  10. #10
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Cool Re: Match multiple names showing row numbers

    this is a cosmetic problem. Nothing more...

    PowerQuery works with M code not with any formula or VBA.
    Like I said befoire, to see how it works you need PowerQuery add-in (read post above)

    it's hard to say something more with not representative example of data
    Last edited by sandy666; 05-22-2018 at 12:16 AM.

  11. #11
    Registered User
    Join Date
    02-27-2016
    Location
    Canada
    MS-Off Ver
    10
    Posts
    10

    Re: Match multiple names showing row numbers

    I have no idea how you got the numbers to show under the month....
    and all the MATCH syntax's are gone.. so still no idea what's happening here... or how you got the number's to show.

    when I am entering data on the current month... like MAY, it should automatically populate under the proper month column on the DATA sheet.

    I tried entering new dates/names on your example sheet... but nothing shows on the DATA sheet.

    If I need power query software, to do this.. then this is a whole new learning curve for me.. and its getting way to complicated to do such a simple thing.

    There's got to be some other formula to do this task within excel as it is.

    Frank

  12. #12
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Match multiple names showing row numbers

    Re-read post#8
    if this is so simple with formula - wait for formula solution, no problem

  13. #13
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Match multiple names showing row numbers

    In the attached I changed one thing. In row 1 of 'DATA' I replaced the text "dates" with real dates ... the 1st of each month.

    If you are not aware of it dates (and times) are numbers. The formatting is cosmetic. It is much easier to use numbers for comparison against the dates in 'MAY' which are numbers.

    In C1:I1 of 'DATA' this formula to return dates. Then Custom formatted "mmm yyyy".
    Formula: copy to clipboard
    Please Login or Register  to view this content.


    This formula is a little long to meet the requirement for #N/A returns.

    It is array entered.
    If you aren’t familiar with array-entered formulas array enter means the formula must be committed from edit mode by simultaneously pressing and holding down Ctrl and Shift while hitting Enter.
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Attached Files Attached Files
    Dave

  14. #14
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Match multiple names showing row numbers

    If you prefer you can replace that last formula with this longer non array entered formula.

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

  15. #15
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Match multiple names showing row numbers

    @Dave
    but op require number of rows in this format: 1,2,3.... not sum of values

    eg.:

    G
    H
    1
    Name May
    2
    NAME1 2,4,7
    3
    NAME2 3,9
    4
    NAME3 5,8
    5
    NAME4 #N/A
    6
    NAME6 6,10
    7
    NAME5 11
    8
    NAME7 #N/A
    9
    NAME8 #N/A
    10
    NAME9 #N/A
    11
    NAME10 #N/A
    Last edited by sandy666; 05-22-2018 at 02:48 AM.

  16. #16
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,914

    Re: Match multiple names showing row numbers

    With helper column you can achieve it with formula, are you ok with helper column
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  17. #17
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Match multiple names showing row numbers

    With VBA user defined function. Array entered
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Requires this code (already installed in attached).

    Please Login or Register  to view this content.
    How to install your new code
    1. Copy the Excel VBA code
    2. Select the workbook in which you want to store the Excel VBA code
    3. Press Alt+F11 to open the Visual Basic Editor
    4. Choose Insert > Module
    5. Edit > Paste the code into the module that appeared
    6. Close the VBEditor
    7. Save your workbook (Excel 2007+ select a macro-enabled file format, like *.xlsm)
    Attached Files Attached Files

  18. #18
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Match multiple names showing row numbers

    @Dave,
    You forgot about #N/A in G5

  19. #19
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Match multiple names showing row numbers

    Pffft!!

    Again, nice catch sandy.

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


    Now I think I'll go mow my garden. I'll do less damage there.

  20. #20
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Match multiple names showing row numbers

    @Dave
    Ha ha ha, I think you are too perfect exceler to damage something here. Just too fast person, I suppose

  21. #21
    Forum Moderator
    Join Date
    01-21-2014
    Location
    St. Joseph, Illinois U.S.A.
    MS-Off Ver
    Office 365 v 2403
    Posts
    13,406

    Re: Match multiple names showing row numbers

    Thank you, sandy. That's very kind.

  22. #22
    Registered User
    Join Date
    02-27-2016
    Location
    Canada
    MS-Off Ver
    10
    Posts
    10

    Thumbs up Re: Match multiple names showing row numbers

    Very nice you guy's !! absolute genius's.. and very much appreciated.
    It's working as expected!


  23. #23
    Banned User!
    Join Date
    02-05-2015
    Location
    San Escobar
    MS-Off Ver
    any on PC except 365
    Posts
    12,168

    Re: Match multiple names showing row numbers

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  24. #24
    Registered User
    Join Date
    02-27-2016
    Location
    Canada
    MS-Off Ver
    10
    Posts
    10

    Re: Match multiple names showing row numbers

    Gotchya !

+ 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. [SOLVED] How can I match Names to Numbers?
    By tommade in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-19-2016, 02:31 AM
  2. Replies: 16
    Last Post: 07-21-2015, 12:56 PM
  3. [SOLVED] trying to add numbers that correspond to multiple names listed in column using SUMIFS
    By JoeJones in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-12-2014, 07:25 PM
  4. Index and Match function across multiple rows with repeating names
    By FKOC in forum Excel Formulas & Functions
    Replies: 12
    Last Post: 06-09-2014, 11:17 PM
  5. [SOLVED] Associating names from multiple rows with highest numbers
    By damianberry in forum Excel General
    Replies: 8
    Last Post: 11-01-2012, 03:21 AM
  6. Get a list of multiple names that match a single criteria in another row
    By labtech in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-01-2012, 07:43 PM
  7. Match numbers to names and extract totals
    By c7borg in forum Excel General
    Replies: 4
    Last Post: 01-19-2010, 12:15 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