INDEX()
Note: Because the number of bins will be an integer, choose Integer. You may want to either select a List (if you have specific numbers of bins) or a Range (if you would like more flexibility in deciding how many bins to create).
IF ([Number of Bins]/SIZE()>.5) AND (([Number of Bins]-1)/SIZE()<.5) THEN 2 ELSEIF [Number of Bins]/SIZE()>.5 THEN 1 ELSEIF ROUND((SIZE()/[Number of Bins])-10^(-10), 0) !=INT(SIZE()/[Number of Bins]) THEN INT((SIZE()/([Number of Bins])))+ 1 ELSE INT((SIZE()/([Number of Bins]))) END
IF INT(([Index]-.1)/[Size of Each Bin]) = [Number of Bins] THEN INT(([Index]-.1)/[Size of Each Bin]) ELSEIF INT(([Index]-.1)/[Size of Each Bin]) < [Number of Bins] THEN INT(([Index]-.1)/[Size of Each Bin])+1 ELSE [Number of Bins] END
This also works for graphs. To create a bar chart using the view you created above, simply drag the Sales field from Text to the Columns shelf. An example can be found in the workbook "Choosing the number of bins" attached to this article.
001453744
252 KB

We use three kinds of cookies on our websites: required, functional, and advertising. You can choose whether functional and advertising cookies apply. Click on the different cookie categories to find out more about each category and to change the default settings.
Privacy Statement
Required cookies are necessary for basic website functionality. Some examples include: session cookies needed to transmit the website, authentication cookies, and security cookies.
Functional cookies enhance functions, performance, and services on the website. Some examples include: cookies used to analyze site traffic, cookies used for market research, and cookies used to display advertising that is not directed to a particular individual.
Advertising cookies track activity across websites in order to understand a viewer’s interests, and direct them specific marketing. Some examples include: cookies used for remarketing, or interest-based advertising.