+ Reply to Thread
Results 1 to 7 of 7

Cross-Sheet Formula, formula

Hybrid View

  1. #1
    Registered User
    Join Date
    02-24-2011
    Location
    Ontario
    MS-Off Ver
    Excel 2010
    Posts
    47

    Cross-Sheet Formula, formula

    Hi all.


    In a cell, I have this link.

    =[HPSI.xlsx]Sheet1!$J$31

    In another cell, I wish to call data from [HPSI.xlsx]Sheet1!$J$31 +12 cells down (essentially, 43) but I want it in a formula to add 12 cells so that every subsequent time it will keep pulling data from down 12 more cells. How would I do that? If it's even possible.

    Thank you

  2. #2
    Forum Contributor bentleybob's Avatar
    Join Date
    02-27-2009
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2010
    Posts
    644

    Re: Cross-Sheet Formula, formula

    You didn't say where the cell with the link is or where the second cell would be, so it's hard to give you a specific formula. What you want, I think, is to use INDIRECT and craft a formula that addresses the right rows.

    For example, let's say your first cell is in D10 and you want to simply copy that formula down to D11, D12, etc. and get your links to work. In that case, you would use:
    =INDIRECT("[HPSI.xlsx]Sheet1!$J$"&(ROW(D10)-9)*12+19)
    Be more specific and folks here can help you with the exact formula you need. Hope this helps.

  3. #3
    Registered User
    Join Date
    02-24-2011
    Location
    Ontario
    MS-Off Ver
    Excel 2010
    Posts
    47

    Re: Cross-Sheet Formula, formula

    Sorry, I thought that was enough information of what I was trying to do. I guess not.

    I have a template set up and a set of data in cells and cell A2 has the link =[HPSI.xlsx]Sheet1!$J$31

    In the next set of data, I want cell A20 to call the =[HPSI.xlsx]Sheet1!$J$43 however I don't want to have to write a new link for every set of data, I'd like to just copy/paste the template whereas all the references would be updated in relation to the new cells it'll be using.

    For example... I tried variations of =[HPSI.xlsx]Sheet1!$J$31 +12 but instead of giving me the value of Sheet 1, cell 43, it gave me the value of Sheet 1, cell 31 and added 12 to the value.

    I hope that's enough information... in re-reading it it sounds VERY confusing to me.

    Thank you

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

    Re: Cross-Sheet Formula, formula

    try
    =INDEX([HPSI.xlsx]Sheet1!$J$:$J$,19+ROW(A1)*12)
    gives rows
    31
    43
    55
    67
    79
    91
    103
    .
    .
    .
    .
    "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

  5. #5
    Registered User
    Join Date
    02-24-2011
    Location
    Ontario
    MS-Off Ver
    Excel 2010
    Posts
    47

    Re: Cross-Sheet Formula, formula

    The formula had an error at the first $J$

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

    Re: Cross-Sheet Formula, formula

    oops should be
    $J:$J
    =INDEX([HPSI.xlsx]Sheet1!$J:$J,19+ROW(A1)*12)

  7. #7
    Registered User
    Join Date
    02-24-2011
    Location
    Ontario
    MS-Off Ver
    Excel 2010
    Posts
    47

    Re: Cross-Sheet Formula, formula

    Thanks... that helps very much!. I really appreciate 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