+ Reply to Thread
Results 1 to 4 of 4

Copy absolute formula, without changing every cell

  1. #1
    Registered User
    Join Date
    09-21-2009
    Location
    AZ
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    12

    Thumbs up Copy absolute formula, without changing every cell

    I think this should be easier than I am making it out to be, but the answer is escaping me....


    Among other things, I have a workbook with these worksheets in it: Hours, Cost, Profit, Revenue.

    Columns A, B, C & D should be exactly the same on each worksheet. So, I have all the data for these columns entered into Hours, and then reference that worksheet on the other ones.

    That works fine until I sort it differently and then instead of having row 2 reference row 2, it will be in row 9, etc.

    Now I know I can use =+Hours!$A$2 for the absolute reference, but then i would manually have to change the reference on each cell.

    SO - (finally the question) Is there a way to use the absolute reference without having to manually enter it into each cell?

    Thanks!!!

    Alisa
    Last edited by alisapooh; 09-24-2009 at 11:12 AM.

  2. #2
    Registered User
    Join Date
    10-25-2008
    Location
    Mount Joy, PA
    MS-Off Ver
    2003
    Posts
    44

    Re: Copy absolute formula, without changing every cell

    If you remove the Hours! with a find and replace (use double quote "" for the replace), then you can copy your formulas over to the other worksheets.

    Thats what I would do.

  3. #3
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Copy absolute formula, without changing every cell

    I *think* you're saying that

    Please Login or Register  to view this content.
    but if you sort Hours sheet such that A2 moves to A9 you get

    Please Login or Register  to view this content.
    and you want A2 on Cost to always = A2 on Hours, correct ?

    If so then one way to do this quickly is to use the INDEX function such that

    Please Login or Register  to view this content.
    this can be copied down for as many rows as required and it will adapt accordingly... ie A2 will always return content from A2 on Hours sheet and A4 from A4 etc etc regardless of how the data is sorted on Hours sheet.

    (another option is to utilise INDIRECT but this is a Volatile function and I would advise use of INDEX in preference to INDIRECT on that basis)

  4. #4
    Registered User
    Join Date
    09-21-2009
    Location
    AZ
    MS-Off Ver
    Excel 2003 and 2007
    Posts
    12

    Thumbs up Re: Copy absolute formula, without changing every cell

    That worked perfectly! Thanks!!

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Tags for this Thread

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