LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Lookup/Date Question

My range of data is as follows:
A B C D E F G
1 5/1/2009 11/1/2009 11/1/2010 11/1/2011 11/1/2012 11/1/2013 11/1/2014
2 YES YES YES YES YES YES YES


The dates are in Row 1 and the Corresponding "YES" is in row 2 below each
date.

I then have a list of dates, some of which appear in the above range and
some that don't, i.e. 5/1/2009, 6/1/2009, 7/1/2009, 8/1/2009, 9/1/2009,
10/1/2009, 11/1/2009.

What I am trying to do is return the value below the date (YES in this case)
if the date I am looking up is in the range, and if it is not in the range,
to return something else, like "NO". I have been trying to use a combination
of the IF and HLOOKUP functions, but in the cases where the date is not in
the range (like 6/1/2009) it always returns #N/A.

The formula I have tried is something like =IF(HLOOKUP(date to look up i.e.
6/1/2009,$A$1:$G$2,2,FALSE)="YES",HLOOKUP(date to look up i.e.
6/1/2009,$A$1:$G$2,2,FALSE),"NO")

Any help would be greatly appreciated. Thanks.
 
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
Possibly a loaded question, but I think mileslit Excel Discussion (Misc queries) 1 September 10th 05 01:18 AM
How do I find and replace a question mark in Excel? Ranpalandil Excel Discussion (Misc queries) 1 September 7th 05 10:20 PM
Newbie With A Question Michael Excel Worksheet Functions 0 July 28th 05 11:50 PM
Anybody Help with previous question Anthony Excel Discussion (Misc queries) 1 July 26th 05 01:26 PM
Hints And Tips For New Posters In The Excel Newsgroups Gary Brown Excel Worksheet Functions 0 April 15th 05 05:47 PM


All times are GMT +1. The time now is 10:01 AM.

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

About Us

"It's about Microsoft Excel"