Alert icon
We're changing our privacy policy. This stuff matters.  Learn more  Dismiss

Excel Magic Trick #221: LEN function Counts Spaces

Loading...

Sign in or sign up now!
Alert icon
Upgrade to the latest Flash Player for improved playback performance. Upgrade now or more info.
3,655
Loading...
Alert icon
Sign in or sign up now!
Alert icon

Uploaded by on Jan 23, 2009

See how to use the LEN function to count charters including spaces. Then see how to use the LEN, SUBSTITUTE, and TRIM function to count characters but not count unwanted spaces.

  • likes, 0 dislikes

Link to this comment:

Share to:

Uploader Comments (ExcelIsFun)

  • THANK YOU. My life had been turned into hell by a client who sends me pages and pages of copy in Excel and wants me to modify it, keeping it all under certain character limits. I have never used Excel before so finding this is a real godsend. You have reduced my anger level by at least 50%.

  • @nombrejill , I am glad that the video helps!

  • What if I wanted to Find the length of one word in a cell with two words?

    so lets say

    John Smith, How do I use the function to find the number of characters in Smith

  • You Tube won't let me post the characters needed to answer your questions so I sent you an e-mail.

  • how do i use this to delete the last 2 words in a cell??

  • Did you post to the Mr Excel Message Board? I saw a post that asked the same question.

    I posted there and got a few answers such as:

    =LEFT(A8,FIND("qq",SUBSTITUTE(­A8," ","qq",LEN(A8)-LEN(SUBSTITUTE(­A8," ",""))-1))-1)

    =SUBSTITUTE(A1," "&TRIM(RIGHT(SUBSTITUTE(A1," ",REPT(" ",100)),200)),"")

    I'll make a video soon because how these two solutions work is very interesting - two totally different approaches.

see all

All Comments (6)

Sign In or Sign Up now to post a comment!
  • hi yea i did post on the forum, thanks alot for your help..keep up the great work!!

  • We have to find a pattern to exploit. Are there single spaces between each word?

Loading...

Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more