How to convert Excel values into buckets?

后端 未结 12 2338
青春惊慌失措
青春惊慌失措 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 15:57

    A nice way to create buckets is the LOOKUP() function.

    In this example contains cell A1 is a count of days. The vthe second parameter is a list of values. The third parameter is the list of bucket names.

    =LOOKUP(A1,{0,7,14,31,90,180,360},{"0-6","7-13","14-30","31-89","90-179","180-359",">360"})

提交回复
热议问题