+ Reply to Thread
Results 1 to 2 of 2

How to group data?

  1. #1
    ki
    Guest

    How to group data?

    Hi.

    Example: list of numeric data: 345, 123, 154, 234,.....(milimeters)
    When number is between 110 and 130 then it is 120, when between 131 and 150
    then it is 140, and so on.
    The result should be for the same list: 340, 120, 160, 240,...(milimeters)
    It means that I need to group datas in classes of 20 milimeters.

    Is there some short way to get it? I tryed something with many, many IFs,
    but it is not so simple.
    Can anyone help me?
    Thanx.

    ki



  2. #2
    Jan Karel Pieterse
    Guest

    Re: How to group data?

    Hi Ki,

    > Example: list of numeric data: 345, 123, 154, 234,.....(milimeters)
    > When number is between 110 and 130 then it is 120, when between 131 and 150
    > then it is 140, and so on.
    > The result should be for the same list: 340, 120, 160, 240,...(milimeters)
    > It means that I need to group datas in classes of 20 milimeters.


    If your number is in cell A1:

    =INT(A1/20+0.5)*20

    Regards,

    Jan Karel Pieterse
    Excel MVP
    http://www.jkp-ads.com


+ 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