+ Reply to Thread
Results 1 to 5 of 5

Reference or Vlookup against merged cells

  1. #1
    Registered User
    Join Date
    10-19-2012
    Location
    York
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    59

    Lightbulb Reference or Vlookup against merged cells

    Hi
    I'm trying to come up with a solution with bring across a promotional comment from a merged cell.
    On a second worksheet i'm trying to reference in the marketing comments but the joyous excel Merged cell issue means it will only bring in the comments from the first product with the merged cell next to it.
    What it needs to do is bring across the same comment in this case rows 1-6, 7-11, 12-13, 15-16.
    These references will change with each activity so i cant set up a static formula to do it.
    The full spreadsheet as 900 lines so needs to be a quick fix than unmerging and filling down.

    thanks
    Adi
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Reference or Vlookup against merged cells

    One way

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    The word "code" in the formula should be replaced with a reference to the code you want to look up in the table.

  3. #3
    Registered User
    Join Date
    10-19-2012
    Location
    York
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    59

    Re: Reference or Vlookup against merged cells

    thanks, it works a treat,
    can i just ask how the REPT function works, and what reference the "z" has?
    i understand that the second reference is number of repeats but not the first
    Adi

  4. #4
    Forum Expert
    Join Date
    06-08-2012
    Location
    Left the forum!
    MS-Off Ver
    Left the forum!
    Posts
    5,189

    Re: Reference or Vlookup against merged cells

    It returns a string of z's, 255 charachters long, which would fall after any of the strings in your comment column if it was sorted alphabetically.

    Using that as your lookup reference value with an approximate match will return the last comment in the range defined by the second part of the formula.

  5. #5
    Registered User
    Join Date
    10-19-2012
    Location
    York
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    59

    Re: Reference or Vlookup against merged cells

    thanks, makes sense now, glad to know it can be used in other description matches.
    thanks for your help, much appreciated.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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