I have this formula
-=IF(ISERROR(MATCH($B$1,A:A,0)),"not found",INDEX(A:A,MATCH($B$1,A:A,0)-1))
=IF(ISERROR(MATCH($B$1,A:A,0)),"not found",INDEX(A:A,MATCH($B$1,A:A,0)))
=IF(ISERROR(MATCH($B$1,A:A,0)),"not found",INDEX(A:A,MATCH($B$1,A:A,0)+1))
It will let me type a number in B1 and search my list of numbers in A1.It returns the matching number plus the number 1 up and 1 down from it.
It only returns 1 instance of matching numbers. I need to modify it to return every match in my list with the 1 up and 1 down plus matching number because there are usually more than 1 matches in my list.
-=IF(ISERROR(MATCH($B$1,A:A,0)),"not found",INDEX(A:A,MATCH($B$1,A:A,0)-1))
=IF(ISERROR(MATCH($B$1,A:A,0)),"not found",INDEX(A:A,MATCH($B$1,A:A,0)))
=IF(ISERROR(MATCH($B$1,A:A,0)),"not found",INDEX(A:A,MATCH($B$1,A:A,0)+1))
It will let me type a number in B1 and search my list of numbers in A1.It returns the matching number plus the number 1 up and 1 down from it.
It only returns 1 instance of matching numbers. I need to modify it to return every match in my list with the 1 up and 1 down plus matching number because there are usually more than 1 matches in my list.
Attachments
-
14 KB Views: 113