G
Guest
I've got a group of data that I'm trying to group into buckets according to
some characteristics and then do calculations on others. For example:
Item Price Profit%
Shoes 10 8%
Socks 15 15%
Belts 18 7%
Shirts 20 18%
Hats 22 6%
I'd like to group them into buckets like price "<= 15","15-20",and "> 20"
and then do calculations on avg profit. I know I can do this with nested if
statements, but I have about 15 buckets to group in and I want to be able to
change my parameters easier than if/then statements would allow. I am no
expert in SQL or VBA, so any solution using standard Access tools would be
great.
Thanks so much for the help.
Z
some characteristics and then do calculations on others. For example:
Item Price Profit%
Shoes 10 8%
Socks 15 15%
Belts 18 7%
Shirts 20 18%
Hats 22 6%
I'd like to group them into buckets like price "<= 15","15-20",and "> 20"
and then do calculations on avg profit. I know I can do this with nested if
statements, but I have about 15 buckets to group in and I want to be able to
change my parameters easier than if/then statements would allow. I am no
expert in SQL or VBA, so any solution using standard Access tools would be
great.
Thanks so much for the help.
Z