How to convert Excel values into buckets?

后端 未结 12 1304
青春惊慌失措 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
  • 2021-02-20 15:54

    Maybe this could help you:


    Just replace the values and the text to small, medium and large.

    0 讨论(0)
  • 2021-02-20 15:56

    Here is a solution which:

    • Is self contained
    • Does not require VBA
    • Is not limited in the same way as IF regarding bucket maximums
    • Does not require precise values as LOOKUP does




    Replace [INPUT_VALUE] with the appropriate cell reference and make sure to press Ctrl+Shift+Enter as this is an array formula.

    Each of the array constants can be expanded to be arbitrarily long; as long as the formula does not exceed Excel's maximum of 8,192 characters. The first constant should contain the return values, the second should contain ordered thresholds,and the third should simply be ascending integers.

    0 讨论(0)
  • 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.


    0 讨论(0)
  • 2021-02-20 15:59

    You're looking for the LOOKUP function. please see the following page for more info:

    Data Buckets (in a range)

    0 讨论(0)
  • 2021-02-20 15:59

    If all you need to do is count how many values fall in each category, then this is a classic statistics question and can be very elegantly solved with a "histogram."

    In Excel, you use the Data Analysis Add-In (if you don't have it already, refer to the link below). Once you understand histograms, you can segregate your data into buckets - called "bins" - very quickly, easily adjust your bins, and automatically chart the data.

    It's three simple steps: 1) Put your data in one column 2) Create a column for your bins (10, 20, 30, etc.) 3) Select Data --> Data Analysis --> Histogram and follow the instructions for selecting the data range and bins (you can put the results into a new worksheet and Chart the results from this same menu)

    0 讨论(0)
  • 2021-02-20 15:59

    If conditions is the best way to do it. If u want the count use pivot table of buckets. It's the easiest way and the if conditions can go for more than 5-6 buckets too

    0 讨论(0)