+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Registered User
    Join Date
    06-09-2009
    Location
    england
    MS-Off Ver
    Excel 2003
    Posts
    5

    going to specified row

    this is hard to explain, I have two sheets.
    SHEET 1:
    A B C
    1 HM32498 BlaBla1 John Doe
    2 HM34254 BlaBla2 Jane Doe

    SHEET 2:
    A B C D
    1 John Doe ????? BlaBla2 2
    2 Jane Doe ????? BlaBla1 1

    its much bigger than that but this is enough to explain. There is actually 202 rows of data in mine but w/e. I have a formula to look in row C and compare it with row B then output the row number which it is the same (Column D):
    (=MATCH(D3,'Module List'!B$5:B$202,0)+4)
    Now i need the B column on SHEET 2 to tell me the right code, i already have the row number i need. So in row B i need something like:
    ='SHEET 1'!A(D1)
    so it will simply output the column A from with the row number in D.
    did i make that sound harder than it is? sorry
    hope you guys can help
    thanks
    Sam

  2. #2
    Valued Forum Contributor
    Join Date
    11-11-2008
    Location
    Euro
    MS-Off Ver
    2003, 2007
    Posts
    355

    Re: going to specified row

    You should use INDIRECT function
    try:
    PHP Code:
    =INDIRECT("'Sheet 1'!A"&D1
    Last edited by DonkeyOte; 06-09-2009 at 07:57 AM. Reason: removed unncessary quote

  3. #3
    Forum Moderator DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Suffolk, UK
    MS-Off Ver
    2002, 2007 & 2010
    Posts
    21,379

    Re: going to specified row

    tigertiger please do not quote whole posts - there is no need for it and it simply clutters the board. thanks

  4. #4
    Registered User
    Join Date
    06-09-2009
    Location
    england
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: going to specified row

    #REF! error
    in the show calculation it looks ok. No idea whats wrong

  5. #5
    Forum Moderator DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Suffolk, UK
    MS-Off Ver
    2002, 2007 & 2010
    Posts
    21,379

    Re: going to specified row

    If the Sheet name is not variable don't use INDIRECT as it is Volatile, rather use INDEX:

    B1: =INDEX(Sheet1!A:A,D1)
    copy down

  6. #6
    Registered User
    Join Date
    06-09-2009
    Location
    england
    MS-Off Ver
    Excel 2003
    Posts
    5

    Re: going to specified row

    works perfectly thanks donkey

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.2.0