Grouping or creating new text value

Spanky244

New Member
Joined
Nov 25, 2005
Messages
2
I am trying to analyse sales by grouping together market sector codes, eg
create a new column by grouping the market sectors.

Unit Price Market New Group
21.95 AERO Sector1
19.44 AERO Sector1
1.1297 AGRI Sector2
1.9399 AGRI Sector2
0.35 AGRI Sector2
2.0601 AGRI Sector2
0.3108 AGRI Sector2
25.69 ANEQ Sector1
57.06 ANEQ Sector1
4.53 ANEQ Sector1
1.5 ANEQ Sector1
12.64 ANEQ Sector1
19.17 ANEQ Sector1
49.03 ANIM Sector2
7.37 ANIM Sector2
49.03 ANIM Sector2
1.93 AUTO Sector1
4.12 AUTO Sector1
88.65 AUTO Sector1
28.49 BUSC Sector2
29.62 BUSC Sector2
70 BUSC Sector2
12.71 CHPH Sector3
5.54 CHPH Sector3
10.82 CHPH Sector3
17.21 CHPH Sector3
81.81 CHPH Sector3
1218.14 CHPH Sector3
1218.14 CHPH Sector3
52.99 CHPH Sector3
43.9 CHPH Sector3
29.51 COMP Sector3
19.61 COMP Sector3
13.33 COMP Sector3
0.009 COMP Sector3
5.47 COMP Sector3
13.33 COMP Sector3
5.47 COMP Sector3
46.88 COMV Sector1
88 COMV Sector1
284.06 COMV Sector1
237.81 COMV Sector1


Can anyone advise which is teh best way to do this or is it easier to try & condition the data using sql before extracting??

Anyones help would be much appreciated :confused:
 

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Spanky244

I think a PivotTable might be what you are after. For a start, have look in the Excel help about these.

Alternatively, perhaps Data|Filter|AutoFilter then filter the Sector column to the one you are interested in may be some use.

Post back if further help is needed.
 
Upvote 0

Forum statistics

Threads
1,214,932
Messages
6,122,334
Members
449,077
Latest member
Jocksteriom

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