Grouping Based on Values

Excel_77

Active Member
Joined
Sep 15, 2016
Messages
306
Office Version
  1. 2019
Platform
  1. Windows
Hi All,

I have values in column L such as the following:

400,000
300,300
1,230,340


I want to group these into certain bands within Column M, the band are listed within a separate tab called "Bands" and the options are as follows - how can I code this? I fear the word "Euro" could cause problems?

01 000 000 to below 01 500 000 Euro
01 500 000 to below 02 000 000 Euro
02 000 000 to below 02 500 000 Euro
02 500 000 to below 03 000 000 Euro
03 000 000 to below 03 500 000 Euro
03 500 000 to below 04 000 000 Euro
04 000 000 to below 04 500 000 Euro
04 500 000 to below 05 000 000 Euro
05 000 000 to below 06 000 000 Euro
06 000 000 to below 07 000 000 Euro
07 000 000 to below 08 000 000 Euro
08 000 000 to below 09 000 000 Euro
11 000 000 to below 12 000 000 Euro
13 000 000 to below 14 000 000 Euro
below 01 000 000 Euro

<tbody>
</tbody><colgroup><col></colgroup>
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
"how can I code this"
Youre looking for a VBA solution then not a formula ?
 
Upvote 0
I am not quite clear what exactly you want to return for each of the bands it something falls into.
So, for your first example, 400,000 that would fall in your 400,000 to 450,000 band.
So what exactly do you want it to return?
 
Upvote 0

Forum statistics

Threads
1,215,214
Messages
6,123,661
Members
449,114
Latest member
aides

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top