+ Reply to Thread
Results 1 to 14 of 14

how do you copy an absolute cell reference?

  1. #1
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    how do you copy an absolute cell reference?

    Hi,

    I have a workbook that contains data that covers 1600 lines an i have a formula that refers to the column A and then the cell refernce ie. k2=A6.

    I need to make the cell an absolute reference by K2=$A$6, however i need then for each cell copied down to say k2=$A$7, K2=$A$8 and so on without having to type them in indvidually, is there any way to do this quickly please.

  2. #2
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: how do you copy an absolute cell reference?

    Take the $ out from in front of the row reference.

    So use: =$A6

  3. #3
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Re: how do you copy an absolute cell reference?

    Trouble is I need the cell reference to stay the same when all the data is sorted so that the cell conatining the formula even when sorted would refer to ID no. in the A column would be referred to say A6 - the formula looks at another cell to ref back for the a6 location - i.e. the information in A6 refers to an ID no. 001 and the formula needs to refer to this

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: how do you copy an absolute cell reference?

    You lost me. Maybe you should use INDEX().

    Could you upload a sample file (without private data) showing what you want?

  5. #5
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: how do you copy an absolute cell reference?

    even if you make it absolute it will still reference a6 after sort
    Last edited by martindwilson; 03-30-2011 at 09:37 AM.
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  6. #6
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Re: how do you copy an absolute cell reference?

    Here is the actual formula

    =SUMPRODUCT(-('Stock Movement'!$A$5:$A$7518=Data!$AK$4),-('Stock Movement'!$F$5:$F$7518=Data!$A6),'Stock Movement'!$H$5:$H$7518)

    all the parts of this need to absolute cell references including the =Data!$A$6 part but i need to copy this down the workbook and the cell reference needs to change to =Data!$A$7 and so on as each line is copied down - this is the only part of the formula that needs to change as it is being copied down

  7. #7
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Re: how do you copy an absolute cell reference?

    Hi martin - unfortunatly it dosent for some reason the cell references seem to get mixed up

  8. #8
    Forum Expert martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: how do you copy an absolute cell reference?

    no it doesnt if you put =a6 or =$a$6 in a cell when column a is sorted it will return the value in a6 regardles of what it was originally, even if you include the column with =a6 in the cell so if a6 had 5 in it and after sort =10 the formula would return 10 its not tied to the value

  9. #9
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Re: how do you copy an absolute cell reference?

    it needs to be tied to the cell reference that its representing hence the =Data!$A$6 - is there any way to make it flexible so that if it is sorted then it automatically updates and refers to the cell reference on the line it is sorted to - if that makes sense?

  10. #10
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Re: how do you copy an absolute cell reference?

    i cant put the spreadsheet on here but i can put 2 screenshots on via a word document if that helps it would show the probelm that is occuring

  11. #11
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: how do you copy an absolute cell reference?

    is there any way to make it flexible so that if it is sorted then it automatically updates and refers to the cell reference on the line it is sorted to
    Are you looking for =INDEX(Data!$A:$A,ROW()) maybe???

    BTW - Your SUMPRODUCT() formula has single "-"'s but you need doubles "--" or just use the multiplier (*) between components.

  12. #12
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Re: how do you copy an absolute cell reference?

    how would I incorporate the =INDEX(Data!$A:$A,ROW()) into my formula the ),-('Stock Movement'!$F$5:$F$7518=Data!$A6) section has to look at a stock movement sheet between rows F5 and F7518 to find the corresponding ID No. listed in A6 ? i.e. if the Id no. in A6 is 001 then tghe formula looks at the stock movement sheet and tallies all the instances of id no. 001 and its corresponding item issues hopw this makes it clearer to understand

  13. #13
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: how do you copy an absolute cell reference?

    hope this makes it clearer to understand
    Without a sample file, not for me. Hopefully for martindwilson or others.

  14. #14
    Forum Contributor
    Join Date
    04-02-2010
    Location
    penrith
    MS-Off Ver
    Excel 2007
    Posts
    522

    Re: how do you copy an absolute cell reference?

    ok will try and post a file

+ 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