+ Reply to Thread
Results 1 to 17 of 17

Get results from Merged Cells

  1. #1
    Forum Contributor
    Join Date
    01-25-2014
    Location
    Italy - Currently In USA
    MS-Off Ver
    Excel 2019
    Posts
    207

    Get results from Merged Cells

    Hello,
    I have attached a Sample WB to better describe what I am trying to accomplish.
    I have tried various formulas to get results from merged cells but none seem to work.
    I am most likely doing it all wrong, perhaps someone could help me resolve the issue.

    In the attached Work Book I wrote a brief description of my issue along with sample formulas.

    Thank you
    Nino
    Attached Files Attached Files

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    47,997

    Re: Get results from Merged Cells

    Try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    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
    53,044

    Re: Get results from Merged Cells

    You have just discovered 1 of the problems associated with merged cells, and why we all advocate avoiding them if at all possible
    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

  4. #4
    Forum Contributor
    Join Date
    01-25-2014
    Location
    Italy - Currently In USA
    MS-Off Ver
    Excel 2019
    Posts
    207

    Re: Get results from Merged Cells

    Hi Trevor, I tried your formula but not working

  5. #5
    Forum Contributor
    Join Date
    01-25-2014
    Location
    Italy - Currently In USA
    MS-Off Ver
    Excel 2019
    Posts
    207

    Re: Get results from Merged Cells

    I sure have, However I am not able to make it work even if I were to unmerge the cells.

  6. #6
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Get results from Merged Cells

    revised TMS solution
    make index array start from A1 instead of A17


    Formula: copy to clipboard
    Please Login or Register  to view this content.
    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved. To undo, select Thread Tools-> Mark thread as Unsolved.

  7. #7
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Get results from Merged Cells

    if you want OFFSET Formula

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

  8. #8
    Forum Contributor
    Join Date
    01-25-2014
    Location
    Italy - Currently In USA
    MS-Off Ver
    Excel 2019
    Posts
    207

    Re: Get results from Merged Cells

    Hi humdingaling, thank you for your help
    both formulas work well. However, the "offset" Formula is Much slower than the "Index" formula.
    Index formula took 10.18 sec to calculate
    Offset formula took 52.35 sec to calculate
    that's because of to the amount of data that needs calculated.

    I have discovered a problem with the Index Formula and I don't understand why. I Get a #REF! after I reach cell A433
    I have reattached the workbook saved where the problem occurs.

    What is causing the #REF! result?

    Up until then it works perfectly

    Thank you
    Nino
    Attached Files Attached Files

  9. #9
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Get results from Merged Cells

    yes offset is much slower because it is a volatile function
    A Volatile Function is one that causes recalculation of the formula in the cell where it resides every time Excel recalculates.
    so really should be avoided where possible
    i just left it in there in case you really wanted to use it for some reason

    your ref problem

    the index only goes up to row 5000
    $A$1:$A$5000
    increase 5000 to whatever your max is going to be A13133 in this case

  10. #10
    Forum Expert azumi's Avatar
    Join Date
    12-10-2012
    Location
    YK, Indonesia
    MS-Off Ver
    Excel 365
    Posts
    2,406

    Re: Get results from Merged Cells

    Another option
    Attached Files Attached Files

  11. #11
    Forum Guru samba_ravi's Avatar
    Join Date
    07-26-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2021
    Posts
    8,937

    Re: Get results from Merged Cells

    if your merged cells are unique in size
    =INDEX(A$17:A$5000,ROW()*12,0) this formula will works perfect
    the error occurs may be due to the array is out of range means your range is a17:a5000, your row number is =(433-16)*12=5004, it is the out of range so you got error. to over come this you may use below
    =iferror(INDEX(A$17:A$5000,ROW()*12,0),"")

    if your merged cells are not unique in size the below formula will works

    c17=IFERROR(INDEX(A:A,SMALL(INDEX((A$17:INDEX(A:A,MATCH(99^99,A:A))="")*99^99+ROW(A$17:INDEX(A:A,MATCH(99^99,A:A))),0),ROWS(C$17:C17))),"")
    Try this and copy towards down
    Samba

    Say thanks to those who have helped you by clicking Add Reputation star.

  12. #12
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    47,997

    Re: Get results from Merged Cells

    @humdingaling: dohhhh, thanks. That's what you get when you don't test a solution Sadly, working on an iPad has its disadvantages.

  13. #13
    Forum Expert
    Join Date
    08-12-2012
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    5,636

    Re: Get results from Merged Cells

    @TMS: that's some dedication to reply on ipad!

  14. #14
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    47,997

    Re: Get results from Merged Cells

    Well, I could see the formulae in the workbook and I could see what was wrong, in principle, I just couldn't test it ... so, I didn't make the Range absolute and didn't adjust the start cell. You see what you expect to see and, without the test, it looked right. Ho hum

  15. #15
    Forum Contributor
    Join Date
    01-25-2014
    Location
    Italy - Currently In USA
    MS-Off Ver
    Excel 2019
    Posts
    207

    Re: Get results from Merged Cells

    Thank you,
    It works now
    I shall try all the versions provided
    cheers

  16. #16
    Forum Contributor
    Join Date
    01-25-2014
    Location
    Italy - Currently In USA
    MS-Off Ver
    Excel 2019
    Posts
    207

    Re: Get results from Merged Cells

    @TMS:
    @humdingaling:
    @nflsales
    @azumi
    Thank you to all of you, you have been great help, and I have learned allot from the different versions
    Cheers
    Nino

  17. #17
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    47,997

    Re: Get results from Merged Cells

    You're welcome. Thanks for the rep.

+ 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] Clear merged and non-merged cells in named range.
    By IMM Tech in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-20-2018, 12:37 PM
  2. Copy from merged cells in one sheet and paste to merged cells in another sheet
    By loroverde in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-14-2015, 01:30 PM
  3. Replies: 0
    Last Post: 11-25-2014, 07:08 AM
  4. automatically fit an image into merged cells for full width of merged cells
    By Marcin4111 in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 11-18-2014, 03:12 PM
  5. Replies: 1
    Last Post: 06-28-2012, 11:53 AM
  6. [SOLVED] how do i link merged cells to a merged cell in another worksheet.
    By ibbm in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 04-27-2006, 06:45 PM
  7. [SOLVED] retrieve text from merged cells-How do i read the text in the merged cell?
    By Eric in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-09-2005, 05:05 AM

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