How to convert Excel values into buckets?

后端 未结 12 2346
青春惊慌失措
青春惊慌失措 2021-02-20 15:48

I have a set of data in Excel and in one column is a estimate (number of weeks)

I want an Excel formula to bucket it into

  • Small
  • Medium
  • La
12条回答
  •  不要未来只要你来
    2021-02-20 16:14

    I prefer to label buckets with a numeric formula. If the bucket size is 10 then this labels the buckets 0,1,2,...

    =INT(A1/10)
    

    If you put the bucket size 10 in a separate cell you can easily vary it.

    If cell B1 contains the bucket (0,1,2,...) and column 6 contains the names Low, Medium, High then this formula converts a bucket to a name:

    =INDIRECT(ADDRESS(1+B1,6))
    

    Alternatively, this labels the buckets with the least value in the set, i.e. 0,10,20,...

    =10*INT(A1/10)
    

    or this labels them with the range 0-10,10-20,20-30,...

    =10*INT(A1/10) & "-" & (10*INT(A1/10)+10)
    

提交回复
热议问题