
Jason Wier
Member
Members

Forum Posts: 23
Member Since:
September 14, 2021
September 14, 2021

I have a column that contains numbers. I want to add a new column that groups the first column into specific "buckets".
Bucket grouping: 1-15, 16-30, 31-45,46-60, >60.
Note: The column also contains numbers less than zero. I don not want to includes these in my buckets.
Sample excel file attached.
Thank you.

Philip Treacy
Admin

Forum Posts: 1549
Member Since:
October 5, 2010
October 5, 2010

Hi Jason,
See attached file for solution using this code
if [#"Difference in Days - Paid Date vs Last Scan Date"] >= 1 and [#"Difference in Days - Paid Date vs Last Scan Date"] <= 15 then "1-15"
else if [#"Difference in Days - Paid Date vs Last Scan Date"] >= 16 and [#"Difference in Days - Paid Date vs Last Scan Date"] <= 30 then "16-30"
else if [#"Difference in Days - Paid Date vs Last Scan Date"] >= 31 and [#"Difference in Days - Paid Date vs Last Scan Date"] <= 45 then "31-45"
else if [#"Difference in Days - Paid Date vs Last Scan Date"] >= 46 and [#"Difference in Days - Paid Date vs Last Scan Date"] <= 60 then "46-60"
else if [#"Difference in Days - Paid Date vs Last Scan Date"] > 60 then ">60"
else null
Regards
Phil

Answers Post
Forum Timezone: Australia/Brisbane
Most Users Ever Online: 245
Currently Online:
Guest(s) 9
Currently Browsing this Page:
1 Guest(s)
1 Guest(s)
Top Posters:
SunnyKow: 1432
Anders Sehlstedt: 880
Purfleet: 414
Frans Visser: 346
David_Ng: 306
lea cohen: 237
Jessica Stewart: 219
A.Maurizio: 213
Aye Mu: 201
jaryszek: 183
Newest Members:
Ashley Hughes
Herbie Key
Trevor Pindling
Stevan Kanjo
Erin Sheldon
Nikita Bhatia
Sheilah Taylor
Clare Webber
David Jenssen
Dominic Brosnahan
Forum Stats:
Groups: 3
Forums: 24
Topics: 6526
Posts: 28576
Member Stats:
Guest Posters: 49
Members: 32810
Moderators: 2
Admins: 4
Administrators: Mynda Treacy, Philip Treacy, Catalin Bombea, FT
Moderators: Velouria, Riny van Eekelen
© Simple:Press —
