G
Guest
I am trying to find a function that will sort out numbers in a column (pos &
neg) and tell me wich one is closest to zero.
neg) and tell me wich one is closest to zero.
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
=INDEX(A1:A20,MATCH(TRUE,ABS(A1:A20)=MIN(IF(ABS(A1:A20)>0,ABS(A1:A20))),0))
Biff said:=INDEX(A1:A30,MATCH(TRUE,ABS(A1:A30)=MIN(ABS(A1:A30)),0))
Doesn't account for zero.
Just a slight tweak:
=INDEX(A1:A20,MATCH(TRUE,ABS(A1:A20)=MIN(IF(ABS(A1:A20)>0,ABS(A1:A20))),0))
Biff
Are you positive that the OP wanted it that way? <vbg>
I'm never sure of anything! (unless I see it in front of my face)
Biff
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.