+ Reply to Thread
Results 1 to 3 of 3

Search on sheet grab cell/reference value to offset

  1. #1
    Registered User
    Join Date
    12-04-2008
    Location
    notta
    Posts
    21

    Search on sheet grab cell/reference value to offset

    Ok I have 2 sheets.

    Sheet 1 has Full names with data
    ex.
    | My Name | Data1 | Data2 | Data3 | etc

    Sheet 2 has Full names as well, but I want to interpret that data.
    | My Name | Interpreted Data1 | Interpreted Data2 | Interpreted Data3 | etc

    I can physcially due this formula

    Vlookup('Sheet1'!B2, {"data 1","interpreted data 1";"data 2", "interpreted data 2",etc},2,0}

    this would get SUPER tedius to do based on the amount of data and cells

    Is there a function/way to take the name and search SHEET 1 for the same name then offset from that position.

    Sheet 1
    A1: My Name B1: Data

    Sheet 2

    A5: My Name B5: Interpreted Data

    So basic example for sheet 2
    =Vlookup(Search(A5,Sheet1) then offset it, {data,data,data,data...etc},2,0)

    Anysuggestions would be great
    Last edited by ExcelNoob2008; 06-17-2011 at 02:06 PM.

  2. #2
    Registered User
    Join Date
    12-04-2008
    Location
    notta
    Posts
    21

    Re: Search on sheet grab cell/reference value to offset

    OK I got somewhere at least...

    If i use=ADDRESS(MATCH(B8,A1:A5,0),1,4)

    A1: Joe B1: Data1
    A2: Bob B2: Data2
    A3: Ray B3: Data3


    B8:Name I want.. for testing lets use RAY.

    So when I use the above command it finds RAY and gives me the response A3

    I tried using OFFSET, but this is not working..if i use
    =Offset(ADDRESS(MATCH(B8,A1:A5,0),1,4),0,1) its supposed to give me the value in B3 its not working.

    If i manually type it in the equation =Offset(A3,0,1) then it gives me the contents of B3 like it should.

    I am trying to combine this with VLOOKUP to replace/interpret values...DO i have to use a VALUE function to use the function/cells as text.. kinda like VB with Val(TEXTBOX1.TEXT)?????

    thanks any assistance would be great

  3. #3
    Registered User
    Join Date
    12-04-2008
    Location
    notta
    Posts
    21

    Re: Search on sheet grab cell/reference value to offset

    Well I did some more research (actually alot). I noticed ADDRESS can't be used to get information, just returns the address, but can't be used in a forumula to REFERENCe a cell. If you directly type B3 it works.. but using Address/Match to get the B3 won't work in the forumula.

    I used..
    INDEX(cell range adjacent,MATCH(search text,cellrange to search for text,0)

    this actually returned the value
    then with vlookup i was able to interpret it.

    =VLOOKUP(INDEX(B$1:B$5,MATCH(B7,$A$1:$A$5,0)),{my array for vlookup.},2,0)

    I hope this helps someone else.

+ 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