Hello
Supposing you have a list of numbers in a column, and now you are required to find out the closest or nearest value(higher or equal) to a given value from the list of numbers.
How do you deal with it?
Book1.xlsx
Hello
Supposing you have a list of numbers in a column, and now you are required to find out the closest or nearest value(higher or equal) to a given value from the list of numbers.
How do you deal with it?
Book1.xlsx
Sort column A Largest to smallest and use:
Please Login or Register to view this content.
Ben Van Johnson
If I understand what you are after, the closest value is 108.
Regards,
Hansens 0ffice dot com
in an unsorted range try =small(a1:a62,countif(a1:a62,"<"&d1)+1)
"Unless otherwise stated all my comments are directed at OP"
Mojito connoisseur and now happily retired
where does code go ?
look here
how to insert code
how to enter array formula
why use -- in sumproduct
recommended reading
wiki Mojito
how to say no convincingly
most important thing you need
Martin Wilson: SPV
and RSMBC
I need higher or equal, can not be less
One way if using Excel 2010 or later...
=AGGREGATE(15,6,A1:A62/(A1:A62>=D1),1)
Biff
Microsoft MVP Excel
Keep It Simple Stupid
Let's Go Pens. We Want The Cup.
Thanks martindwilson,
seems that is works
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks