+ Reply to Thread
Results 1 to 15 of 15

How to extract company names with same formula?

  1. #1
    Forum Contributor
    Join Date
    09-18-2011
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    375

    How to extract company names with same formula?

    How to extract the major company names (without (HK), "Eng", "Co Ltd", etc) with same formula?
    e.g.
    ABC (HK) Ltd
    DEF GH (China) Ltd
    IJ KL MN Eng Ltd
    OPQ Co Ltd
    R-S Construction Ltd

    to the following:

    ABC
    DEF GH
    IJ KL MN
    OPQ
    R-S

  2. #2
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: How to extract company names with same formula?

    Hi London,

    Given the examples above, it doesn't look to be a way to do it with a single formula. Maybe one of the smart Guru's will see something I don't. Can you supply more examples that might help?
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  3. #3
    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: How to extract company names with same formula?

    I've got a formula but Sucuri is blocking me out. Let's see if this gets through.

    Nope. Can't post formulas or headers. There are no greater / lesser than operators in the formula either.
    Last edited by FlameRetired; 09-21-2017 at 11:54 PM.
    Dave

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

    Re: How to extract company names with same formula?

    Dave, attach txt file with formula inside

  5. #5
    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: How to extract company names with same formula?

    Capital idea!

    Can't post the formula but let's try WB.
    Last edited by FlameRetired; 09-22-2017 at 12:01 AM.

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

    Re: How to extract company names with same formula?

    You are welcome my friend

  7. #7
    Forum Guru
    Join Date
    02-27-2016
    Location
    Vietnam
    MS-Off Ver
    2016
    Posts
    5,899

    Re: How to extract company names with same formula?

    Or try:

    =LEFT(A1,FIND("#",SUBSTITUTE(A1," ","#",LEN(A1)-LEN(SUBSTITUTE(A1," ",""))-1))-1)

  8. #8
    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: How to extract company names with same formula?

    @Phuocam

    Very clever.

  9. #9
    Forum Contributor
    Join Date
    09-18-2011
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    375

    Re: How to extract company names with same formula?

    How to revise formula to get abbreviation of company name?

    Thanks for your reply.
    Actually the company names include:

    ABC Ltd
    ABC (Fast East) Ltd
    DEF GH JKK Construction (China) Ltd
    IJ KL MN Eng Co Ltd
    PP QQ Eng & Consultants Ltd
    SS TT Roller Shutters Ltd
    UU VV Waterproofing Eng Co

    that the result of the formula (remove last 2 wordings of the above names) is
    #VALUE!
    ABC (Fast
    DEF GH JKK Construction
    IJ KL MN Eng
    PP QQ Eng &
    SS TT Roller
    UU VV Waterproofing

    My expected result, with abbreviation of company names, is:

    ABC
    ABC
    DEF GH JKK
    IJ KL MN
    PP QQ
    SS TT
    UU VV

    (i.e. remove wording at right of likes (China), Construction, Eng Co Ltd, Roller Shutters, Waterproofing
    or any wordings that can be added in formula later)
    Last edited by london7871; 09-22-2017 at 03:52 AM. Reason: adding "at right of " at i.e.

  10. #10
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: How to extract company names with same formula?

    Hey London,

    So are you still looking for a single formula or did the one given above work?

  11. #11
    Forum Contributor
    Join Date
    09-18-2011
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    375

    Re: How to extract company names with same formula?

    I still look for single formula.

  12. #12
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: How to extract company names with same formula?

    Try this array formula
    Enter in B1 and copy down
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    ***Array formula
    ...confirmed by pressing CTRL+SHIFT+ENTER to activate the array, not just ENTER.
    You will know the array is active when you see curly braces { } appear around your formula.
    If you do not CTRL+SHIFT+ENTER you will get an error or a clearly incorrect answer.

    v A B
    1 ABC Ltd ABC
    2 ABC (Fast East) Ltd ABC
    3 DEF GH JKK Construction (China) Ltd DEF GH JKK
    4 IJ KL MN Eng Co Ltd IJ KL MN
    5 PP QQ Eng & Consultants Ltd PP QQ
    6 SS TT Roller Shutters Ltd SS TT
    7 UU VV Waterproofing Eng Co UU VV
    If you like my answer please click on * Add Reputation
    Don't forget to mark threads as "Solved" if your problem has been resolved

    "Nothing is so firmly believed as what we least know."
    --Michel de Montaigne

  13. #13
    Forum Contributor
    Join Date
    09-18-2011
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    375

    Re: How to extract company names with same formula?

    Thanks AlKey.

    In practise as I want to get the abbreviation of company name,
    how do I get the abbreviation upto and excluding the following four wordings with one formula?

    Construction, Eng, Co, Ltd

    (preferably not to use array formula as prefix will be added later in the formula)

    My expected result:
    Abc Ltd
    Def Gh Jkk Construction (China) Ltd
    Ij Kl Mn Eng Co Ltd

    by formula:
    Abc
    Def Gh Jkk
    Ij Kl Mn

  14. #14
    Forum Guru AlKey's Avatar
    Join Date
    07-20-2009
    Location
    Lakeland, FL USA
    MS-Off Ver
    Microsoft Office 2010/ Office 365
    Posts
    8,903

    Re: How to extract company names with same formula?

    Hi london7871,
    Your requirements keep changing every time you post. I, personally have no intention to entertain you any further with these fake company names as this is just the waste of my time.
    Good luck.
    Last edited by AlKey; 09-24-2017 at 09:19 AM.

  15. #15
    Forum Contributor
    Join Date
    09-18-2011
    Location
    Hong Kong
    MS-Off Ver
    Office 365
    Posts
    375

    Re: How to extract company names with same formula?

    Sorry Alkey.

    I will improve my skill of query next time.

+ 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. [SOLVED] Count unique company names (Frequency Array Formula)
    By Carrol in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 07-02-2016, 11:18 AM
  3. How to extract company name from row
    By Waingro in forum Excel General
    Replies: 6
    Last Post: 09-19-2013, 09:26 AM
  4. Need help to display company names
    By shaikfazil in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 11-19-2012, 01:24 PM
  5. counting company names
    By jspinx in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 10-03-2012, 11:43 AM
  6. Replies: 3
    Last Post: 08-10-2012, 10:41 AM
  7. Display brand names for company in 1 row
    By randell.graybill in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-21-2009, 01:53 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