+ Reply to Thread
Results 1 to 2 of 2

Trying to autofill function while referencing a workbook

  1. #1
    Registered User
    Join Date
    07-14-2011
    Location
    stamford, ct
    MS-Off Ver
    Excel 2003
    Posts
    5

    Trying to autofill function while referencing a workbook

    Hello, I want to reference data from every other cell from one workbook into another.

    For example, This is the forumla that I have in cell A1:
    ='S:\Payroll\2011\[Crew Time by Day of Week 1.15.11.xls]NE CORP'!$A$42

    In Cell B1, I want the formula to say:
    ='S:\Payroll\2011\[Crew Time by Day of Week 1.15.11.xls]NE CORP'!$C$42

    However when i drag the fomula across row 1, it autofills the exact same formula that is in A1 without changing the referenced cell at all.

    How can I do this? I am in somewhat of a time crunch since this is a report I am doing for my boss. I appreciate any tips. Thank you.

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: Trying to autofill function while referencing a workbook

    The reference you are using is absolute so you need to remove the $ to make it change relatively as you drag it:

    ='S:\Payroll\2011\[Crew Time by Day of Week 1.15.11.xls]NE CORP'!A42

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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