#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Vlookup

I am trying to look up 2 dates (start and finish) I am using vlookup but it
seems that I can only have one date. I have created a calendar for my
project. Here is the formula I am using that works for one date. How would I
modify it to use both dates?
=VLOOKUP($D2,$CA$2:$CA$38,1,FALSE)
I am trying to make it so that it would be something like
=VLOOKUP($D2:E2,$CA$2:$CA$38,1,FALSE)
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 168
Default Vlookup

Can you give more info? Is D2 your desired start date to search for and E2
your desired end date to search for? Is the start date always in column CA?
What column has the end date? Your VLOOKUP is looking up a date and then
returning that date (returning column 1 returns the same thing you searched
for as instructed in D2, so how is that helpful?).

I believe you will eventually want to use SUMPRODUCT instead of VLOOKUP.
--
Please remember to indicate when the post is answered so others can benefit
from it later.


"Ron St Jean" wrote:

I am trying to look up 2 dates (start and finish) I am using vlookup but it
seems that I can only have one date. I have created a calendar for my
project. Here is the formula I am using that works for one date. How would I
modify it to use both dates?
=VLOOKUP($D2,$CA$2:$CA$38,1,FALSE)
I am trying to make it so that it would be something like
=VLOOKUP($D2:E2,$CA$2:$CA$38,1,FALSE)

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 6
Default Vlookup

D2 is my desired start date, and E2 is my desired finish date. Column CA is
Jan 1-31, so I am trying to see if my start date or finish date is in
January, I then want to drag the same formula to look in February, March, etc

"KC Rippstein" wrote:

Can you give more info? Is D2 your desired start date to search for and E2
your desired end date to search for? Is the start date always in column CA?
What column has the end date? Your VLOOKUP is looking up a date and then
returning that date (returning column 1 returns the same thing you searched
for as instructed in D2, so how is that helpful?).

I believe you will eventually want to use SUMPRODUCT instead of VLOOKUP.
--
Please remember to indicate when the post is answered so others can benefit
from it later.


"Ron St Jean" wrote:

I am trying to look up 2 dates (start and finish) I am using vlookup but it
seems that I can only have one date. I have created a calendar for my
project. Here is the formula I am using that works for one date. How would I
modify it to use both dates?
=VLOOKUP($D2,$CA$2:$CA$38,1,FALSE)
I am trying to make it so that it would be something like
=VLOOKUP($D2:E2,$CA$2:$CA$38,1,FALSE)

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 143
Default Vlookup

D2 is my desired start date, and E2 is my desired finish date. Column
CA is Jan 1-31, so I am trying to see if my start date or finish date
is in January, I then want to drag the same formula to look in
February, March, etc


Here's one way, but it doesn't use a lookup.

In a column of your choice, put this in row 1 and copy down to row 12:
=TEXT(DATE(2000,ROW(),1),"Mmmm")&
" "&
IF(MONTH($D$2)=ROW(),"Start ","")&
IF(MONTH($E$2)=ROW(),"End ","")

Modify to suit.
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
VLookUp - Does the VLookUp return the exact information? Cpviv Excel Worksheet Functions 2 October 28th 08 09:57 AM
Vlookup in vlookup - taking the result as array name SupperDuck Excel Worksheet Functions 2 June 2nd 07 11:05 AM
Combine VLOOKUP and IF function so #NA isn't returned as a value from VLOOKUP buffgirl71 Excel Discussion (Misc queries) 12 November 14th 06 11:36 PM
Vlookup -=VLOOKUP(F9,LookUp1!$A$2:$B$1504,2,FALSE) MikeR-Oz New Users to Excel 1 March 22nd 06 09:01 AM
Vlookup info being used without vlookup table attached? Excel Worksheet Functions 0 January 25th 05 10:43 AM


All times are GMT +1. The time now is 07:35 PM.

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"