Lookup most close number.

  • Thread starter Thread starter Cactus
  • Start date Start date
C

Cactus

I want to lookup a number it is most close zero in a numbers group.
and choice that number.

-10 -7 2 -10 -17 -7

for example. that 2 is most close 0 in group.

is exist a function to do that?

or must write my function by VBA.

thanks.
 
Isn't it just

=MIN(ABS(A1:F1))

which is an array formula, it should be committed with Ctrl-Shift-Enter, not
just Enter.

--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)
 

Ask a Question

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.

Ask a Question

Back
Top