+ Reply to Thread
Results 1 to 4 of 4

VLOOKUP and OFFSET

  1. #1
    Registered User
    Join Date
    03-05-2007
    Posts
    4

    Angry VLOOKUP and OFFSET

    My data appears as follows:

    Plan Item
    1 123
    1 124
    1 125
    2 132
    2 133
    2 134
    2 135

    I want Excel to search for a particular plan and return the corresponding item. SO..I have a vlookup to do that.

    Next I want to display the following items attached to that plan in adjacent columns, for example:

    Plan Item (using VLOOKUP) Item 2 Item 3
    1 123 124 125

    For this, I plan on using an OFFSET function. I want to nest it in an IF function so I can say If the item using vlookup equals an item in the original column, return the next item (directly underneath).

    This is what I have come up with:

    If(Item(using Vlookup) = Item, OFFSET(Item; COLUMN()-2 *1,0; 0)

    That is giving me a volatile error. Please help! What am I doing wrong???

  2. #2
    Forum Contributor
    Join Date
    03-14-2006
    Location
    Pakistan
    Posts
    1,791

    Lightbulb

    Quote Originally Posted by renita8781
    My data appears as follows:

    Plan Item
    1 123
    1 124
    1 125
    2 132
    2 133
    2 134
    2 135

    I want Excel to search for a particular plan and return the corresponding item. SO..I have a vlookup to do that.

    Next I want to display the following items attached to that plan in adjacent columns, for example:

    Plan Item (using VLOOKUP) Item 2 Item 3
    1 123 124 125

    For this, I plan on using an OFFSET function. I want to nest it in an IF function so I can say If the item using vlookup equals an item in the original column, return the next item (directly underneath).

    This is what I have come up with:

    If(Item(using Vlookup) = Item, OFFSET(Item; COLUMN()-2 *1,0; 0)

    That is giving me a volatile error. Please help! What am I doing wrong???
    see the attached file and let me know if it helps.
    Attached Files Attached Files

  3. #3
    Registered User
    Join Date
    03-05-2007
    Posts
    4

    Thanks!

    Starguy, once again you have managed to help me. Thanks again!

  4. #4
    Forum Contributor
    Join Date
    03-14-2006
    Location
    Pakistan
    Posts
    1,791

    Lightbulb

    Quote Originally Posted by renita8781
    Starguy, once again you have managed to help me. Thanks again!
    you're welcome here all the time.
    and thank your for the feedback.

+ 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