+ Reply to Thread
Results 1 to 9 of 9

Get Company names based on Product names

  1. #1
    Forum Contributor
    Join Date
    04-06-2016
    Location
    Singapore
    MS-Off Ver
    MS Office 365 & 2010
    Posts
    698

    Get Company names based on Product names

    Hi friends,

    I have some data with Suppliers, Buyers names for some products. If I want to know particular product supplier (or) buyer names, what kind of formula I can use. Please see attachment.


    As per attached sheet.

    H1 is Products List Option, H3 is option to choose Buyer (or) Supplier, I want total company names based on H1, H3 options, Names result from H7.

    If I change options in H1, H3, names will come accordingly

    Thank you.
    Attached Files Attached Files

  2. #2
    Forum Expert PaulM100's Avatar
    Join Date
    10-09-2017
    Location
    UK
    MS-Off Ver
    Office 365
    Posts
    2,108

    Re: Get Company names based on Product names

    This should work:
    Array formula, Ctrl+Shift+Enter instead of regular Enter:

    =IFERROR(INDEX($A$3:$A$17, SMALL(IF(ISNUMBER((SEARCH($H$3, $B$3:$D$17))*(SEARCH($H$1, $B$2:$D$2))), ROW($A$3:$A$17)-MIN(ROW($A$3:$A$17))+1, ""), ROW(A1))),"")
    Attached Files Attached Files

  3. #3
    Forum Expert tim201110's Avatar
    Join Date
    10-23-2011
    Location
    Russia
    MS-Off Ver
    2016, 2019
    Posts
    2,357

    Re: Get Company names based on Product names

    =iferror(index($a$1:$a$17,aggregate(15,6,row($a$3:$a$17)/isnumber(search(h$3,index($b$3:$d$17,,match(h$1,$b$2:$d$2,)))),rows($a$7:a7))),"")

  4. #4
    Forum Contributor
    Join Date
    04-06-2016
    Location
    Singapore
    MS-Off Ver
    MS Office 365 & 2010
    Posts
    698

    Re: Get Company names based on Product names

    Excellent work!!! PaulM100 & tim201110,

    Thank you.

  5. #5
    Forum Contributor
    Join Date
    04-06-2016
    Location
    Singapore
    MS-Off Ver
    MS Office 365 & 2010
    Posts
    698

    Re: Get Company names based on Product names

    Hi tim201110,

    One small update please, If I want dont show one company "Pan Pacific" in any search, then where I can put that name in formula and how ?, please provide me this update.

    Thank you,

  6. #6
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,178

    Re: Get Company names based on Product names

    Perhaps just remove from your table?

    Or

    Place at end of table and change to range in the formula to rows 3 to 16.
    Last edited by JohnTopley; 02-27-2018 at 09:20 AM.

  7. #7
    Forum Contributor
    Join Date
    04-06-2016
    Location
    Singapore
    MS-Off Ver
    MS Office 365 & 2010
    Posts
    698

    Re: Get Company names based on Product names

    Hi JohnTopley,

    Actual problem is our company purchase material from 1 of these 17 customers, and send selling quotation emails to other 16 customers automatically. If we keep that 1 customer in list, then seller will receive buying quotation . I will know that 1 customer name at the time emailing. So, every time we can't remove or change range in formula. Is there any other solution.

    Thank you.

  8. #8
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,178

    Re: Get Company names based on Product names

    Try

    =IFERROR(INDEX($A$1:$A$17,AGGREGATE(15,6,ROW($A$3:$A$17)/(($A$3:$A$17<>"Pan Pacific")*(ISNUMBER(SEARCH(H$3,INDEX($B$3:$D$17,,MATCH(H$1,$B$2:$D$2,)))))),ROWS($A$7:A7))),"")

  9. #9
    Forum Contributor
    Join Date
    04-06-2016
    Location
    Singapore
    MS-Off Ver
    MS Office 365 & 2010
    Posts
    698

    Re: Get Company names based on Product names

    Thank you very much John Topley, Its working!!!

+ 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] Best price/Best company names
    By Lugashz in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-08-2017, 08:33 AM
  2. Replies: 2
    Last Post: 09-10-2014, 08:56 AM
  3. [SOLVED] Pull data from one column based on the company names in 2 others
    By excellerant8 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-02-2014, 10:21 AM
  4. cutting and Pasting through a loop based on the count of unique company names
    By mvneema in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-27-2014, 05:35 PM
  5. Need help to display company names
    By shaikfazil in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-19-2012, 01:24 PM
  6. counting company names
    By jspinx in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-03-2012, 11:43 AM
  7. separating company names and addresses
    By drquietus in forum Excel General
    Replies: 1
    Last Post: 06-06-2010, 04:26 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