+ Reply to Thread
Results 1 to 6 of 6

Pull one word if 1 and two words if 2

  1. #1
    Forum Contributor
    Join Date
    01-04-2014
    Location
    East Africa
    MS-Off Ver
    MS OFFICE 2019 PRO
    Posts
    3,611

    Pull one word if 1 and two words if 2

    CHEETAH HANDBAG Brown
    CHENHAO HANDBAG Blue
    CHERRY BLOSSOM HANDBAG Black
    CHERRY BLOSSOM HANDBAG Blue
    CHERRY BLOSSOM HANDBAG Yellow

    I have this on a1

    I will plug the follow on b1

    1
    1
    2
    2
    2

    to get result on C

    CHEETAH
    CHENHAO
    CHERRY BLOSSOM
    CHERRY BLOSSOM
    CHERRY BLOSSOM

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Pull one word if 1 and two words if 2

    In your sample, do all descriptions have "Handbag" in the title and is it always going to be a 1 or a 2?
    HTH
    Regards, Jeff

  3. #3
    Forum Contributor
    Join Date
    01-04-2014
    Location
    East Africa
    MS-Off Ver
    MS OFFICE 2019 PRO
    Posts
    3,611

    Re: Pull one word if 1 and two words if 2

    No likely some may not

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Pull one word if 1 and two words if 2

    Attach a sample workbook. 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 (or use the paperclip icon).

  5. #5
    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: Pull one word if 1 and two words if 2

    Maybe this

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

    v A B C
    1 CHEETAH HANDBAG Brown 1 CHEETAH
    2 CHENHAO HANDBAG Blue 1 CHENHAO
    3 CHERRY BLOSSOM HANDBAG Black 2 CHERRY BLOSSOM
    4 CHERRY BLOSSOM HANDBAG Blue 2 CHERRY BLOSSOM
    5 CHERRY BLOSSOM HANDBAG Yello 2 CHERRY BLOSSOM
    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

  6. #6
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: Pull one word if 1 and two words if 2

    Here's another one...

    Data Range
    A
    B
    C
    1
    CHEETAH HANDBAG Brown
    1
    CHEETAH
    2
    CHENHAO HANDBAG Blue
    1
    CHENHAO
    3
    CHERRY BLOSSOM HANDBAG Black
    2
    CHERRY BLOSSOM
    4
    CHERRY BLOSSOM HANDBAG Blue
    2
    CHERRY BLOSSOM
    5
    CHERRY BLOSSOM HANDBAG Yellow
    2
    CHERRY BLOSSOM
    6
    CHERRY BLOSSOM HANDBAG Yellow
    3
    CHERRY BLOSSOM HANDBAG
    7
    ------


    This formula entered in C1 and copied down:

    =IFERROR(LEFT(A1,FIND("|",SUBSTITUTE(A1," ","|",B1))-1),"")
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

+ 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. Replies: 1
    Last Post: 02-21-2016, 02:39 AM
  2. [SOLVED] Pull first word if one word , pull first if two words
    By makinmomb in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 11-12-2015, 04:22 PM
  3. Pull first 3 words
    By makinmomb in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 11-11-2015, 11:19 PM
  4. [SOLVED] Pull word or words after sign /
    By makinmomb in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 11-09-2015, 11:29 AM
  5. Replies: 5
    Last Post: 02-02-2015, 07:51 PM
  6. Replies: 3
    Last Post: 08-14-2013, 10:38 AM
  7. [SOLVED] search for a specific word and copy the word and the preceeding words until a comma
    By DHANANJAY in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 12-31-2005, 09:10 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