Lookup a date between other dates

S

spalmarez

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


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

Harlan Grove

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

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top