+ Reply to Thread
Results 1 to 2 of 2

Lookup using condition

  1. #1
    Registered User
    Join Date
    11-20-2008
    Location
    UAE
    Posts
    5

    Lookup using condition

    I am Stuck with a date related problem using Lookup. I have got data in Sheet 1 like this:

    Item Date Qty
    A 10-10-08 5unit
    B 12-11-08 4unit

    I have another Sheet with details of all transaction related to items . something like below:
    Item Document Date Qty
    A GRN-001 05-08-08 10unit
    A GRN-081 19-09-08 2unit
    A GRN-085 21-10-08 12unit
    A GRN-090 04-11-08 11unit
    B GRN-021 15-08-08 8unit
    B GRN-088 21-09-08 5unit

    Now the challange for me is to look for 1st sheet item into the 2nd sheet data and get the document no. and date which are immediately before the corresponding date of the item in 1st sheet.

    In other words, for item "A" in 1st sheet ,I have to get document no. and date from 2nd sheet which should be GRN-081 and 19-09-08

    I tried working with vlookup and date function but in vain.

    Plz suggest me some solution how to do this.

    Thanks
    Shabbir
    Last edited by VBA Noob; 11-20-2008 at 01:37 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    08-26-2008
    Location
    singapore
    Posts
    626

    See the attachment

    I think this is what you need
    Attached Files Attached Files
    I need your support to add reputations if my solution works.


+ 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