+ Reply to Thread
Results 1 to 6 of 6

returning a value in a single cell from a merged cell

  1. #1
    Registered User
    Join Date
    12-03-2014
    Location
    UK
    MS-Off Ver
    Excel for Mac 2011 V14.4.6
    Posts
    4

    returning a value in a single cell from a merged cell

    I have some accounts data (exported as a csv file with no header) and have copied & Pasted it into my current workbook from the workbook it exports into.

    It appears to have merged cells with data in (such as supplier name, invoice date, invoice value). on the worksheet itself I can get it to return the merged cell data in a single cell by using = pointed to the block of cells.
    For example E13:E17 have a value of 2171. In cell F3 if you type = and hold over E14 (E14 has a fuzzy yellow outline) and click, E13:E17 turn blue with a blue outline, push return and cell F3 returns 2171

    However, if I do this on a new sheet within the workbook it returns #VALUE!

    Can somebody please advise what I am doing incorrect

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: returning a value in a single cell from a merged cell

    Hi, welcome to the forum

    the data in merged cells is always (and only) in the top left cell. So if you have merged cells E13:E17, the data is in E13. E14:E17 are blank. So when you need to reference that merged range, even though it will show as E13:E17, most formulas will not accept that, you need to use just E13

    Hope that helps?
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    12-03-2014
    Location
    UK
    MS-Off Ver
    Excel for Mac 2011 V14.4.6
    Posts
    4

    Re: returning a value in a single cell from a merged cell

    Unfortunately not
    If on the new sheet in cell A1 I type =, click on sheet, hold over E13 it flashes around the four cells and returns ='sheet2'E13:E17 and gives the #VALUE! error

  4. #4
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: returning a value in a single cell from a merged cell

    Yes, and thats exactly what I said - "even though it will show as E13:E17, most formulas will not accept that"

    You will need to either type the reference manually, manually delete the 2nd ref, or unmerge the cells.

    Merged cells cause nothing but problems, (as you have found out), we always advise users to not use them, if at all possible

  5. #5
    Registered User
    Join Date
    12-03-2014
    Location
    UK
    MS-Off Ver
    Excel for Mac 2011 V14.4.6
    Posts
    4

    Re: returning a value in a single cell from a merged cell

    Got it
    Great
    Thanks

  6. #6
    Registered User
    Join Date
    12-03-2014
    Location
    UK
    MS-Off Ver
    Excel for Mac 2011 V14.4.6
    Posts
    4

    Re: returning a value in a single cell from a merged cell

    Unfortuately i have to use them as thats the way it exports from the accounts software.

+ 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] Working out if cell is merged and returning value in another cell
    By amoxia in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 06-03-2014, 03:46 AM
  2. [SOLVED] Paste A Single Cell From An External Source to A Merged Cell in Excel
    By djfatboyfats in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 12-03-2013, 01:29 AM
  3. [SOLVED] what am i doing wrong?, VBA copy merged cell to single cell and back again
    By rmharrison in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-01-2013, 06:45 PM
  4. Returning the Value of a Merged Cell
    By frisbie17 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-10-2012, 09:48 AM
  5. Replies: 3
    Last Post: 01-22-2006, 05:30 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