+ Reply to Thread
Results 1 to 7 of 7

Counting Sheep I Mean Space

  1. #1
    Registered User
    Join Date
    09-16-2017
    Location
    Boston
    MS-Off Ver
    16
    Posts
    8

    Counting Sheep I Mean Space

    Hey everyone,

    I am currently attempting to separate a string of text where I want the text after the last space in the string of text. I have attempted numerous ways via counting the number of spaces by attempting the text to column method, as shown in the attached spreadsheet but unsuccessful for some reason in the nested formula I have created. I also attempted to count the number of characters up to the last space to return whatever came after but was also unsuccessful.

    Can anyone see where I am making a mistake and provide some guidance. If possible, I would like to steer away from VBA since I am still somewhat of a novice in regards to it.

    Thanks ahead for your assistance!
    Attached Files Attached Files

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

    Re: Counting Sheep I Mean Space

    F2=isblank ==>>> ISBLANK(F2) ... etc...

  3. #3
    Registered User
    Join Date
    09-16-2017
    Location
    Boston
    MS-Off Ver
    16
    Posts
    8

    Re: Counting Sheep I Mean Space

    I don't understand what you mean Sandy666

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

    Re: Counting Sheep I Mean Space

    in G2 you've this: =IF(F2=isblank,E2,IF(E2=isblank,D2,IF(D2=isblank,C2,IF(C2=isblank,"check",B2))))

    but it should be: =IF(ISBLANK(F2),E2,IF(ISBLANK(E2),D2,IF(ISBLANK(D2),C2,IF(ISBLANK(C2),"check",B2)))) so copy that and paste into G2 then drag down as far as you need

    I did not check if the formula works correctly only if all functions are correct
    Last edited by sandy666; 01-25-2018 at 08:16 PM.

  5. #5
    Forum Expert daddylonglegs's Avatar
    Join Date
    01-14-2006
    Location
    England
    MS-Off Ver
    2016
    Posts
    14,675

    Re: Counting Sheep I Mean Space

    Quote Originally Posted by buildmeup View Post
    .......I want the text after the last space in the string of text.
    Here's one way to do that

    =REPLACE(A2,1,LOOKUP(2^15,FIND(" ",A2,ROW(INDIRECT("1:"&LEN(A2))))),"")

    or simpler.....

    =TRIM(RIGHT(SUBSTITUTE(A2," ",REPT(" ",99)),99))
    Audere est facere

  6. #6
    Registered User
    Join Date
    09-16-2017
    Location
    Boston
    MS-Off Ver
    16
    Posts
    8

    Re: Counting Sheep I Mean Space

    Thanks for both responses! Daddylonglegs I was not aware of the TRIM and REPT functions via your second response. I like it!

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

    Cool Re: Counting Sheep I Mean Space

    you can use PowerQuery without any formulas
    Attached Files Attached Files

+ 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] Shift+Space and Ctrl+Space shortcuts intermittently working
    By yumyumdimsum in forum Excel General
    Replies: 8
    Last Post: 10-14-2017, 11:54 AM
  2. need cell to populate info from anther sheep depending on info entered.
    By superchew in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 02-11-2015, 09:03 PM
  3. Annual Calendar to help with sheep and beef farming duties
    By kickinwings in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-19-2014, 08:04 PM
  4. Executing a bouncing sheep whilst the code/macro runs
    By mike_vr in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-03-2013, 08:21 AM
  5. COUNTA Not to Counting Space Bar Space
    By Soltisolti in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 02-15-2009, 08:15 PM
  6. Formula for Counting the Space
    By mangesh in forum Excel General
    Replies: 2
    Last Post: 10-10-2008, 08:39 AM
  7. [SOLVED] Counting nonblank and non white space cells
    By Andrew in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-08-2005, 01:06 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