ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   vlookup using dates (https://www.excelbanter.com/excel-discussion-misc-queries/144321-vlookup-using-dates.html)

MH

vlookup using dates
 
User trying to find the value on a certain date can enter that date (a1).
vlookup will search column A for the requested date and then return the
associated value that is in column b.... Column A10:a100 = dates. Column
B10:b100= values... =vlookup(a1,a10:b100,2) returns #N/A


Teethless mama

vlookup using dates
 
=IF(COUNTIF(A10:A100,A1),VLOOKUP(A1,A10:B100,2,0), "not found")


"MH" wrote:

User trying to find the value on a certain date can enter that date (a1).
vlookup will search column A for the requested date and then return the
associated value that is in column b.... Column A10:a100 = dates. Column
B10:b100= values... =vlookup(a1,a10:b100,2) returns #N/A


MH

vlookup using dates
 
I was able to get the formula to work as: =vlookup(a1,a10:b100,2,False)
I believe format for date in a1 must be consistant with format for dates in
a10:a100

"MH" wrote:

User trying to find the value on a certain date can enter that date (a1).
vlookup will search column A for the requested date and then return the
associated value that is in column b.... Column A10:a100 = dates. Column
B10:b100= values... =vlookup(a1,a10:b100,2) returns #N/A



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

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