+ Reply to Thread
Results 1 to 3 of 3

Vlookup but also consider equal to or greater than a valu

  1. #1
    Registered User
    Join Date
    08-04-2005
    Posts
    27

    Unhappy Vlookup but also consider equal to or greater than a valu

    Hi,

    Posted this in the wrong forum so repost here.

    I wonder if it is possible to use a Vlookup in conjunction with some logical expressions to not just match a specified value, but also return a value in the specified column if it is equal to or greater than a value?

    I have a main worksheet that looks like this:

    A B C
    Date Price Shares Owned
    06/08/2005 59.11
    05/08/2005 59.11
    04/08/2005 58.9
    …..


    I then have another worksheet that details dates when purchase transactions took place:

    A B C D E
    Ref Purchase Date No Shares Price Per Share Total Shares
    144 25/04/2005 50 53.3 50
    145 27/05/2005 25 54.94 75
    146 29/06/2005 25 56.37 100

    In my main worksheet, for each ‘Shares Owned’ Cell I would like to be able to perform a lookup against the purchase date and return the value in column E if the date is equal to or greater than the purchase date.

    Any help would be appreciated!

  2. #2
    Rob Hargreaves
    Guest

    Re: Vlookup but also consider equal to or greater than a valu

    If I get what you are saying then you could do the vlookup to display in one
    cell then use IF in another cell to display true or false or 1 or 0 in an
    adjacent cell then you can sort them to get the desired result

    Hope that helps

    Rob
    "dazman" <dazman.1tej2c_1123430720.7895@excelforum-nospam.com> wrote in
    message news:dazman.1tej2c_1123430720.7895@excelforum-nospam.com...
    >
    > Hi,
    >
    > Posted this in the wrong forum so repost here.
    >
    > I wonder if it is possible to use a Vlookup in conjunction with some
    > logical expressions to not just match a specified value, but also
    > return a value in the specified column if it is equal to or greater
    > than a value?
    >
    > I have a main worksheet that looks like this:
    >
    > A B C
    > Date Price Shares Owned
    > 06/08/2005 59.11
    > 05/08/2005 59.11
    > 04/08/2005 58.9
    > ...
    >
    >
    > I then have another worksheet that details dates when purchase
    > transactions took place:
    >
    > A B C D E
    > Ref Purchase Date No Shares Price Per Share Total Shares
    > 144 25/04/2005 50 53.3 50
    > 145 27/05/2005 25 54.94 75
    > 146 29/06/2005 25 56.37 100
    >
    > In my main worksheet, for each 'Shares Owned' Cell I would like to be
    > able to perform a lookup against the purchase date and return the value
    > in column E if the date is equal to or greater than the purchase date.
    >
    > Any help would be appreciated!
    >
    >
    > --
    > dazman
    > ------------------------------------------------------------------------
    > dazman's Profile:
    > http://www.excelforum.com/member.php...o&userid=25903
    > View this thread: http://www.excelforum.com/showthread...hreadid=393676
    >
    >





  3. #3
    Registered User
    Join Date
    08-04-2005
    Posts
    27

    Thanks - I added that logic to what the lookup wizard generated and it did the trick!

    Thanks - I added that logic to what the lookup wizard generated and it did the trick!

+ 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