+ Reply to Thread
Results 1 to 4 of 4

Non-unique value VLOOKUP

  1. #1
    Registered User
    Join Date
    11-02-2004
    Posts
    6

    Non-unique value VLOOKUP

    I have a income statement that is broken into several similar sections as below:

    Company 1

    Revenue 1 $XXX
    Expense 1 $YYY
    Expense 2 $ZZZ

    Company 2

    Revenue 1 $XYX
    Expense 1 $ZYZ
    Expense 2 $XYY
    Expense 3 $ZXX

    and so forth with multiple more companies and expenses. Label are in column A and numbers are in column B.

    The company names are unique but the lines below each of the companies are not unique and I need to look up expense 2 for company 2. For example the Label "expense 2" might appear 50 times in column A.

    My first thought was to use vlookup on Company 2 and then offset to accomplish this but I will need this formula to work no mater the location of company 2 expense 2.

    For example on one income statement company 2 could be in cell A25 and there could be no expense 1 and in the next income statement company 2 could be in cell A100 and there could be an expense 1. Therefore offset will not work b/c it is not consistent across all sheets. Also this will be a monthly summary exercise that I need a formula to automatically pull, so sorting or using advanced sort is not the preferred way.

    Good news is that Company 2 and the expense I need to look up will always exist in column A and should be within 10 rows or so of Company 2.

    Basically what I need to do is have a vlookup that finds Company 2 and then defines the range of a second vlookup, based on Company 2's location, of about 10 rows to look for the first time expense 2 appears below company 2.

    Thank you for your help.

    Rob

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Non-unique value VLOOKUP

    Say you enter company name in F1 and Expense type in F2, then try:

    Please Login or Register  to view this content.
    adjust the $1000 row to your last row in entire range....
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Registered User
    Join Date
    11-02-2004
    Posts
    6

    Re: Non-unique value VLOOKUP

    That worked!

    Thanks!

  4. #4
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Non-unique value VLOOKUP

    Please mark your thread as Solved.

    How to mark a thread Solved
    Go to the first post
    Click edit
    Click Go Advanced
    Just below the word Title you will see a dropdown with the word No prefix.
    Change to Solved
    Click Save

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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