+ Reply to Thread
Results 1 to 4 of 4

TRIM leading character

  1. #1
    Forum Contributor
    Join Date
    02-06-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    112

    TRIM leading character

    Hello,
    I have written the following INDEX formula:
    =IFERROR(INDEX(Sheet2!$I$2:$I$13,MATCH(Sheet1!C2&Sheet1!C3,Sheet2!A2:A13&Sheet2!$B$2:$B$13,0)),"No match found")

    This formula provides rating of either R5, R5-,R6, R6+, or "No match found". I'm trying to eliminate the leading "R" in the output so it will either provide 5,5-,6, or 6+. Any idea on how to accomplish this?

  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: TRIM leading character

    This should remove "R"

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    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

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,412

    Re: TRIM leading character

    Try it like this (changes shown in red):

    =IFERROR(SUBSTITUTE(INDEX(Sheet2!$I$2:$I$13,MATCH(Sheet1!C2&Sheet1!C3,Sheet2!A2:A13&Sheet2!$B$2:$B$13,0)),"R",""),"No match found")

    You will need to use Ctrl-Shift-Enter to confirm the formula, rather than the usual |Enter|.

    Hope this helps.

    Pete

  4. #4
    Forum Contributor
    Join Date
    02-06-2013
    Location
    United States
    MS-Off Ver
    Excel 2010
    Posts
    112

    Re: TRIM leading character

    Both worked wonderfully...thanks!

+ 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. TRIM function and leading spaces
    By nsv in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 10-01-2014, 10:32 PM
  3. [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
  4. Delete Trailing Spaces without Removing leading zeros WITHOUT TRIM
    By Zach51215 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-20-2013, 04:24 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

Tags for this Thread

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