View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Nayab Nayab is offline
external usenet poster
 
Posts: 62
Default HLOOKUP Can't Search by Lookup Value

On Jul 4, 12:42*pm, AMaleThing wrote:
I'm coming across a problem searching using a formula as my LOOKUP
Value. e.g.

If my formula is:
=HLOOKUP(A1, B1:C10, 2, FALSE)

In one test where A1 = the date 2008/01/01 *// HLOOKUP searches fine.

However, when A1 = a formula (i.e. =E1 or =today()) * // HLOOKUP
reports #N/A.

---

Is there a solution so I can contain a formula is cell A1 and HLOOKUP
will report?


If the range in which u r searching has the date as String and not as
Date then you will #N/A. If you enter the dates as dates, this will be
resolved