+ Reply to Thread
Results 1 to 2 of 2

Autofill horizontally while maintaining formulas

  1. #1
    Registered User
    Join Date
    09-05-2014
    Location
    Pittsburgh
    MS-Off Ver
    2010
    Posts
    16

    Autofill horizontally while maintaining formulas

    I have three columns: A1 references a cell from another sheet - let's say Sheet2!A1. B1 has a formula based on A1. C1 has a formula based on B1. I need to repeat these three cells, as a group, horizontally over and over. So when I select them as a group and autofill to the right, the B1 & C1 cells behave like I want them to - but the cell reference in A1 increases based on the number of cells it moves to the right. In other words Sheet2!A1 becomes Sheet2!D1 - when what I want is to have it be Sheet2!B1 (even though it's now in Column D).

    Is there a way to autofill these three cells to the right AND have the column reference in the first cell only increase by 1 to B, C, D, etc. each time? Hopefully this makes some sense.

    Thanks.

  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
    53,048

    Re: Autofill horizontally while maintaining formulas

    Hi, welcome to the forum

    You may need to adjust the row ref (bolded part), but try this......
    =INDIRECT(CHAR(96+INT(COLUMN(A1)/3+1))&4)
    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

+ 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. Can you autofill horizontally and vertically?
    By keez1993 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-27-2014, 03:59 AM
  2. Allow pasting and autofill while maintaining formatting
    By jrms in forum Excel - New Users/Basics
    Replies: 1
    Last Post: 06-30-2012, 10:39 PM
  3. Autofill horizontally
    By JaDiMa in forum Excel General
    Replies: 23
    Last Post: 06-06-2010, 03:26 PM
  4. Maintaining formulas when saving as .xls
    By johnlovesbeer in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-17-2009, 05:31 AM
  5. Autofill horizontally
    By skatmandu2002 in forum Excel General
    Replies: 4
    Last Post: 01-23-2009, 07:52 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