+ Reply to Thread
Results 1 to 18 of 18

Cell as reference anchor to another sheet

  1. #1
    Registered User
    Join Date
    10-28-2009
    Location
    Israel
    MS-Off Ver
    Excel 2003
    Posts
    30

    Cell as reference anchor to another sheet

    hi,

    I have a problem how to do the next:
    A1 cell contains title of some test
    The next cells on bottom line (B2:B10) contains the results of the this test.

    On another Sheet i want to analyze those results, thus I need the results from Sheet1 be copeid to sheet2. I want just to indicate the test name (A1 location) and the rest of the cells will be copeid automatically(relative reference, relatively to A1).
    How can I do it?

    Thanks!!!
    Last edited by michael.g; 10-29-2009 at 04:32 PM. Reason: changing title

  2. #2
    Valued Forum Contributor jj72uk's Avatar
    Join Date
    03-22-2008
    Location
    Essex, England
    MS-Off Ver
    Work - Office 2000, Home - Office 2007E
    Posts
    360

    Re: help me...

    Welcome to the forum.

    Please take a moment to read the forum rules and amend your thread title.

  3. #3
    Registered User
    Join Date
    10-28-2009
    Location
    Israel
    MS-Off Ver
    Excel 2003
    Posts
    30

    Re: Cell as reference anchor to another sheet

    To clarify what I mean,

    On Sheet2 I have a cell which equals to the title of the test.
    I think I need to use OFFSET function, as I know the exact location of the results relatively to the test name.
    I think that the question should be how can I use OFFSET relatevely to the address another cell indicates?

    Thanks.

  4. #4
    Registered User
    Join Date
    10-28-2009
    Location
    Israel
    MS-Off Ver
    Excel 2003
    Posts
    30

    Re: Cell as reference anchor to another sheet

    Add xls file...
    on sheet 2 the user should choose test name from sheet1, and the values of indicated test should be filled automaticaly.

    please advice how to do it.
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor jj72uk's Avatar
    Join Date
    03-22-2008
    Location
    Essex, England
    MS-Off Ver
    Work - Office 2000, Home - Office 2007E
    Posts
    360

    Re: Cell as reference anchor to another sheet

    There is probably a 'better' way...

    But...
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    10-28-2009
    Location
    Israel
    MS-Off Ver
    Excel 2003
    Posts
    30

    Re: Cell as reference anchor to another sheet

    Thanks,

    This is not really solves the problem as test1,test2,test3.... names are only an example. Actually there will be much more tests with different names, and it's not practical to make "if" for each

  7. #7
    Valued Forum Contributor jj72uk's Avatar
    Join Date
    03-22-2008
    Location
    Essex, England
    MS-Off Ver
    Work - Office 2000, Home - Office 2007E
    Posts
    360

    Re: Cell as reference anchor to another sheet

    If thats the case, maybe you can use a combination of INDEX and OFFSET?

  8. #8
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Cell as reference anchor to another sheet

    Here's what I did.
    First I named your data for each test. Names cannot have spaces so I named C2:E3 "test1", C6:E7 "test2",etc.

    Then on Sheet 2, I selected E4:G6 and entered
    Please Login or Register  to view this content.
    entering it as an array (CNTRL + SHFT + ENTER). Then enter your test name in Sheet2!D3 and the appropriate results and graph are populated. See example.
    If you do not have spaces in your test names, you can remove the SUBSTITUTE Function and the INDIRECT Function.
    Attached Files Attached Files
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  9. #9
    Registered User
    Join Date
    10-28-2009
    Location
    Israel
    MS-Off Ver
    Excel 2003
    Posts
    30

    Re: Cell as reference anchor to another sheet

    Thanks for the answers, but....
    it is not solving the problem, because the list of the tests is very long (5 tests is only for example), various so it will be impossible to name each data of each test.
    BTW test names can have names without numbers, just text as "stability test" so it is impossible to use numbers as reference location.

    anyone have other idea how to do it

    Thanks.

  10. #10
    Registered User
    Join Date
    10-28-2009
    Location
    Israel
    MS-Off Ver
    Excel 2003
    Posts
    30

    Re: Cell as reference anchor to another sheet

    Can it be that none can help me with this?

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

    Re: Cell as reference anchor to another sheet

    Based on your very first sample file.

    Sheet2!E4: =INDEX(Sheet1!C:C,MATCH($D$3,Sheet1!$A:$A,0)+ROWS(E$4:E4))
    copied across matrix E4:G5

  12. #12
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,431

    Re: Cell as reference anchor to another sheet

    This thiis,

    =OFFSET(INDIRECT("Sheet1!"&ADDRESS(MATCH(Sheet2!$D$3,Sheet1!$A:$A,0),1)),$I4,E$7)

    E7:G7 contains the values 1,2,3 which is the column offset
    I4:I5 contains the values 1,2 which is the row offset
    Attached Files Attached Files
    Cheers
    Andy
    www.andypope.info

  13. #13
    Registered User
    Join Date
    10-28-2009
    Location
    Israel
    MS-Off Ver
    Excel 2003
    Posts
    30

    Re: Cell as reference anchor to another sheet

    I think that all methods using MATCH are not what I need, because several tests can have the same name so MATCH function will choose always the first one. this is the main problem of this thread!

    asking for your help .... despaired

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

    Re: Cell as reference anchor to another sheet

    at which point we revert to the question in your other thread...

    if you have zero means by which to determine which "test" you need how exactly do you expect Excel to be able to work this out ?

    Think of your question as reading like:

    "I've thought of a number between 1 and 100. Please tell me the number."

    It's seemingly arbitrary... if the process is devoid of logic it can not be put into logical form.

  15. #15
    Registered User
    Join Date
    10-28-2009
    Location
    Israel
    MS-Off Ver
    Excel 2003
    Posts
    30

    Re: Cell as reference anchor to another sheet

    it's not arbitrary because I'm indicating the exact location of second test name (cell A5) nevertheless there are several tests with the same name(see in attached file). The script should take this location go 2 colomns right, 1 row down and copy the 6 cells with results .

    I thought it won't be so difficault... maybe my explanaition of the problem was wrong. I hope now I explained it better, so the script shouldn't guess nothing
    Attached Files Attached Files

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

    Re: Cell as reference anchor to another sheet

    So you're populating Sheet2!D3 by what means exactly ?
    (ie to generate the link to Sheet1!A5)

    You would need to use VBA if you wish to use the range reference in D3 as the base point for retrieving the other values given the value itself is not sufficient.

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

    Re: Cell as reference anchor to another sheet

    Here is a possible UDF approach for you

    Please Login or Register  to view this content.
    the above stored in a Module could be called from your cells along the lines of:

    Please Login or Register  to view this content.
    If you alter the link in D3 you should find the XY values update accordingly.

  18. #18
    Registered User
    Join Date
    10-28-2009
    Location
    Israel
    MS-Off Ver
    Excel 2003
    Posts
    30

    [SOLVED]: Cell as reference anchor to another sheet

    WOW...

    THANK YOU VERY VERY MUCH

    I really appreciate it, you really helped me

+ 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