+ Reply to Thread
Results 1 to 8 of 8

Format column to text

  1. #1
    Forum Contributor
    Join Date
    07-26-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2016 Office 365 ProPlus
    Posts
    826

    Format column to text

    Hi Guys,

    I was converting a column to text values with this:
    Please Login or Register  to view this content.
    However it does line it to the left as text but in a vlookup it still acts as a number.
    So without the " " around it.

    How can I convert the column to real text format?
    Thanks.

  2. #2
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Format column to text

    Hi rpinxt,

    try this:

    Please Login or Register  to view this content.

  3. #3
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,336

    Re: Format column to text

    Hi,

    VLookup will lookup both text and numbers. What do you mean by "in vlookup it still acts as a number"?
    What are you trying to accomplish? What last parameter are you using in your VLookup formula? True or False?

    Or maybe one of these 3 ways will work for you?
    http://office.microsoft.com/en-us/ex...001136619.aspx
    Last edited by MarvinP; 11-28-2013 at 11:43 AM.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  4. #4
    Forum Contributor
    Join Date
    07-26-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2016 Office 365 ProPlus
    Posts
    826

    Re: Format column to text

    Thanks works like a charm berlan!
    Bit more code then the one line, but if it works thats no big deal

  5. #5
    Forum Contributor
    Join Date
    07-26-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2016 Office 365 ProPlus
    Posts
    826

    Re: Format column to text

    Well MarvinP I have 2 data sources and in 1 source the number to be lookedup are in number format and in the other in text format.
    Easiest fix would be to convert the number source to a text source in order for the vlookup to work.
    Thanks for the link...I will study them

  6. #6
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Format column to text

    Thanks for the Rep rpinxt. Here's a version taking into account if no number values would exist within column 5.

    Please Login or Register  to view this content.

    All best

  7. #7
    Forum Contributor
    Join Date
    07-26-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2016 Office 365 ProPlus
    Posts
    826

    Re: Format column to text

    thanks berlan!

  8. #8
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: Format column to text

    You're welcome

+ 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] How to format a column for text only
    By Recoil Rob in forum Excel General
    Replies: 7
    Last Post: 09-14-2013, 04:13 PM
  2. excel to text with column format
    By xtro in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-12-2009, 04:53 PM
  3. [SOLVED] format column to text
    By husky101@yahoo.com in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-19-2005, 12:05 AM
  4. Setting Column format as text
    By deluth in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 07-14-2005, 07:05 PM
  5. [SOLVED] Max value in 1 column when all values format are text
    By coco in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-21-2005, 03:05 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