Need help with Data in Subgroup

sksanjeev786

Well-known Member
Joined
Aug 5, 2020
Messages
1,010
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi Team,

I need data order as per column M to O and my input data is from A1 to K25 (with cell color) and I need to keep the data as per subgroup A1to A8 same subgroup we have in E2:K2
and I need to keep the statement as pe color on cell .Sample output is on M to O

book1
ABCDEFGHIJKLMNOPQ
1InputInputOutput
2Superior Brand36%Type over text to name your factors:Superior BrandSustainability LeaderPremium Brand & Advanced TechReduces Carbon FootprintProfessional ServiceRecommendedForward-LookingSuperior Brand36%Appeals to you more than other brands
3Sustainability Leader15%Are better value
4Professional Service12%Appeals to you more than other brands0.650.290.230.190.130.220.19Have the right products for my vehicle
5Reduces Carbon Footprint12%Are better value0.660.400.210.310.080.030.02Protects my investment in my vehicle more than other oils
6Recommended10%Have the right products for my vehicle0.630.160.160.280.320.270.16Helps extend engine life
7Premium Brand & Advanced Tech8%Protects my investment in my vehicle more than other oils0.660.250.210.120.240.190.28Gives me extra assurance that my vehicle is protected
8Forward-Looking7%Helps extend engine life0.570.170.280.220.290.200.32Cleans my engine better than other oils
9Gives me extra assurance that my vehicle is protected0.610.270.250.230.240.160.29Is a brand I trust
10Cleans my engine better than other oils0.660.180.190.240.190.280.21Maintains your engine's performance
11Is a brand I trust0.670.280.200.190.180.200.23Makes my everyday life easier
12Maintains your engine's performance0.680.200.220.140.290.220.23Provides a superior customer experience compared to other brands
13Makes my everyday life easier0.680.320.240.210.190.170.09Is a superior quality of motor oil compared to other brands
14Provides a superior customer experience compared to other brands0.510.430.270.100.170.390.08
15Acts more responsibly to look after the environment0.350.590.150.390.110.150.26Sustainability Leader15%Acts more responsibly to look after the environment
16Sets the industry standard for sustainability0.390.590.110.150.270.250.24Sets the industry standard for sustainability
17Leads in the development of products that are better for the environment0.270.700.280.140.250.180.17Leads in the development of products that are better for the environment
18Have products that are more technologically advanced 0.230.210.650.420.250.070.29
19Is a premium brand0.430.230.710.020.180.230.08Professional Service12%Provides a professional workshop service
20Helps you to reduce your carbon footprint0.420.240.160.690.150.240.14Have a product range that is easier to understand
21Provides a professional workshop service0.340.270.210.130.750.170.17
22Are recommended by vehicle manufacturers0.340.250.170.210.220.750.17Reduces Carbon Footprint12%Helps you to reduce your carbon footprint
23Is a forward-looking brand0.360.280.200.130.160.180.76
24Have a product range that is easier to understand0.390.340.190.430.460.180.06Recommended10%Are recommended by vehicle manufacturers
25Is a superior quality of motor oil compared to other brands0.450.240.430.220.010.430.27
26Premium Brand & Advanced Tech8%Have products that are more technologically advanced
27Is a premium brand
28
29Forward-Looking7%Is a forward-looking brand
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D24:D25Expression=D24<>0textNO
D4:D23Expression=D4<>0textNO
E2:K3Expression=E2=""textNO
E2:K3Expression=E2<>0textNO
O29Expression=O29<>0textNO
O26:O27Expression=O26<>0textNO
O24Expression=O24<>0textNO
O22Expression=O22<>0textNO
O20Expression=O20<>0textNO
O19Expression=O19<>0textNO
O15:O17Expression=O15<>0textNO
O13Expression=O13<>0textNO
O2:O12Expression=O2<>0textNO
 

Excel Facts

Wildcard in VLOOKUP
Use =VLOOKUP("Apple*" to find apple, Apple, or applesauce
Hi Team,

I need data order as per column M to O and my input data is from A1 to K25 (with cell color) and I need to keep the data as per subgroup A1to A8 same subgroup we have in E2:K2
and I need to keep the statement as pe color on cell .Sample output is on M to O

book1
ABCDEFGHIJKLMNOPQ
1InputInputOutput
2Superior Brand36%Type over text to name your factors:Superior BrandSustainability LeaderPremium Brand & Advanced TechReduces Carbon FootprintProfessional ServiceRecommendedForward-LookingSuperior Brand36%Appeals to you more than other brands
3Sustainability Leader15%Are better value
4Professional Service12%Appeals to you more than other brands0.650.290.230.190.130.220.19Have the right products for my vehicle
5Reduces Carbon Footprint12%Are better value0.660.400.210.310.080.030.02Protects my investment in my vehicle more than other oils
6Recommended10%Have the right products for my vehicle0.630.160.160.280.320.270.16Helps extend engine life
7Premium Brand & Advanced Tech8%Protects my investment in my vehicle more than other oils0.660.250.210.120.240.190.28Gives me extra assurance that my vehicle is protected
8Forward-Looking7%Helps extend engine life0.570.170.280.220.290.200.32Cleans my engine better than other oils
9Gives me extra assurance that my vehicle is protected0.610.270.250.230.240.160.29Is a brand I trust
10Cleans my engine better than other oils0.660.180.190.240.190.280.21Maintains your engine's performance
11Is a brand I trust0.670.280.200.190.180.200.23Makes my everyday life easier
12Maintains your engine's performance0.680.200.220.140.290.220.23Provides a superior customer experience compared to other brands
13Makes my everyday life easier0.680.320.240.210.190.170.09Is a superior quality of motor oil compared to other brands
14Provides a superior customer experience compared to other brands0.510.430.270.100.170.390.08
15Acts more responsibly to look after the environment0.350.590.150.390.110.150.26Sustainability Leader15%Acts more responsibly to look after the environment
16Sets the industry standard for sustainability0.390.590.110.150.270.250.24Sets the industry standard for sustainability
17Leads in the development of products that are better for the environment0.270.700.280.140.250.180.17Leads in the development of products that are better for the environment
18Have products that are more technologically advanced 0.230.210.650.420.250.070.29
19Is a premium brand0.430.230.710.020.180.230.08Professional Service12%Provides a professional workshop service
20Helps you to reduce your carbon footprint0.420.240.160.690.150.240.14Have a product range that is easier to understand
21Provides a professional workshop service0.340.270.210.130.750.170.17
22Are recommended by vehicle manufacturers0.340.250.170.210.220.750.17Reduces Carbon Footprint12%Helps you to reduce your carbon footprint
23Is a forward-looking brand0.360.280.200.130.160.180.76
24Have a product range that is easier to understand0.390.340.190.430.460.180.06Recommended10%Are recommended by vehicle manufacturers
25Is a superior quality of motor oil compared to other brands0.450.240.430.220.010.430.27
26Premium Brand & Advanced Tech8%Have products that are more technologically advanced
27Is a premium brand
28
29Forward-Looking7%Is a forward-looking brand
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D24:D25Expression=D24<>0textNO
D4:D23Expression=D4<>0textNO
E2:K3Expression=E2=""textNO
E2:K3Expression=E2<>0textNO
O29Expression=O29<>0textNO
O26:O27Expression=O26<>0textNO
O24Expression=O24<>0textNO
O22Expression=O22<>0textNO
O20Expression=O20<>0textNO
O19Expression=O19<>0textNO
O15:O17Expression=O15<>0textNO
O13Expression=O13<>0textNO
O2:O12Expression=O2<>0textNO
See Cell S2 & V2 in file shared underneath as your solution

Check if that helps you in some way

I don't know how you derived percentages in column N:N else would have helped you with that too.

Must note that you can work with formulas I used in Excel 365 only and not on Excel 2016.

All Records.xlsb
ABCDEFGHIJKLMNOPQRSTUV
1InputInputOutputTry
2Superior Brand0.35651545Type over text to name your factors:Superior BrandSustainability LeaderPremium Brand & Advanced TechReduces Carbon FootprintProfessional ServiceRecommendedForward-LookingSuperior Brand0.35651545Appeals to you more than other brandsSuperior BrandAppeals to you more than other brandsSustainability LeaderActs more responsibly to look after the environment
3Sustainability Leader0.14915691Are better valueAre better valueSets the industry standard for sustainability
4Professional Service0.12402673Appeals to you more than other brands0.6530.2850.2290.1920.1250.2230.188Have the right products for my vehicleHave the right products for my vehicleLeads in the development of products that are better for the environment
5Reduces Carbon Footprint0.12087484Are better value0.6610.40.2110.310.0820.0280.022Protects my investment in my vehicle more than other oilsProtects my investment in my vehicle more than other oils
6Recommended0.10373634Have the right products for my vehicle0.6310.1640.1570.2840.3190.2730.157Helps extend engine lifeHelps extend engine life
7Premium Brand & Advanced Tech0.07565221Protects my investment in my vehicle more than other oils0.6570.2530.2120.1150.2360.1940.282Gives me extra assurance that my vehicle is protectedGives me extra assurance that my vehicle is protected
8Forward-Looking0.07003751Helps extend engine life0.5660.1690.2780.2150.2860.1960.319Cleans my engine better than other oilsCleans my engine better than other oils
9Gives me extra assurance that my vehicle is protected0.6080.2660.2520.2280.2440.1560.292Is a brand I trustIs a brand I trust
10Cleans my engine better than other oils0.6550.1770.1870.240.1880.2840.213Maintains your engine's performanceMaintains your engine's performance
11Is a brand I trust0.6660.2760.1960.1890.1830.2040.234Makes my everyday life easierMakes my everyday life easier
12Maintains your engine's performance0.6770.2020.2190.1420.2850.2150.234Provides a superior customer experience compared to other brandsProvides a superior customer experience compared to other brands
13Makes my everyday life easier0.6830.3210.2350.2080.1890.1720.089Is a superior quality of motor oil compared to other brandsIs a superior quality of motor oil compared to other brands
14Provides a superior customer experience compared to other brands0.5110.4260.2680.0970.1720.3910.076
15Acts more responsibly to look after the environment0.3540.5870.1490.3920.1120.1490.261Sustainability Leader0.14915691Acts more responsibly to look after the environment
16Sets the industry standard for sustainability0.3930.5930.1070.1470.2670.2450.24Sets the industry standard for sustainability
17Leads in the development of products that are better for the environment0.2690.7030.2780.1420.2480.180.174Leads in the development of products that are better for the environment
18Have products that are more technologically advanced 0.2320.2080.6510.4190.250.070.292
19Is a premium brand0.4340.2320.7050.0210.1820.2310.084Professional Service0.12402673Provides a professional workshop service
20Helps you to reduce your carbon footprint0.4150.2420.1580.6910.1480.240.142Have a product range that is easier to understand
21Provides a professional workshop service0.3410.2720.2130.1260.7490.1660.17
22Are recommended by vehicle manufacturers0.3380.2490.1740.2070.2240.7480.169Reduces Carbon Footprint0.12087484Helps you to reduce your carbon footprint
23Is a forward-looking brand0.3570.2820.2020.1330.1580.1760.755
24Have a product range that is easier to understand0.3870.3410.1880.4330.4620.1830.057Recommended0.10373634Are recommended by vehicle manufacturers
25Is a superior quality of motor oil compared to other brands0.450.2360.4260.2170.0140.4260.265
26Premium Brand & Advanced Tech0.07565221Have products that are more technologically advanced
27Is a premium brand
28
29Forward-Looking0.07003751Is a forward-looking brand
Sheet1
Cell Formulas
RangeFormula
R2R2=E2
S2:S13S2=FILTER(D4:D25,E4:E25>=0.45)
U2U2=F2
V2:V4V2=FILTER(D4:D25,F4:F25>=0.45)
Dynamic array formulas.
 
Upvote 0
See Cell S2 & V2 in file shared underneath as your solution

Check if that helps you in some way

I don't know how you derived percentages in column N:N else would have helped you with that too.

Must note that you can work with formulas I used in Excel 365 only and not on Excel 2016.

All Records.xlsb
ABCDEFGHIJKLMNOPQRSTUV
1InputInputOutputTry
2Superior Brand0.35651545Type over text to name your factors:Superior BrandSustainability LeaderPremium Brand & Advanced TechReduces Carbon FootprintProfessional ServiceRecommendedForward-LookingSuperior Brand0.35651545Appeals to you more than other brandsSuperior BrandAppeals to you more than other brandsSustainability LeaderActs more responsibly to look after the environment
3Sustainability Leader0.14915691Are better valueAre better valueSets the industry standard for sustainability
4Professional Service0.12402673Appeals to you more than other brands0.6530.2850.2290.1920.1250.2230.188Have the right products for my vehicleHave the right products for my vehicleLeads in the development of products that are better for the environment
5Reduces Carbon Footprint0.12087484Are better value0.6610.40.2110.310.0820.0280.022Protects my investment in my vehicle more than other oilsProtects my investment in my vehicle more than other oils
6Recommended0.10373634Have the right products for my vehicle0.6310.1640.1570.2840.3190.2730.157Helps extend engine lifeHelps extend engine life
7Premium Brand & Advanced Tech0.07565221Protects my investment in my vehicle more than other oils0.6570.2530.2120.1150.2360.1940.282Gives me extra assurance that my vehicle is protectedGives me extra assurance that my vehicle is protected
8Forward-Looking0.07003751Helps extend engine life0.5660.1690.2780.2150.2860.1960.319Cleans my engine better than other oilsCleans my engine better than other oils
9Gives me extra assurance that my vehicle is protected0.6080.2660.2520.2280.2440.1560.292Is a brand I trustIs a brand I trust
10Cleans my engine better than other oils0.6550.1770.1870.240.1880.2840.213Maintains your engine's performanceMaintains your engine's performance
11Is a brand I trust0.6660.2760.1960.1890.1830.2040.234Makes my everyday life easierMakes my everyday life easier
12Maintains your engine's performance0.6770.2020.2190.1420.2850.2150.234Provides a superior customer experience compared to other brandsProvides a superior customer experience compared to other brands
13Makes my everyday life easier0.6830.3210.2350.2080.1890.1720.089Is a superior quality of motor oil compared to other brandsIs a superior quality of motor oil compared to other brands
14Provides a superior customer experience compared to other brands0.5110.4260.2680.0970.1720.3910.076
15Acts more responsibly to look after the environment0.3540.5870.1490.3920.1120.1490.261Sustainability Leader0.14915691Acts more responsibly to look after the environment
16Sets the industry standard for sustainability0.3930.5930.1070.1470.2670.2450.24Sets the industry standard for sustainability
17Leads in the development of products that are better for the environment0.2690.7030.2780.1420.2480.180.174Leads in the development of products that are better for the environment
18Have products that are more technologically advanced 0.2320.2080.6510.4190.250.070.292
19Is a premium brand0.4340.2320.7050.0210.1820.2310.084Professional Service0.12402673Provides a professional workshop service
20Helps you to reduce your carbon footprint0.4150.2420.1580.6910.1480.240.142Have a product range that is easier to understand
21Provides a professional workshop service0.3410.2720.2130.1260.7490.1660.17
22Are recommended by vehicle manufacturers0.3380.2490.1740.2070.2240.7480.169Reduces Carbon Footprint0.12087484Helps you to reduce your carbon footprint
23Is a forward-looking brand0.3570.2820.2020.1330.1580.1760.755
24Have a product range that is easier to understand0.3870.3410.1880.4330.4620.1830.057Recommended0.10373634Are recommended by vehicle manufacturers
25Is a superior quality of motor oil compared to other brands0.450.2360.4260.2170.0140.4260.265
26Premium Brand & Advanced Tech0.07565221Have products that are more technologically advanced
27Is a premium brand
28
29Forward-Looking0.07003751Is a forward-looking brand
Sheet1
Cell Formulas
RangeFormula
R2R2=E2
S2:S13S2=FILTER(D4:D25,E4:E25>=0.45)
U2U2=F2
V2:V4V2=FILTER(D4:D25,F4:F25>=0.45)
Dynamic array formulas.

Hi Sanjay,

Thanks for your time on this.
Data is coming correct could you please let us know how you have considered the number 0.45 in filter funtion
and column N:N is an input data I took from B column as of now data is coming correct but it should consider the Green color while taking the subgroup Column E to K

Thanks in advance :)
 
Upvote 0
Hi Sanjay,

Thanks for your time on this.
Data is coming correct could you please let us know how you have considered the number 0.45 in filter funtion
and column N:N is an input data I took from B column as of now data is coming correct but it should consider the Green color while taking the subgroup Column E to K

Thanks in advance :)
To filter using Cell background colour can be done. But as per forum rules I can't share external links here. Also, copying and pasting someone else's work here is plagiarism that I can't do. But there is a methodical way of using Get.Cell Function through which we can identify a cell colour in formula and use as a filter.
 
Upvote 0
To filter using Cell background colour can be done. But as per forum rules I can't share external links here. Also, copying and pasting someone else's work here is plagiarism that I can't do. But there is a methodical way of using Get.Cell Function through which we can identify a cell colour in formula and use as a filter.

okay....!!! thanks for the update Sanjay :)
 
Upvote 0

Forum statistics

Threads
1,224,828
Messages
6,181,217
Members
453,024
Latest member
Wingit77

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