+ Reply to Thread
Results 1 to 3 of 3

Vlookup against 2 criteria

  1. #1
    Forum Contributor beeawwb's Avatar
    Join Date
    01-04-2004
    Location
    Perth, WA, Australia
    MS-Off Ver
    Microsoft Office Excel 2003 (11.8146.8221) SP2
    Posts
    105

    Vlookup against 2 criteria

    Hi everybody,

    I've been asked to see if this is possible, and Vlookup is the only way I can think of off the top of my head.

    What I need to do is this.

    I have 2 tables. In table 1, I have incident dates, and builders assigned, on 1 line.

    In table 2, I have an XY table, with Builders, Reporting periods, and ranks. E.g.
    -----------Period1--Period2
    Builder 1--Gold----Silver---

    What I need to do is lookup the builder and incident date in table 1, and match it to the rank for the period that date corresponds to.

    For example. On 12/Jan/2008, Builder 1 was assigned to a job. 12/Jan/2008 is within period 2 (Nov 07-Jan 08), so the function should return "Silver"

    I'm pretty sure this is going to be a bit more complex than a simple VLookup, potentially combining functions (Maybe matching a Vlookup and a HLookup?) but I'm not sure where to start. Your assistance and expertise is greatly appreciated.

    -Bob

    Edit: After some experimenting, A Vlookup combined with a Match is working fine, I just need to figure out how to format my dates. For example, how do I match 01/01/08 with "01/11/2007-31/01/2008"?
    Last edited by beeawwb; 03-26-2008 at 09:15 PM.

  2. #2
    Forum Contributor
    Join Date
    02-27-2008
    Posts
    199
    Can you post a copy of your sheet to the forum? It is very likely that there is an easy solution to your question, but without knowing what date ranges you are dealing with and what cells contain the data it is hard to give you an absolute answer.

  3. #3
    Forum Contributor beeawwb's Avatar
    Join Date
    01-04-2004
    Location
    Perth, WA, Australia
    MS-Off Ver
    Microsoft Office Excel 2003 (11.8146.8221) SP2
    Posts
    105
    I've attached some sample data (essentially exactly what I'm working with, but with names changed)

    The clunky formula I put together which at least returns a result is in F17 F18 and F19.

    -Bob
    Attached Files Attached Files

+ 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