Required Top 3 statement from NET statement and subnet

sksanjeev786

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

I have a statement with NETs and Subnet statement with Data so I need Top Net data from Column A (solution is i.e D,E) and from NET i need top 3 subnet (solution in GH)

book2
ABCDEFGH
1
2VEHICLE APPEAL (NET)40%
3For anyone/everyone10%
4For me/meets my needs1%NETVEHICLE APPEAL (NET)40%
5Good for family/family oriented/for families0%VEHICLE APPEAL (NET)40%SubnetFor young people/teenagers12%
6For young people/teenagers12%LED light/matrix (NET)22%SubnetFor anyone/everyone10%
7For successful people0%VEHICLE APPEARANCE/STYLE (NET)10%SubnetAppeals to different type of people9%
8Appeals to different type of people9%
9For businesses/business people0%
10Suits/matches the owner/reflects owner's image2%
11For active/sporty people0%
12For brave/courageous people/drivers3%
13MODERN/INNOVATIVE (NET)2%
14Modern/up to date/innovative1%
15Up to date0%
16Innovative1%
17VEHICLE APPEARANCE/STYLE (NET)10%
18Good/like style/stylish0%
19New/advanced technology2%
20Technology (no detail)2%
21Good/high technology2%
22Good/great performance1%
23SAFETY (NET)3%
24Auto brake/self braking system0%
25Safe/safety/protection2%
26Safety features0%
27LED light/matrix (NET)22%
28It's complete/with everything you need2%
29Visibility in the blind spot/blind spot detector4%
30Lights (no detail)5%
31Can connect 7 devices1%
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
A2:A31,G5:G7Cell Valuecontains "net"textNO


can any one check for the logical solution.
Thanks
Sanjeev
 

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
with Power Query and Pivot Table:

Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="Table8"]}[Content],
    IF = Table.AddColumn(Source, "NET", each if Text.Contains([Net], "NET") then [Net] else null),
    FillD = Table.FillDown(IF,{"NET"}),
    Filter = Table.SelectRows(FillD, each not Text.Contains([Net], "NET"))
in
    Filter
NetPercentNET2VEHICLE APPEAL (NET)
VEHICLE APPEAL (NET)40%
For anyone/everyone10%NetPercent
For me/meets my needs1%Appeals to different type of people9%
Good for family/family oriented/for families0%For anyone/everyone10%
For young people/teenagers12%For young people/teenagers12%
For successful people0%
Appeals to different type of people9%
For businesses/business people0%
Suits/matches the owner/reflects owner's image2%
For active/sporty people0%
For brave/courageous people/drivers3%
MODERN/INNOVATIVE (NET)2%
Modern/up to date/innovative1%
Up to date0%
Innovative1%
VEHICLE APPEARANCE/STYLE (NET)10%
Good/like style/stylish0%
New/advanced technology2%
Technology (no detail)2%
Good/high technology2%
Good/great performance1%
SAFETY (NET)3%
Auto brake/self braking system0%
Safe/safety/protection2%
Safety features0%
LED light/matrix (NET)22%
It's complete/with everything you need2%
Visibility in the blind spot/blind spot detector4%
Lights (no detail)5%
Can connect 7 devices1%

NET2LED light/matrix (NET)
NetPercent
It's complete/with everything you need2%
Lights (no detail)5%
Visibility in the blind spot/blind spot detector4%
 
Upvote 0
with Power Query and Pivot Table:

Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="Table8"]}[Content],
    IF = Table.AddColumn(Source, "NET", each if Text.Contains([Net], "NET") then [Net] else null),
    FillD = Table.FillDown(IF,{"NET"}),
    Filter = Table.SelectRows(FillD, each not Text.Contains([Net], "NET"))
in
    Filter
NetPercentNET2VEHICLE APPEAL (NET)
VEHICLE APPEAL (NET)40%
For anyone/everyone10%NetPercent
For me/meets my needs1%Appeals to different type of people9%
Good for family/family oriented/for families0%For anyone/everyone10%
For young people/teenagers12%For young people/teenagers12%
For successful people0%
Appeals to different type of people9%
For businesses/business people0%
Suits/matches the owner/reflects owner's image2%
For active/sporty people0%
For brave/courageous people/drivers3%
MODERN/INNOVATIVE (NET)2%
Modern/up to date/innovative1%
Up to date0%
Innovative1%
VEHICLE APPEARANCE/STYLE (NET)10%
Good/like style/stylish0%
New/advanced technology2%
Technology (no detail)2%
Good/high technology2%
Good/great performance1%
SAFETY (NET)3%
Auto brake/self braking system0%
Safe/safety/protection2%
Safety features0%
LED light/matrix (NET)22%
It's complete/with everything you need2%
Visibility in the blind spot/blind spot detector4%
Lights (no detail)5%
Can connect 7 devices1%

NET2LED light/matrix (NET)
NetPercent
It's complete/with everything you need2%
Lights (no detail)5%
Visibility in the blind spot/blind spot detector4%


Thanks you sandy:) for your hard work.

Just wanted to check it is possible to have in Excel formula or something another source :)

and let me check with our above query and will get back to you on this again.


Thank you once again :).
Sanjeev
 
Upvote 0
here is a better version I think,
Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    IF = Table.AddColumn(Source, "NET", each if Text.Contains([Net], "NET") then [Net] else null),
    FillD = Table.FillDown(IF,{"NET"}),
    Filter = Table.SelectRows(FillD, each not Text.Contains([Net], "NET")),
    Ren = Table.RenameColumns(Filter,{{"Net", "SubNet"}})
in
    Ren
NETVEHICLE APPEAL (NET)
SubNetPercent
For young people/teenagers12%
For anyone/everyone10%
Appeals to different type of people9%
NETLED light/matrix (NET)
SubNetPercent
Lights (no detail)5%
Visibility in the blind spot/blind spot detector4%
It's complete/with everything you need2%
 
Upvote 0
here is a better version I think,
Power Query:
let
    Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
    IF = Table.AddColumn(Source, "NET", each if Text.Contains([Net], "NET") then [Net] else null),
    FillD = Table.FillDown(IF,{"NET"}),
    Filter = Table.SelectRows(FillD, each not Text.Contains([Net], "NET")),
    Ren = Table.RenameColumns(Filter,{{"Net", "SubNet"}})
in
    Ren
NETVEHICLE APPEAL (NET)
SubNetPercent
For young people/teenagers12%
For anyone/everyone10%
Appeals to different type of people9%
NETLED light/matrix (NET)
SubNetPercent
Lights (no detail)5%
Visibility in the blind spot/blind spot detector4%
It's complete/with everything you need2%


Sandy,Just wanted to check do we need to add any add on for running power query.


Thanks.
Sanjeev
 
Upvote 0

Forum statistics

Threads
1,214,833
Messages
6,121,858
Members
449,051
Latest member
excelquestion515

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