+ Reply to Thread
Results 1 to 3 of 3

HLOOKUP referencing a merged cell coming up with 0

  1. #1
    Registered User
    Join Date
    10-03-2013
    Location
    Washington
    MS-Off Ver
    Excel 2003
    Posts
    2

    HLOOKUP referencing a merged cell coming up with 0

    I have a spreadsheet thats setup as a tasking calendar. The dates are in the heading row and the users names are down the side. When a user has a tasking, the date range in their row is merged and labeled with the task and date.

    I'm attempting to make a cell in their row that when you input a certian date into another random cell, it pulls up the tasking the user is assigned to for that day. I'm using the HLOOKUP command to reference the date value and find the needed cell. If the data is directly typed into the 1st left-most cell, the information is presented just as planned. If the date referenced is in the middle of the merged cells, nothing is presented.

    Example:

    Cells A1:C1 are merged with the text "SAMPLE DATA" in it.

    If the HLOOKUP command references cell A1, it comes back with SAMPLE DATA
    If the HLOOKUP command references cells B1 or C1, it comes back with 0

    In this example, I need the HLOOKUP command to give me "SAMPLE DATA" when any of the 3 cells are referenced. I've seen solutions with INDEX/MATCH formulas but these merged cells are all different depending on the date ranges so a dynamic solution is in order.


    I understand this is the nature of the beast so I'm wondering if theres a way to dynamically find and reference the first cell of the merged cell or maybe a fancy formatting job may be in order. Any help would be much appreciated.
    Attached Files Attached Files
    Last edited by Ron Fisher; 10-03-2013 at 04:31 PM.

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: HLOOKUP referencing a merged cell coming up with 0

    Are you able to attach a work sample, with expected result?

    It sounds like you're attempting to circumnavigate the limitations of Merged Cells, which always reference the top & left-most cell of the grouping.

  3. #3
    Registered User
    Join Date
    10-03-2013
    Location
    Washington
    MS-Off Ver
    Excel 2003
    Posts
    2

    Re: HLOOKUP referencing a merged cell coming up with 0

    Quote Originally Posted by daffodil11 View Post
    Are you able to attach a work sample, with expected result?

    It sounds like you're attempting to circumnavigate the limitations of Merged Cells, which always reference the top & left-most cell of the grouping.
    I've attached a sample of the workbook. You are correct that I'm trying to find a work around for this. At this point I'm wondering if its even possible or if I have to resort to redundant editing on multiple cells. I'd like to make this somewhat intuitive for a normal user to input values.

+ 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. Hlookup with merged cell
    By IKZOUHETNIETWETEN in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-16-2013, 10:54 PM
  2. lookup value when referencing a merged cell
    By lwflip in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 09-20-2012, 01:09 AM
  3. referencing value from a cell that was merged
    By aretai in forum Excel General
    Replies: 1
    Last Post: 07-16-2010, 08:09 AM
  4. Values not coming in few cell but coming in rest all cells
    By rashmib in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 07-02-2009, 11:19 AM
  5. [SOLVED] Referencing a Merged cell
    By Mariano in forum Excel General
    Replies: 4
    Last Post: 01-31-2006, 10:35 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