+ Reply to Thread
Results 1 to 5 of 5

Formula to return in which range of values most nbrs fall !??

  1. #1
    Registered User
    Join Date
    02-23-2004
    Posts
    64

    Formula to return in which range of values most nbrs fall !??

    Hi all ,

    If A1= 2
    A2= 3
    A3= 5
    A4= 8
    A5= 2.5
    A6= 4.3

    1) First,I need a formula in A7 to group the availabe numbers into ranges of whatever increment i need for example in this case if i choose increment 1 the formula should return (2;3) (4;5)and 8 . the nbr 2.5 is in between 2 and 3 while the nbr 4.3 is between 4 & 5 and nbr 8 is alone

    2) A formula to return the most frequent range number whether it is (2;3)(4;5) or 8

    Joining all in one formula the result should be (2;3) cause the numbers in the range A1:A6 mostly fall between that range.

    Million thanks for your support

  2. #2
    Forum Contributor Portuga's Avatar
    Join Date
    02-20-2004
    Location
    Portugal
    MS-Off Ver
    365
    Posts
    852
    Hi,

    Maybe this formula can be simplified, but it works.

    Please Login or Register  to view this content.
    Remember, you must hold down the Ctrl and Shift keys then hit enter to enter this formula correctly]

    You will see these symbols {} wrap the formula
    Last edited by Portuga; 04-03-2008 at 02:53 PM.
    If you found the solution to your question. Mark the thread as "Solved"
    Thank everyone that helped you with a valid solution by clicking on their

    There is no such thing as a problem, only a temporary lack of a solution

  3. #3
    Registered User
    Join Date
    02-23-2004
    Posts
    64
    The formula worked good for the data given but it could not be applied to other given data such as

    B1=425 ; B2= 426.5; B3= 430; B4= 438; B5= 435; B6= 427; B7= 431

    Thanks for the help !

  4. #4
    Forum Contributor Portuga's Avatar
    Join Date
    02-20-2004
    Location
    Portugal
    MS-Off Ver
    365
    Posts
    852
    You can adapt the formula to look at cell values rather that coding the values in the formula.

    Ex:

    IF(AND(SUM(($A$1:$A$6>=2)
    can become
    IF(AND(SUM(($A$1:$A$6>=B2)

    and so on

  5. #5
    Registered User
    Join Date
    02-23-2004
    Posts
    64
    In your formula there are numbers that do not refer to cells in the range A1:A6 and that because you wanted to create a range of value for ex nr 4 isnt in the given data though exists in the formula so i couldnt adjust it manually ,any way to be solved by formulas no matter if the data is sorted or whatever numbers it includes ???

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1