number list compare

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

How do a compare a number to a list of numbers to get the next highest and
next lowest number?
 
jpmmschi said:
How do a compare a number to a list of numbers to get the next highest and
next lowest number?

Assuming that your list of numbers are in Column A...

Next lowest number:

=MAX(IF(A1:A10<B1,A1:A10))

Next highest number:

=MIN(IF(A1:A10>B1,A1:A10))

....where B1 contains the number being compared to. Both these formulas
need to be entered using CONTROL+SHIFT+ENTER.

Hope this helps!
 

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