View Single Post
  #1   Report Post  
tikrit tikrit is offline
Junior Member
 
Posts: 1
Default Nearest one or two or three numbers in a row of data

Hi Everyone,

I have a problem today. I tried in different ways but could not solve it.

Lest's say I have the following row of Data:

61 49 55 45 48 69 79 51

I need a code (Excel formula) that find the closest two or three numbers to 50 but lower than 50 (which in this case are 49 48 and 45)

I will then add them to each other and put the result in a single cell

Notes : the data must be in Row. Mine is Excel 2010.

Thanks in Advance for your help