Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
dazman
 
Posts: n/a
Default Vlookup but also equal to and greater than?


Hi,

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=393674

  #2   Report Post  
Barb Reinhardt
 
Posts: n/a
Default

If it were me, I'd set up several pieces to get the function you want.

1) Do the lookup to get the "date" you want.
2) In another cell (I say this because it keeps me organized), create the if
statement you want to compare dates.

Once you get the pieces to work, copy the VLOOKUP section into the IF
function. If this is as clear as mud, let me know.


"dazman" wrote in
message ...

Hi,

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=393674



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
if greater then 99 then 1 if greater then 199 then two N.R. Excel Worksheet Functions 2 June 23rd 05 06:14 PM
Help with IF then ELSE and VLOOKUP Pank Excel Discussion (Misc queries) 12 June 1st 05 02:20 PM
How do I access data stored in a SQL server for vlookup function? M.Heer Excel Worksheet Functions 8 May 12th 05 09:51 PM
Addition to Turn cell red if today is greater or equal to date in cell Rich New Users to Excel 2 December 9th 04 03:06 AM
Turn cell red if today is greater or equal to date in cell Rich New Users to Excel 2 December 7th 04 11:50 PM


All times are GMT +1. The time now is 11:55 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"