#1   Report Post  
Posted to microsoft.public.excel.misc
ki
 
Posts: n/a
Default 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   Report Post  
Posted to microsoft.public.excel.misc
Jan Karel Pieterse
 
Posts: n/a
Default 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
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Group and Count Text Data More Efficiently JonOfAllTrades Excel Worksheet Functions 1 March 8th 06 09:40 PM
ranking query JaimeTimbrell Excel Discussion (Misc queries) 2 February 16th 06 08:09 AM
Inserting a new line when external data changes Rental Man Excel Discussion (Misc queries) 0 January 11th 06 07:05 PM
Pivot table/chart - can I use data ranges? why will it not group d Forrest Charts and Charting in Excel 0 January 10th 06 07:26 PM
Subtotal of Subtotal displays Grand Total in wrong row Thomas Born Excel Worksheet Functions 5 January 6th 05 01:46 PM


All times are GMT +1. The time now is 04:48 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"