ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Lookup a date between other dates (https://www.excelbanter.com/excel-worksheet-functions/5691-lookup-date-between-other-dates.html)

spalmarez

Lookup a date between other dates
 

Thanks for your everyone's help.
I ended up making a another tab with the dates start and end to get the
dates that I needed.
SEARCH NUMBER START END
138377 1 25-Jan-05 15-Feb-05


=IF(ISBLANK(C4),"",IF(AND(A4=LOOKUP(CONCATENATE(C 4&A4),CYCLE!A:C),A4<LOOKUP(CONCATENATE(C4&A4),CYCL E!A:D)),LOOKUP(CONCATENATE(C4&A4),CYCLE!A:C),""))


--
spalmarez
------------------------------------------------------------------------
spalmarez's Profile: http://www.excelforum.com/member.php...o&userid=15961
View this thread: http://www.excelforum.com/showthread...hreadid=274366


Harlan Grove

"spalmarez" wrote...
....
=IF(ISBLANK(C4),"",IF(AND(A4=LOOKUP(CONCATENATE( C4&A4),CYCLE!A:C),
A4<LOOKUP(CONCATENATE(C4&A4),CYCLE!A:D)),LOOKUP(C ONCATENATE(C4&A4),
CYCLE!A:C),""))


No! Don't use CONCATENATE(C4&A4). Just use C4&A4.




All times are GMT +1. The time now is 05:46 PM.

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