Selecting nearest under in a list

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

Guest

I have a list of numbers and i need to either highlight (using conditional
formatting)or display in another cell the nearest number under 10000

i.e

9854
9752
11254
10987
9974 <---------
10025

Help!!!!!
 
if your values are in column A then on the column B type this
=IF(A1=MAX(IF(A1:A6<10000,A1:A6)),A1,"")
and array enter it (Ctrl+shift+enter) instead of enter

This will place the value that is closest to 10K on column B
 
Try...

=MAX(IF(A1:A6<10000,A1:A6))

....confirmed with CONTROL+SHIFT+ENTER.

Hope this helps!
 
One way

=MAX(IF(A1:A6<=10000,A1:A6))

entered with ctrl + shift & enter
 

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