Excel Experts.
 

Excel Experts.

6 Posts
6 Users
0 Reactions
81 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 10:36 am
Posts: 1098
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 10:39 am
Posts: 10255
Free 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 10: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 11:05 am
Posts: 1098
Free Member
 

Thanks @leffeboy I wasn't aware of bins 👍

 
Posted : 11/09/2022 11:07 am
Posts: 3801
Full Member
 

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

 
Posted : 11/09/2022 11:44 pm
Posts: 10671
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 8:25 am