+ Reply to Thread
Results 1 to 9 of 9

Formula from a single cell to a merged cell

  1. #1
    Registered User
    Join Date
    09-09-2016
    Location
    Derby England
    MS-Off Ver
    Excel 2013
    Posts
    39

    Formula from a single cell to a merged cell

    Hi All,

    I have a sheet with raw data(single cells) and a sheet with merged cells.

    I am trying to link the same data from the single cell, to the merged cells, but when I drag down to copy the formula I find the formula skips rows (in this case it skips 7 rows). How would i overcome this so it only selects the data from that cell?

    I hope this makes sense.

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: Formula from a single cell to a merged cell

    It would help if you attached a sample Excel workbook, so we can see how your cells have been merged (I take it they are merged 7 deep).

    To do this, click on Go Advanced (below the Edit Window) while you are composing a reply, then scroll down to and click on Manage Attachments and the Upload window will open. Click on Browse and navigate to (and double-click) the file icon that you want to attach, then click on Upload and then on Close this Window to return to the Edit window. When you have finished composing your post, click on Submit Post.

    Don't try to use the Paperclip icon, as it doesn't work on this forum.

    Hope this helps.

    Pete

  3. #3
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Formula from a single cell to a merged cell

    Very simply: don't use merged cells.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  4. #4
    Registered User
    Join Date
    09-09-2016
    Location
    Derby England
    MS-Off Ver
    Excel 2013
    Posts
    39

    Re: Formula from a single cell to a merged cell

    Thanks for your help Pete.

    Please see attached example. In column D, The first cell works (looking at A2) but I want the next merged cell down to look at A3, and A4 and so on, but it skips to A9 and A16 and so on.
    Attached Files Attached Files

  5. #5
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Formula from a single cell to a merged cell

    As you are at the design stage, I would advise moving away from merged cells altogether - you are storing up pain and aggro for yourself as this project develops.

  6. #6
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Formula from a single cell to a merged cell

    in D2
    =IF(MOD(ROW()-2,7)=0,INDEX(A$2:A$1000,INT((ROW()-2)/7)+1,1),"")
    and copy down the column

    Now merge the cells
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  7. #7
    Registered User
    Join Date
    09-09-2016
    Location
    Derby England
    MS-Off Ver
    Excel 2013
    Posts
    39

    Re: Formula from a single cell to a merged cell

    Thank you very much Special K! It works!

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,780

    Re: Formula from a single cell to a merged cell

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED. Thanks.

  9. #9
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: Formula from a single cell to a merged cell

    Alternatively, with the cells already merged, put this in the first merged block (starting with D2):

    =INDEX(A:A,INT((ROWS($1:1)-1)/7)+2)

    Then CTRL-C and move the cursor to the next block (starting with D9) and CTRL-V, then move to D16 and CTRL-V again, and so on. Press Esc when you have finished.

    (Some people are very nervous about merged cells !!)

    Hope this helps.

    Pete

+ 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. Replies: 5
    Last Post: 12-03-2014, 02:11 PM
  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. [SOLVED] Set single cell equal to merged cell
    By VBA FTW in forum Excel General
    Replies: 3
    Last Post: 11-27-2012, 01:52 PM
  5. Replies: 3
    Last Post: 01-22-2006, 05:30 PM
  6. VBA copy from single to merged cell.
    By goober in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-16-2005, 11:35 PM
  7. Replies: 2
    Last Post: 10-11-2005, 11: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