+ Reply to Thread
Results 1 to 2 of 2

Leading Zero and Right Trim question

Hybrid View

  1. #1
    Forum Contributor
    Join Date
    06-28-2013
    Location
    usa
    MS-Off Ver
    Excel 2013
    Posts
    192

    Question Leading Zero and Right Trim question

    Hello all,

    I have two questions....


    1. How do I search for leading zeros in cells? I know I can do find and put a space, but that will look for anything with a space.

    For example, lets look at the following items...and lets assume "_" represents a space
    _apples
    pumpkin_pie
    _Orange_juice_
    _pears


    What I want is, to search for only items with leading zeros, so to pull up apples, orange juice and pears. I dont want to find pumpkin pie. What ever formula works is fine with me

    2. How do I only right trim, nothing else.

    example...
    Orange_Juice_

    I want it to be just Orange_Juice

  2. #2
    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: Leading Zero and Right Trim question

    You don't really need to test for leading spaces. Just run TRIM funciton

    Formula: copy to clipboard
    =TRIM(A1)


    v A B
    1 apples apples
    2 pumpkin pie pumpkin pie
    3 Orange juice Orange juice
    4 pears pears
    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

+ 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] trim does not remove leading spaces?
    By inventorgeorge in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 05-06-2024, 09:38 PM
  2. [SOLVED] TRIM leading character
    By lemonap618 in forum Excel General
    Replies: 3
    Last Post: 01-20-2016, 11:01 PM
  3. TRIM function and leading spaces
    By nsv in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 10-01-2014, 10:32 PM
  4. [SOLVED] Sortuniq not sorting, Trim, not trimming, and not leading zero
    By david gonzalez in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-22-2014, 03:28 PM
  5. Replies: 4
    Last Post: 02-07-2012, 07:47 AM
  6. trim leading spaces
    By captain bob in forum Excel General
    Replies: 2
    Last Post: 08-03-2006, 10:00 AM
  7. [SOLVED] trim leading spaces
    By hawat.thufir@gmail.com in forum Excel General
    Replies: 10
    Last Post: 05-11-2006, 04:25 PM

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