If number from first coulmn is found in the second column, it should return that number. If number from first coulmn is not found in the secound column, it should return closest possible min value
3 Answers
2
votes
In C1 enter the array formula:
=MAX(IF(B:B<=A1,B:B))
and copy downward:
Array formulas must be entered with Ctrl + Shift + Enter rather than just the Enter key. If this is done correctly, the formula will appear with curly braces around it in the Formula Bar.
NOTE:
Sorting is not required.
Array entry is not required if you are using Excel 365.



