+ Reply to Thread
Results 1 to 17 of 17

Need help to find the serial number if data match

  1. #1
    Forum Contributor
    Join Date
    08-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007, MS 365 (Windows 10 Pro 64-bit)
    Posts
    810

    Need help to find the serial number if data match

    Hi,
    What formula should I use to search if cell includes lot of number separate by a comma. I used Index-Match but it did not work

    Exp: I want to find the S/N for 123 in sheet1 and below data is in sheet2

    ***Result should give me S/N is 1

    S/N Part
    1 123, 234, 345, 456-4, 5678-0
    2
    3

    Regards,
    tt3
    Last edited by tuongtu3; 09-12-2020 at 03:43 AM. Reason: SOLVED

  2. #2
    Valued Forum Contributor
    Join Date
    04-24-2020
    Location
    Woodbridge, VA
    MS-Off Ver
    2016
    Posts
    434

    Re: Index-Match

    Without seeing your file, can you separate your data into separate columns? Text to columns can do that easily. That way you'll be able to find it with Index Match

  3. #3
    Forum Contributor
    Join Date
    08-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007, MS 365 (Windows 10 Pro 64-bit)
    Posts
    810
    Can you help me to provide code?

    in each cell in column A:A is serial number from 1 thru 100 plus
    in each cell in column B:B may has more or less than 100 number
    Sheet has more than 100 plus rows and more number may be adding each day

    Regards,
    tt3

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: Index-Match

    Administrative Note:

    Welcome to the forum.

    We would very much like to help you with your query, however the thread title does not really convey what your request is about. Tell us what you are trying to do, not how you think it should be done.

    Please take a moment to amend your thread title. Make sure that the title properly explains your request. Your title should be explicit and not be generic (this includes function names used without an indication of what you are trying to achieve).

    Please see Forum Rule #1 about proper thread titles and adjust accordingly. To edit the thread title, open the original post to edit and then click on Go Advanced (bottom right) to access the area where you can edit your title.

    (Note: this change is not optional. No help to be offered until this moderation request has been fulfilled.)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  5. #5
    Forum Contributor
    Join Date
    08-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007, MS 365 (Windows 10 Pro 64-bit)
    Posts
    810

    Re: Need help to find the serial number if data match

    Can anyone help me with the code for below:

    in each cell in column A:A is serial number from 1 thru 100 plus
    in each cell in column B:B may has more or less than 100 number
    Sheet has more than 100 plus rows and more number may be adding each day

    Regards,
    tt3

  6. #6
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Need help to find the serial number if data match

    Dear TT3, Plz see yellow banner on top of the screen regarding "HOW TO ATTACH YOUR SAMPLE WORKBOOK:"
    Attach your sample work book with desire result.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  7. #7
    Registered User
    Join Date
    09-09-2020
    Location
    Sri Lanka
    MS-Off Ver
    Excel 365
    Posts
    25

    Re: Need help to find the serial number if data match

    Quote Originally Posted by tuongtu3 View Post
    Can anyone help me with the code for below:

    in each cell in column A:A is serial number from 1 thru 100 plus
    in each cell in column B:B may has more or less than 100 number
    Sheet has more than 100 plus rows and more number may be adding each day

    Regards,
    tt3
    Hi
    can you upload excel that describe your problem, then it will be easy to sort out.
    as I understand your problem, this can be solved using SEARCH & MID function
    Prashantha

  8. #8
    Forum Contributor
    Join Date
    08-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007, MS 365 (Windows 10 Pro 64-bit)
    Posts
    810

    Re: Need help to find the serial number if data match

    Hi ALL,
    Please see sample attached.

    Regards,
    tt3
    Attached Files Attached Files

  9. #9
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: Need help to find the serial number if data match

    Please try at C2

    =MATCH(0,INDEX(-FIND(" "&B2&","," "&Data!$B$2:$B$4&","),))
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    08-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007, MS 365 (Windows 10 Pro 64-bit)
    Posts
    810

    Re: Need help to find the serial number if data match

    Hi Bo_Ry,
    Thank you very much for the formula.

    ***Can anyone help me to separate text into each cell using the VB code?

    Regards,
    tt3

  11. #11
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: Need help to find the serial number if data match

    Thanks for the rep.

    Please try

    Please Login or Register  to view this content.
    Attached Files Attached Files

  12. #12
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    Australia
    MS-Off Ver
    365 V2403 and WPS V2022
    Posts
    3,475

    Re: Need help to find the serial number if data match

    TRY A2 cell formula
    HTML Code: 

  13. #13
    Forum Contributor
    Join Date
    08-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007, MS 365 (Windows 10 Pro 64-bit)
    Posts
    810

    Re: Need help to find the serial number if data match

    Hi ALL,
    I would like copy/paste special transpose in individual row. Please see sample attached.

    Regards
    Attached Files Attached Files

  14. #14
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: Need help to find the serial number if data match

    Please try

    Please Login or Register  to view this content.
    Attached Files Attached Files

  15. #15
    Forum Contributor
    Join Date
    08-14-2012
    Location
    USA
    MS-Off Ver
    Excel 2007, MS 365 (Windows 10 Pro 64-bit)
    Posts
    810

    Re: Need help to find the serial number if data match

    Hi Bo_Ry,
    Thank you very much for your help.

    Regards,
    tt3

  16. #16
    Registered User
    Join Date
    09-09-2020
    Location
    Sri Lanka
    MS-Off Ver
    Excel 365
    Posts
    25

    Re: Need help to find the serial number if data match

    Quote Originally Posted by Bo_Ry View Post
    Please try at C2

    =MATCH(0,INDEX(-FIND(" "&B2&","," "&Data!$B$2:$B$4&","),))
    Hi Bo_Ry

    i am very much interested to learn this formula. Can you pls explain how it works. thank you.

    Prashantha

  17. #17
    Forum Guru Bo_Ry's Avatar
    Join Date
    09-10-2018
    Location
    Thailand
    MS-Off Ver
    MS 365
    Posts
    7,213

    Re: Need help to find the serial number if data match

    FIND(" "&B2&","," "&Data!$B$2&",")
    FIND(" "&123&"," , " "&"123, 234, 345, 456-4, 5678-0"&",")

    Add " " before and "," behind to get full word between delimeter search.
    Without add " " and "," 23 can be found in "123, 234" which is not correct

    But " 23," can not be found in " 123, 234,"
    and " 123," can be found in " 123, 234,"

    Word found return number, and !VALUE# if not found
    =MATCH(0,INDEX(-FIND(" "&B2&","," "&Data!$B$2:$B$4&","),))
    Index is use for do array calcuation without the need of Ctrl+Shift+Enter

    Aproximate match lookup for lookup value less than 0 and return position of number.
    Match(0, -{#VALUE!;#VALUE!;10})

    or than lookup value less than 9^9 and return position of number.
    Match(9^9, {#VALUE!;#VALUE!;10})

    Serial number is order by 1,2,3 . Position is the same as Serial number

    If Serial number is not 1,2,3 eg 1a,2a,3a

    Index of Data!$A$2:$A$4 is need to use with Match

    =INDEX(Data!$A$2:$A$4,MATCH(0,INDEX(-FIND(" "&B2&","," "&Data!$B$2:$B$4&","),)))

    We also can use Lookup to get the same result
    =LOOKUP(0,-FIND(" "&B2&","," "&Data!$B$2:$B$4&","),Data!$A$2:$A$4)
    Attached Files Attached Files

+ 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] INDEX+MATCH instead of VLOOKUP+MATCH, why is INDEX a better choice and how to re-write?
    By Renejorgensen in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 11-23-2016, 10:54 AM
  2. [SOLVED] Index / Match - match 3 input values and return the results from the index
    By t83357 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-08-2016, 07:34 PM
  3. [SOLVED] Match-Index in stead of Index-Match lookup Array among Arrays
    By Numnum in forum Excel General
    Replies: 2
    Last Post: 10-15-2015, 02:08 PM
  4. INDEX MATCH MATCH/OFFSET MATCH MATCH with named ranges
    By Andrew-Mark in forum Excel General
    Replies: 3
    Last Post: 02-27-2015, 10:56 PM
  5. Replies: 6
    Last Post: 04-30-2014, 02:42 AM
  6. Replies: 6
    Last Post: 11-08-2013, 10:29 PM
  7. Replies: 3
    Last Post: 05-02-2013, 01:31 AM

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