+ Reply to Thread
Results 1 to 10 of 10

only two words to show

  1. #1
    Forum Contributor
    Join Date
    09-03-2008
    Location
    Johannesburg, South Africa
    MS-Off Ver
    2021
    Posts
    312

    only two words to show

    I have a sheet with 4163 rows in one column

    I want to put some words in new column (only the ones with two words)

    eg.

    1 house;flat
    2 he is not home;man
    3 where is it;here
    4 woman;child
    5 son;moon
    6 to help me;wife

    So I only want the ones with 2 words like numbers 1,4 and 5

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

    Re: only two words to show

    How about in B1 copied down...

    =IF(LEN(A1)=LEN(SUBSTITUTE(A1," ","")),A1,"")
    HTH
    Regards, Jeff

  3. #3
    Forum Contributor
    Join Date
    09-03-2008
    Location
    Johannesburg, South Africa
    MS-Off Ver
    2021
    Posts
    312

    Re: only two words to show

    I have type this in =IF(LEN(A1)=LEN(SUBSTITUTE(A1," ","")),A1,"") in column b row 1, but it is doing nothing

    Attachment 643120

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

    Re: only two words to show

    Hi hendrikbez,

    A picture does not help.

    Please attach a sample workbook (not a picture or pasted copy). 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 and make sure you have annotated what you expect.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  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: only two words to show

    Maybe this?
    Enter formula in B1 and copy down

    =(LEN(A1)=LEN(SUBSTITUTE(A1," ","")))+0

    v A B
    1 house;flat 1
    2 he is not home;man 0
    3 where is it;here 0
    4 woman;child 1
    5 son;moon 1
    6 to help me;wife 0
    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 Contributor
    Join Date
    09-03-2008
    Location
    Johannesburg, South Africa
    MS-Off Ver
    2021
    Posts
    312

    Re: only two words to show

    Hi

    I have make a before and after sheet.

    The words are split by ;

    Sheet before is all the words in the sheet

    sheet after is where the words with only 2 word is moved to column b and all the others stay in column a
    Attached Files Attached Files

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

    Re: only two words to show

    Hi hendrikbez,

    How about this which uses the formula in column B, but also conditional formatting in column A.
    Attached Files Attached Files

  8. #8
    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: only two words to show

    Is this?

    =IFERROR(INDEX(A:A,IF(LEN(A1)=LEN(SUBSTITUTE(A1," ","")),ROWS(A$1:A1),"")),"")

    v A B
    1 Aan die kant;Enersydse
    2 Aanhoudend vra;Soebat
    3 Aanhoudende suising;Geruis
    4 Aanstaande;Inspe Aanstaande;Inspe
    5 Aanteken;Annoteer Aanteken;Annoteer
    6 Aaron was Moses s'n;Segsman
    7 Abelmos;Okra Abelmos;Okra
    8 Afstand tussen twee ruspunte (Fr);etappe
    9 Afsterf;Oorly Afsterf;Oorly
    10 Amp van verteenwoordiger;Agentuur
    11 Asemhalings gaatjies by diere;Spirakels
    12 Baard se moses (meerv);Skeermesse…
    13 Baie dun vesel of draad;Filament
    14 Baie;Alte Baie;Alte
    15 Bakterie;Spiril Bakterie;Spiril
    16 Beijing word so genoem;verbodestad
    17 Bekend vir sy mosterd;Dijon
    18 Bekende Kaapse stadsplein;parade
    19 Bekende sprokieskarakter;Aspoestertjie
    20 Bekende tuinblom;Roos
    21 Bekyk;Betrag Bekyk;Betrag
    22 Belangrikste;Kardinaal Belangrikste;Kardinaal

  9. #9
    Forum Contributor
    Join Date
    09-03-2008
    Location
    Johannesburg, South Africa
    MS-Off Ver
    2021
    Posts
    312

    Re: only two words to show

    jeffreybrown and alkey, thank you both of them is working

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

    Re: only two words to show

    You are very welcome & thanks for the feedback. We are happy to help!

+ 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. Sheet won't show all the words
    By stagiairebmh in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-08-2017, 01:57 PM
  2. [SOLVED] Show first 20 characters - full words only
    By james19 in forum Excel Formulas & Functions
    Replies: 19
    Last Post: 04-23-2015, 01:58 AM
  3. How to show percentage of words from a list?
    By bigmark1972 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-03-2012, 03:55 AM
  4. [SOLVED] Inovice total will show as $$ in words also
    By Harrold in forum Excel General
    Replies: 1
    Last Post: 04-10-2012, 12:33 PM
  5. Show cells that contain 2 words
    By auntsally in forum Excel General
    Replies: 7
    Last Post: 05-05-2009, 12:21 PM
  6. [SOLVED] How to show numbr in words like (100 = One Hundred )
    By ahajeid in forum Excel General
    Replies: 1
    Last Post: 03-02-2006, 05:00 AM
  7. [SOLVED] how do i show figures as words?
    By Carolyn in forum Excel General
    Replies: 1
    Last Post: 06-01-2005, 07:05 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