+ Reply to Thread
Results 1 to 9 of 9

problem with searching and matching

  1. #1
    Registered User
    Join Date
    10-01-2012
    Location
    scotland
    MS-Off Ver
    Excel 2010
    Posts
    31

    problem with searching and matching

    Dear Sir/Madam,

    I come across two questions. I hope I could get help from you.

    I am currently handling a very large data set, which contains a large number of firms (over 10000), and different products produced by each of the firm.

    I need to match the firm's ID with the status that indicates whether the range of products produced by each firm falls into the list of products pre-specified.

    I hope I could get help to find the most effective way to made it. This is my first question.

    Each firm has different types of products. But my original data set has one line for each firm ID (as seen in the first column) and multiple lines of products for the same firm ID (as seen in the second column).

    I hope I can create a excel worksheet which does not have gaps between firm's ID, i.e. for the firms who have multiple products, I could have firm ID-each product on the line by line basis.

    I need this kind of format since I am going to add new information into the data later on. some of new information will be firm-specific.

    This is the second question.


    I enclose the worksheet (the data is in the first worksheet). Product category code in Column I is the so-called pre-specified product code.

    I hope to hear from you soon ,

    Thanks
    Tianshu
    Attached Files Attached Files
    Last edited by tianshu; 05-03-2016 at 05:30 PM.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,731

    Re: problem with searching and matching

    I think it is easier to deal with the second question first. Highlight column A by clicking on the identifying letter above the column. Then press the F5 (GoTo) key. Click on Special, then select Blanks, then OK - all the blanks in column A will be selected, with the active cell (shown in a different colour) being A3. You should start to enter a formula by typing = and then click on the cell immediately above the active cell (i.e. cell A2), then hold down the CTRL key and press < Enter >.

    Hey Presto! - all those cells will be filled with that formula (i.e. get the value from the cell above), so your companies will be filled into every cell. You might like to fix those values by clicking < copy > | Paste Special | Values | OK then press the < Esc > key.

    Hope this helps.

    Pete

  3. #3
    Registered User
    Join Date
    10-01-2012
    Location
    scotland
    MS-Off Ver
    Excel 2010
    Posts
    31

    Re: problem with searching and matching

    Dear Pete,

    Yes, thank you so much. I get the solution for the second question!



    Tianshu

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,731

    Re: problem with searching and matching

    For your first question, you can put this formula in C2:

    =ISNUMBER(MATCH(B2,I$2:I$21,0))

    and then copy down. It will return TRUE if the product number does appear in the list in column I, or FALSE if it does not. If you want different words you could do something like this instead:

    =IF(ISNUMBER(MATCH(B2,I$2:I$21,0)),"yes","no")

    Hope this helps.

    Pete

  5. #5
    Registered User
    Join Date
    10-01-2012
    Location
    scotland
    MS-Off Ver
    Excel 2010
    Posts
    31

    Re: problem with searching and matching

    Dear Pete,

    Before I try the suggestion you recommended, I want to highlight one thing I did not clearly indicate in my post. The product category is actually not number but rather text in my real data set.

    Do you think your recommendation would also work for such case?

    Tianshu

  6. #6
    Registered User
    Join Date
    10-01-2012
    Location
    scotland
    MS-Off Ver
    Excel 2010
    Posts
    31

    Re: problem with searching and matching

    I am in the middle of reading the explanation of IS, I guess if the product code is text, I should use ISTEXT instead.

    Tianshu

  7. #7
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,731

    Re: problem with searching and matching

    No, the ISNUMBER relates to the MATCH function - it returns a number if a match is found.

    If the product categories in column I are text values, then those in column B also have to be text in order to get a match. If they are text values which look like numbers (no alpha characters), they you can use B2&"" instead of just B2 in the formula.

    Hope this helps.

    Pete

  8. #8
    Registered User
    Join Date
    10-01-2012
    Location
    scotland
    MS-Off Ver
    Excel 2010
    Posts
    31

    Re: problem with searching and matching

    Dear Pete,

    Thank you very much.

    Tianshu

  9. #9
    Registered User
    Join Date
    10-01-2012
    Location
    scotland
    MS-Off Ver
    Excel 2010
    Posts
    31

    Re: problem with searching and matching

    Dear Pete,

    Seeing you are still online, I hope you can further help me with another question related to matching (maybe I should open a new thread ).

    Both the products produced by each firm in my sample and the pre-specified product list are text. Not only so, some time they are spelled in different manner ( a kinds of fuzzy matching and fuzzy look-up).

    I am reading the fuzzy look-up and Reconcile-csv now, and try to find out which is the best way to handle this.

    I am still in the process of digesting both. Do you have any suggestion for this kinds of situation?

    Thanks again,

    Tianshu

+ 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. Having trouble searching for and matching 2 values
    By PaulMcCudden in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 0
    Last Post: 06-25-2015, 05:54 PM
  2. Macro/Program for Data Searching/Matching
    By blue84rain in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-15-2014, 03:57 PM
  3. Replies: 11
    Last Post: 05-16-2012, 01:42 PM
  4. Searching and Matching
    By Salient in forum Excel General
    Replies: 3
    Last Post: 06-30-2009, 11:49 AM
  5. Searching and Matching Lists
    By sylink in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-16-2006, 12:00 PM
  6. Searching for a particlar value and matching to a name..
    By spezialize in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-08-2005, 09:15 PM
  7. Replies: 1
    Last Post: 01-07-2005, 01:06 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