ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   HLOOKUP Can't Search by Lookup Value (https://www.excelbanter.com/excel-programming/413555-hlookup-cant-search-lookup-value.html)

AMaleThing

HLOOKUP Can't Search by Lookup Value
 
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?

Nayab

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

AMaleThing

HLOOKUP Can't Search by Lookup Value
 
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


Is there a way to change the cell be a date and not a date-String. My
cell contains a reference (=E1) to another worksheet.


All times are GMT +1. The time now is 11:29 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com