+ Reply to Thread
Results 1 to 8 of 8

Formula for locating cell in another sheet?

  1. #1
    Registered User
    Join Date
    04-07-2008
    Location
    Adelaide, SA
    Posts
    87

    Formula for locating cell in another sheet?

    Hi,
    I am having trouble with creating a formula that locates a word that is entered in sheet1, it then finds that word on sheet2, then moves across 3 cells and down 4 cells in sheet2, and then prints the number found in that cell back into another cell in sheet 1. I hope that makes sense. Hopefully someone out there can help.

    Yappa.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582
    Yes, it can be done (I think) but need a little more information.
    1. that locates a word that is entered in sheet1,
    By this do you mean looks in a specific cell for the word? Where are these words? (or is this a single occurance of the word?)

    2. then finds that word on sheet2,
    Do you have a specific range (e.g. A2:G500)??

    The final bit should be managable with the OFFSET function.

    ChemistB

  3. #3
    Registered User
    Join Date
    04-07-2008
    Location
    Adelaide, SA
    Posts
    87
    In sheet1, the user writes a word in C2, the formula will then be written in D3, which uses the word entered in C2, searches for that word in Sheet2 over range A1:P100, then once it finds that word shifts over 3 cells and down 4 cells and returns the number found in that cell to D3 in sheet1. Hopefully that's a little clearer.

    Not to confuse you anymore, but i also forgot to mention once the cell in question has been found, it needs to add itself to the cell beneath it and divide by 2.

    Yappa.

  4. #4
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    Try...

    D3:

    =SUM(OFFSET(INDEX(Sheet2!A1:P100,MIN(IF(Sheet2!A1:P100=C2,ROW(Sheet2!A1:P100)-ROW(Sheet2!A1)+1))+4,MATCH(C2,INDEX(Sheet2!A1:P100,MIN(IF(Sheet2!A1:P100=C2,ROW(Sheet2!A1:P100)-ROW(Sheet2!A1)+1)),0),0)+3),0,0,2))

    ...confirmed with CONTROL+SHIFT+ENTER.

    Hope this helps!

  5. #5
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582
    I'm having trouble searching through a 2 dimensional array for your word and the part that you just added on would require VBA so I'm going to hand this one over to someone else.

    ChemistB

  6. #6
    Registered User
    Join Date
    04-07-2008
    Location
    Adelaide, SA
    Posts
    87
    Thanks for your time Domenic and ChemistB. I'll have a look at this formula tomorrow and get back to you.

    Yappa

  7. #7
    Forum Moderator davesexcel's Avatar
    Join Date
    02-19-2006
    Location
    Regina
    MS-Off Ver
    MS 365
    Posts
    13,483
    Quote Originally Posted by Yappa
    In sheet1, the user writes a word in C2, the formula will then be written in D3, which uses the word entered in C2, searches for that word in Sheet2 over range A1:P100, then once it finds that word shifts over 3 cells and down 4 cells and returns the number found in that cell to D3 in sheet1. Hopefully that's a little clearer.

    Not to confuse you anymore, but i also forgot to mention once the cell in question has been found, it needs to add itself to the cell beneath it and divide by 2.

    Yappa.
    I am uncertain about the range you want because if you are looking for text, in A1:P100, if found in column A how will you add two text together and divide them by 2?
    the most I can see is A1:C100, or you will be unable to create a formula
    Please Login or Register  to view this content.

  8. #8
    Forum Expert
    Join Date
    06-18-2004
    Location
    Canada
    MS-Off Ver
    Office 2016
    Posts
    1,474
    Quote Originally Posted by Yappa
    Thanks for your time Domenic and ChemistB. I'll have a look at this formula tomorrow and get back to you.

    Yappa
    You're very welcome! By the way, I just realized that the sum needs to be divided by 2, so add...

    /2

    ...at the end of the formula.

    Hope this helps!

+ 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