Excel Experts.
 

  You don't need to be an 'investor' to invest in Singletrack: 6 days left: 95% of target - Find out more

Excel Experts.

6 Posts
6 Users
0 Reactions
90 Views
 benz
Posts: 1143
Free Member
Topic starter
 

I have got a spreadsheet with how many £'s have been spent on specific suppliers YTD.

I'm trying to put them into discrete 'buckets', being £0 > £5,000, £5,001 > £10,000, £10,000+.

Whilst I can do this manually, I wondered if the fine folks on here could guide me as to an appropriate formula to be able to do this?

Thanks indeed.


 
Posted : 11/09/2022 9:36 am
Posts: 1103
Free Member
 

Apologies I'm half awake but pivot tables might be a solution. They're usually good for most things.


 
Posted : 11/09/2022 9:39 am
Posts: 10315
Full Member
 

what do you mean by 'put them into buckets'?  If you want it to just be visible when you look through a list then I would use conditional formatting.  If you want to see how many are in each value range then take a look at 'bins', eg.

How to Perform Data Binning in Excel (With Example) - Statology


 
Posted : 11/09/2022 9:51 am
Posts: 1294
Free Member
 

Yes binning would be the way to go. You can also group values on a pivot table but it's a bit more manual.


 
Posted : 11/09/2022 10:05 am
Posts: 1103
Free Member
 

Thanks @leffeboy I wasn't aware of bins 👍


 
Posted : 11/09/2022 10:07 am
Posts: 3943
Free Member
 

That’s really useful thanks. I’ve been looking for a way to do that easily but a whole


 
Posted : 11/09/2022 10:44 pm
Posts: 10761
Full Member
 

As usual with Excel you can also achieve the same thing in several different ways. Using COUNTIFS is a bit more faff but makes it easier to fiddle with the bin ranges.

eg values in A1:A999, then in col B 1:6 you have the bins
0
5
10
20
50
99999999

the C1 =COUNTIFS($A$1:$A$999,">=" & $B1, $A$1:$A$999, "<" & $B2) gives the count of values from 0 to 4.9999999, copy that down and you're good to go. You can then amend the bin boundaries or add bins on the fly rather than going through the analysis toolpak each time. Just remember to start the bins below lowest value in your data and finish above the highest value.


 
Posted : 12/09/2022 7:25 am

6 DAYS LEFT
We are currently at 95% of our target!