+ Reply to Thread
Results 1 to 8 of 8

Excel will not autofill horizontally (using an abs. reference for a column on a dif sheet)

  1. #1
    Registered User
    Join Date
    11-21-2018
    Location
    Buffalo, NY
    MS-Off Ver
    2010
    Posts
    4

    Excel will not autofill horizontally (using an abs. reference for a column on a dif sheet)

    Hey guys,

    So i've been trying to figure this out for awhile now.

    I am trying to drag my excel formula to the right. My formula is =+'Hard cost Schd'!$E4*.86. When I drag it horizontally, it simply uses the 3 cells that I highlight, $E4, $E5, and $E6 and then copies those to the right. It will not continue my formula to $E7, $E8, etc.

    Automatic calculations is on AND it actually works correctly if I go vertically.. it just won't go horizontally.

    What am I missing?


    UPDATE: I have been able to get the second value in the column of the sheet I'm trying to reference by using =INDEX('Hard cost Schd'!$E$1:$E$31,COLUMN('Hard cost Schd'!E1)). It allows me to fetch the second value and drag that to the right but I still cannot get the first value.. and I cannot change the formula to $E$0 obviously or else I get an error. I'm not exactly sure how to get by this.

  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
    44,463

    Re: Excel will not autofill horizontally (using an abs. reference for a column on a dif sh

    The dollar sign ( $ ) makes the column reference absolute. Change $E4 to just E4 and it will work when you drag it across.
    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
    Registered User
    Join Date
    11-21-2018
    Location
    Buffalo, NY
    MS-Off Ver
    2010
    Posts
    4

    Re: Excel will not autofill horizontally (using an abs. reference for a column on a dif sh

    I tried this. When I use ='Hard cost Schd'!E4*.86 and drag it to the right, it changes the formula to ='Hard cost Schd'!F4*.86, ='Hard cost Schd'!G4*.86, etc

  4. #4
    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
    44,463

    Re: Excel will not autofill horizontally (using an abs. reference for a column on a dif sh

    Attach a sample workbook (not a picture or pasted copy). Make sure there is just enough data to demonstrate your need. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are shown, mock them up manually if necessary.

    Remember to desensitize the data.

    Click on GO ADVANCED and then scroll down to Manage Attachments to open the upload window.

  5. #5
    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
    44,463

    Re: Excel will not autofill horizontally (using an abs. reference for a column on a dif sh

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

  6. #6
    Registered User
    Join Date
    11-21-2018
    Location
    Buffalo, NY
    MS-Off Ver
    2010
    Posts
    4

    Re: Excel will not autofill horizontally (using an abs. reference for a column on a dif sh

    I actually found this somewhere else and got it to work. Thanks!

    Question though... can you explain what the INDEX function does? I just wanna make sure I actually understand it if I need to use it again.

    Quote Originally Posted by TMS View Post
    Try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    11-21-2018
    Location
    Buffalo, NY
    MS-Off Ver
    2010
    Posts
    4

    Re: Excel will not autofill horizontally (using an abs. reference for a column on a dif sh

    =INDEX('Hard cost Schd'!$E$1:$E$31,COLUMN('Hard cost Schd'!D1))*0.86

    ^^That is the formula I used.. I don't understand why it had me use D1 for the column and not E1...


    Quote Originally Posted by TMS View Post
    Try:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

  8. #8
    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
    44,463

    Re: Excel will not autofill horizontally (using an abs. reference for a column on a dif sh

    When you use INDEX you are using a "pointer" to refer to a cell within a range. So, =INDEX($E$1:$E$45, 1) refers to the first cell in the range $E$1:$E$45, =INDEX($E$1:$E$45, 2) refers to the second cell in the range $E$1:$E$45, and so on. That in itself is not that useful so we need to make the pointer a variable. Fot that, we are using the COLUMN function. COLUMN returns the column number of the cell reference. In this case, COLUMN(A1) returns 1, as column A is the first column. COLUMN(B1) returns 2, as column B is the first column.

    Hence, when we use =INDEX($E$1:$E$45, COLUMN(A1)) and drag across, the A1 becomes B1, C1, D1, etc., giving us a variable index/pointer which increases as we require. If you need to start at, say, the 4th entry in the range, you'd start with COLUMN(D1). Note that the row reference is irrelevant here.

+ 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. Autofill Horizontally
    By trescuervo in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-19-2018, 10:51 PM
  2. Replies: 3
    Last Post: 01-07-2016, 07:50 AM
  3. [SOLVED] Autofill horizontally while maintaining formulas
    By pittsburghr2 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-06-2014, 01:27 AM
  4. Can you autofill horizontally and vertically?
    By keez1993 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 03-27-2014, 03:59 AM
  5. Autofill Reference down column
    By marcimarc in forum Excel General
    Replies: 1
    Last Post: 12-14-2013, 05:06 AM
  6. Autofill horizontally
    By JaDiMa in forum Excel General
    Replies: 23
    Last Post: 06-06-2010, 03:26 PM
  7. 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