+ Reply to Thread
Results 1 to 4 of 4

Using Vlookup to retrieve a cell containing multiple lines.

  1. #1
    Registered User
    Join Date
    10-30-2020
    Location
    New Providence, PA
    MS-Off Ver
    2016
    Posts
    5

    Question Using Vlookup to retrieve a cell containing multiple lines.

    Sometimes vlookup returns all the lines in the looked up cell and sometimes only the first line and I can't figure out the conditions that makes it do one or the other.

    I thought it was going to be something about the file type but that does not seem to be panning out.

    Perhaps something in the cell format that is invisible to me??

    Thank you for your attention.

    Ruth

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,942

    Re: Using Vlookup to retrieve a cell containing multiple lines.

    There are two types of cell wrapping - formatted wrapping, where a long string automatically wraps; and forced wrapping, using Alt-Enter.

    Format the cell with the VLOOKUP formula for wrapping and give it enough height and width to show the value from the other cell. Formatting is not carried over by a formula, and the line wrapping character is ignored until the cell is formatted for wrapping, and if the cell to the right is filled, the display of the string will be truncated.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Registered User
    Join Date
    10-30-2020
    Location
    New Providence, PA
    MS-Off Ver
    2016
    Posts
    5

    Re: Using Vlookup to retrieve a cell containing multiple lines.

    I think I have it. The cells are copying fully BUT wrap text is off so everything is on one line unless I change the format of the vlookup cell.

  4. #4
    Registered User
    Join Date
    10-30-2020
    Location
    New Providence, PA
    MS-Off Ver
    2016
    Posts
    5

    Re: Using Vlookup to retrieve a cell containing multiple lines.

    Thanks Bernie.

    Next step is I need to build these in VBA. This insight is really going to help out.

    Appreciate you.

    Ruth

+ 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] USE A Function to retrieve text on different lines in cell
    By rayted in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-15-2019, 06:57 AM
  2. How to retrieve a particular value from multiple lines of a field in Excel?
    By excelhelp2045 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-21-2017, 02:00 PM
  3. Replies: 1
    Last Post: 05-06-2016, 08:22 PM
  4. Replies: 5
    Last Post: 02-28-2015, 02:31 PM
  5. using VLOOKUP or similar formula to retrieve dates from multiple cells
    By Ducklet64 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 07-15-2013, 10:10 PM
  6. VLOOKUP Multiple Lines
    By jonnygilescronin in forum Excel General
    Replies: 31
    Last Post: 08-14-2009, 06:17 AM
  7. [SOLVED] Vlookup Twist: retrieve one value based on Multiple criteria
    By mellowe in forum Excel General
    Replies: 5
    Last Post: 01-19-2006, 08:55 AM

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