Forum Discussion
Can a LookUp Value in Vlookup be a condition?
- Feb 10, 2022
This is because your ranges don't begin in row 1. In F2:
=INDEX(A3:A13,MIN(IF(D3:D13>4,ROW(D3:D13)-ROW(D3)+1)))
and in F17:
=INDEX(A17:A27,MIN(IF(D17:D27>4,ROW(D17:D27)-ROW(D17)+1)))
=INDEX(A1:A100,MIN(IF(D1:D100>4,ROW(D1:D100))))
Modify the ranges as needed. If you don't have Microsoft 365 or Office 2021, confirm the formula with Ctrl+Shift+Enter.
- AShah16Feb 10, 2022Copper Contributor
Hello,
I tried the formula and got some errors. Any idea what could be wrong ?
The answer for first table should have been 0.3 but i got 0.4. The second one did not give a result. I have tried Ctrl+Shift+Enter as well
Thanks
- HansVogelaarFeb 10, 2022MVP
This is because your ranges don't begin in row 1. In F2:
=INDEX(A3:A13,MIN(IF(D3:D13>4,ROW(D3:D13)-ROW(D3)+1)))
and in F17:
=INDEX(A17:A27,MIN(IF(D17:D27>4,ROW(D17:D27)-ROW(D17)+1)))