+ Reply to Thread
Results 1 to 8 of 8

Copying fomulae across columns but with gaps

  1. #1
    Registered User
    Join Date
    08-18-2011
    Location
    East Sussex, England
    MS-Off Ver
    Excel 2007
    Posts
    76

    Copying fomulae across columns but with gaps

    How do I copy a formula across columns A, C, E, G, etc but retain a refer going up A:A, B:B, C:C, etc...

    At the moment if i drag the formula across the cells it jumps A:A, C:C, E:E, etc

    I really dont want to manually have to enter each column ref as there are about 350 columns to do this on.

  2. #2
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Copying fomulae across columns but with gaps

    Did you use the absolute reference in your formula?

    $A:$A
    HTH
    Regards, Jeff

  3. #3
    Registered User
    Join Date
    08-18-2011
    Location
    East Sussex, England
    MS-Off Ver
    Excel 2007
    Posts
    76

    Re: Copying fomulae across columns but with gaps

    I have this formula

    =IFERROR(INDEX('lunch study'!$A:$A,SMALL(IF('lunch study'!D$2:D$31<>"",ROW('lunch study'!$B$2:$B$31)),ROWS(C$2:C3))),"")

    I need the 'lunch study'!D$2:D$31 to go up sequentially. However because there is a gap between each column, the reference goes up in 2 columns rather than 1.

    So the formula is in A1 for example, then it is copied into C1 but this means D become F not E...

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Copying fomulae across columns but with gaps

    Hi graeme27uk,

    I'm still trying to find the correct solution, but I always struggle with this setup. If asked those who have a stronger formula knowledge than I to lend a hand.

  5. #5
    Registered User
    Join Date
    08-18-2011
    Location
    East Sussex, England
    MS-Off Ver
    Excel 2007
    Posts
    76

    Re: Copying fomulae across columns but with gaps

    I have sort of solved this but not in an ideal way. Created a new sheet without the gaps and then used this as an array so that I can then use the INDEX function on the actual sheet itself. It works but is not that elegant and means I have another sheet for excel to churn through.

  6. #6
    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,779

    Re: Copying fomulae across columns but with gaps

    Attach the workbook - someone may be able to help you to resolve this.
    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.

  7. #7
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,025

    Re: Copying fomulae across columns but with gaps

    It would be easier to test with a sample workbook.... but do try:

    =IFERROR(INDEX('Lunch study'!$A:$A,SMALL(IF(OFFSET('Lunch study'!D$2,,INT((COLUMNS($A:A)-1)/2),30,)<>"",ROW('Lunch study'!$B$2:$B$31)),ROWS(C$2:C3))),"")
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  8. #8
    Registered User
    Join Date
    08-18-2011
    Location
    East Sussex, England
    MS-Off Ver
    Excel 2007
    Posts
    76

    Re: Copying fomulae across columns but with gaps

    Attached.

    The register sheet is where the formula needs to go.
    Attached Files Attached Files

+ 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. Retrieval of values from columns with gaps between month columns
    By pvp in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-07-2016, 06:19 AM
  2. Average between two columns that have gaps
    By arcolombo698 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 01-10-2014, 09:07 PM
  3. Compiling several columns into one, eliminating gaps!
    By Tayloroid in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 10-18-2013, 11:02 AM
  4. Creating a list from two columns without gaps
    By fielg in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 11-15-2012, 09:23 AM
  5. [SOLVED] Copying rows across to leave no gaps
    By FooFighter616 in forum Excel General
    Replies: 3
    Last Post: 05-01-2012, 08:18 AM
  6. Copying cells with gaps
    By dimsyniad in forum Excel General
    Replies: 3
    Last Post: 04-06-2011, 06:54 PM
  7. Automatically copying fomulae when Inserting rows
    By Ian Goodhardt in forum Excel General
    Replies: 3
    Last Post: 08-17-2005, 03:05 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