+ Reply to Thread
Results 1 to 8 of 8

VLOOKUP - Formatting issues

  1. #1
    Registered User
    Join Date
    05-23-2007
    Posts
    41

    VLOOKUP - Formatting issues

    I am having an issue while using VLOOKUP. I believe it is related to different formats alothough it appears the format is the same on each.

    Can anyone help?

    Please see attached. Thanks
    Attached Files Attached Files

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    In A3 of Table! you have an extra space at the end of the text string... remove it and voila!
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    05-23-2007
    Posts
    41
    I can't seem to remove the blanks even by using back space.

    Is there a formula I can use to delete all blank fields at the end of each text?

    Thanks

  4. #4
    Registered User
    Join Date
    05-23-2007
    Posts
    41
    I figured out a way to manually do it... but would like to have a formula... Thanks

  5. #5
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Change formula in B4 to:

    =VLOOKUP(TRIM(A4),table!$A$3:$B$3,2,FALSE)

  6. #6
    Registered User
    Join Date
    05-23-2007
    Posts
    41
    I still get N/A... I probably need to Trim the Table Tab since that is where there are spaces.

    I can probably just use the Trim function on the table tab and copy and paste back on that same tab.

    Any other suggestion?

    Thanks for all your help!!! I learned something new about the Trim function

  7. #7
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898
    Try selecting the column and go to Data|Text to Columns...

    select Fixed Width in first Window and click Next.

    double-click each vertical line in the large white box in the next window so that the lines disappear and click Next.

    Click Finish.

    Does that work?

  8. #8
    Registered User
    Join Date
    05-23-2007
    Posts
    41
    That did work... I guess by doing that I really don't need the TRIM function.

    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. Vlookup with formatting
    By robotmannick in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-01-2008, 10:49 AM
  2. PivotTable formatting means Vlookup won't work!
    By MonacoIntern in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 06-30-2008, 11:54 AM
  3. Vlookup using two columns-needs to match the first two column
    By pduubb in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 04-01-2008, 01:21 PM
  4. Excel/Word selection formatting issues
    By rivvorz in forum Excel General
    Replies: 0
    Last Post: 01-29-2007, 07:30 AM
  5. VLOOKUP in Conditional Formatting
    By Brokovich in forum Excel General
    Replies: 5
    Last Post: 01-19-2007, 01:02 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