Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 97413
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T00:00:01+00:00 2026-05-11T00:00:01+00:00

I have an Excel spreadsheet containing a list of strings. Each string is made

  • 0

I have an Excel spreadsheet containing a list of strings. Each string is made up of several words, but the number of words in each string is different.

Using built in Excel functions (no VBA), is there a way to isolate the last word in each string?

Examples:

   Are you classified as human? -> human? Negative, I am a meat popsicle -> popsicle                   Aziz! Light! -> Light!
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-11T00:00:02+00:00Added an answer on May 11, 2026 at 12:00 am

    This one is tested and does work (based on Brad’s original post):

    =RIGHT(A1,LEN(A1)-FIND('|',SUBSTITUTE(A1,' ','|',      LEN(A1)-LEN(SUBSTITUTE(A1,' ',''))))) 

    If your original strings could contain a pipe ‘|’ character, then replace both in the above with some other character that won’t appear in your source. (I suspect Brad’s original was broken because an unprintable character was removed in the translation).

    Bonus: How it works (from right to left):

    LEN(A1)-LEN(SUBSTITUTE(A1,' ','')) – Count of spaces in the original string
    SUBSTITUTE(A1,' ','|', ... ) – Replaces just the final space with a |
    FIND('|', ... ) – Finds the absolute position of that replaced | (that was the final space)
    Right(A1,LEN(A1) - ... )) – Returns all characters after that |

    EDIT: to account for the case where the source text contains no spaces, add the following to the beginning of the formula:

    =IF(ISERROR(FIND(' ',A1)),A1, ... ) 

    making the entire formula now:

    =IF(ISERROR(FIND(' ',A1)),A1, RIGHT(A1,LEN(A1) - FIND('|',     SUBSTITUTE(A1,' ','|',LEN(A1)-LEN(SUBSTITUTE(A1,' ','')))))) 

    Or you can use the =IF(COUNTIF(A1,'* *') syntax of the other version.

    When the original string might contain a space at the last position add a trim function while counting all the spaces: Making the function the following:

    =IF(ISERROR(FIND(' ',B2)),B2, RIGHT(B2,LEN(B2) - FIND('|',     SUBSTITUTE(B2,' ','|',LEN(TRIM(B2))-LEN(SUBSTITUTE(B2,' ','')))))) 
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 165k
  • Answers 165k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer In the current implementation of CPython, both will generally immediately… May 12, 2026 at 12:31 pm
  • Editorial Team
    Editorial Team added an answer No. The only information you can obtain are user, host… May 12, 2026 at 12:31 pm
  • Editorial Team
    Editorial Team added an answer From the code, I would say that $data2 represents the… May 12, 2026 at 12:31 pm

Related Questions

We currently have an Excel spreadsheet containing a large amount of VBA code. The
I have an excel spreadsheet in a format similar to the following... | NAME
I have an Excel Spreadsheet like this id | data for id | more
I have an Excel spreadsheet with 1 column, 700 rows. I care about every

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.