harry
harry

Reputation: 11

Search for a particular date in sheet 1 with FROM and TO dates in 2 columns and then paste data from a column in same row in sheet 1 into sheet 2

I am trying to get this formula to work but can't here is link:

https://docs.google.com/spreadsheets/d/1PmUqg-G-TEZhTFj_viqy3XY0KSiJJiVVGDcN8VV57uI/edit?usp=sharing

Array Formula to Lookup Date Between Two Dates:
Master Formula:

=ArrayFormula(IF(LEN(F2:F),(VLOOKUP(F2:F,{row(indirect("A"&A2):indirect("A"&B5)),transpose(split(join("",(rept(C2:C5&"|",(B2:B5-A2:A5)+1))),"|"))},2,FALSE)),))

Upvotes: 1

Views: 244

Answers (1)

player0
player0

Reputation: 1

try:

=ARRAYFORMULA(IFNA(VLOOKUP(F2:F, {A2:A, C2:C}, 2, 1)))

0

Upvotes: 1

Related Questions