Ranking with NET and with in the group

sksanjeev786

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

I need a ranking Based on NET first and the within the group

for example : I have done the NET ranking Row no 3,10,16,21,25 and 29 in column B and then rank within the group row 4-9, 12-15
we will always have NET wording in data file

i have done manually Output F to G column.

book2
BCDEFG
1InputOuput
2
3(NET) IN/AROUND STORE87%(NET) IN/AROUND STORE87%
4Featured prominently on the shelf at a store63%Saw product inside of a store66%
5Saw signs or ads inside or outside of a store53%Featured prominently on the shelf at a store63%
6Saw product inside of a store66%Saw signs or ads inside or outside of a store53%
7Heard about it from a store clerk34%Visited a brand shop / pop-up store43%
8Heard about it from a representative of the brand at a store33%Heard about it from a store clerk34%
9Visited a brand shop / pop-up store43%Heard about it from a representative of the brand at a store33%
10(NET) ADVERTISEMENT66%(NET) WOM / OVERHEARD80%
11Saw an ad on TV or video streaming service36%Saw an adult tobacco/nicotine consumer using it56%
12Saw an ad in a magazine40%Recommended by friends or family53%
13Saw an ad online (banner, pop-up)40%Heard about it from an adult tobacco/nicotine consumer45%
14Saw the brand advertised at an event/concert31%Saw in news article or clip32%
15Heard an ad when listening to the radio, streaming music, or a podcast35%(NET) ONLINE / SOCIAL MEDIA72%
16(NET) WOM / OVERHEARD80%Saw it on an online tobacco retailer website44%
17Recommended by friends or family53%Went to a brand's website44%
18Heard about it from an adult tobacco/nicotine consumer45%Saw a brand's social media post or went to their social media page40%
19Saw an adult tobacco/nicotine consumer using it56%Read about it when doing an online search39%
20Saw in news article or clip32%Saw an adult tobacco/nicotine consumer post about it on social media38%
21(NET) BRAND MARKETING60%(NET) ADVERTISEMENT66%
22Received something in the mail from the brand (flyer, leaflet, etc.)35%Saw an ad in a magazine40%
23Received an email from the brand42%Saw an ad online (banner, pop-up)40%
24Received a text message from the brand33%Saw an ad on TV or video streaming service36%
25(NET) PROMOTIONAL54%Heard an ad when listening to the radio, streaming music, or a podcast35%
26Used paper coupon for the brand23%Saw the brand advertised at an event/concert31%
27Used mobile coupon for the brand36%(NET) BRAND MARKETING60%
28Participated in the brand's loyalty or subscription program35%Received an email from the brand42%
29(NET) ONLINE / SOCIAL MEDIA72%Received something in the mail from the brand (flyer, leaflet, etc.)35%
30Saw it on an online tobacco retailer website44%Received a text message from the brand33%
31Read about it when doing an online search39%(NET) PROMOTIONAL54%
32Went to a brand's website44%Used mobile coupon for the brand36%
33Saw a brand's social media post or went to their social media page40%Participated in the brand's loyalty or subscription program35%
34Saw an adult tobacco/nicotine consumer post about it on social media38%Used paper coupon for the brand23%
Sheet1
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B3:B34Cell Valuecontains "(NET)"textNO
F3:F34Cell Valuecontains "(NET)"textNO
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
Could we use a helper column (could be hidden)?

24 11 22.xlsm
BCDEFG
1InputOuput
2
3(NET) IN/AROUND STORE87%870870(NET) IN/AROUND STORE87%
4Featured prominently on the shelf at a store63%870630Saw product inside of a store66%
5Saw signs or ads inside or outside of a store53%870530Featured prominently on the shelf at a store63%
6Saw product inside of a store66%870660Saw signs or ads inside or outside of a store53%
7Heard about it from a store clerk34%870340Visited a brand shop / pop-up store43%
8Heard about it from a representative of the brand at a store33%870330Heard about it from a store clerk34%
9Visited a brand shop / pop-up store43%870430Heard about it from a representative of the brand at a store33%
10(NET) ADVERTISEMENT66%660660(NET) WOM / OVERHEARD80%
11Saw an ad on TV or video streaming service36%660360Saw an adult tobacco/nicotine consumer using it56%
12Saw an ad in a magazine40%660400Recommended by friends or family53%
13Saw an ad online (banner, pop-up)40%660400Heard about it from an adult tobacco/nicotine consumer45%
14Saw the brand advertised at an event/concert31%660310Saw in news article or clip32%
15Heard an ad when listening to the radio, streaming music, or a podcast35%660350(NET) ONLINE / SOCIAL MEDIA72%
16(NET) WOM / OVERHEARD80%800800Saw it on an online tobacco retailer website44%
17Recommended by friends or family53%800530Went to a brand's website44%
18Heard about it from an adult tobacco/nicotine consumer45%800450Saw a brand's social media post or went to their social media page40%
19Saw an adult tobacco/nicotine consumer using it56%800560Read about it when doing an online search39%
20Saw in news article or clip32%800320Saw an adult tobacco/nicotine consumer post about it on social media38%
21(NET) BRAND MARKETING60%600600(NET) ADVERTISEMENT66%
22Received something in the mail from the brand (flyer, leaflet, etc.)35%600350Saw an ad in a magazine40%
23Received an email from the brand42%600420Saw an ad online (banner, pop-up)40%
24Received a text message from the brand33%600330Saw an ad on TV or video streaming service36%
25(NET) PROMOTIONAL54%540540Heard an ad when listening to the radio, streaming music, or a podcast35%
26Used paper coupon for the brand23%540230Saw the brand advertised at an event/concert31%
27Used mobile coupon for the brand36%540360(NET) BRAND MARKETING60%
28Participated in the brand's loyalty or subscription program35%540350Received an email from the brand42%
29(NET) ONLINE / SOCIAL MEDIA72%720720Received something in the mail from the brand (flyer, leaflet, etc.)35%
30Saw it on an online tobacco retailer website44%720440Received a text message from the brand33%
31Read about it when doing an online search39%720390(NET) PROMOTIONAL54%
32Went to a brand's website44%720440Used mobile coupon for the brand36%
33Saw a brand's social media post or went to their social media page40%720400Participated in the brand's loyalty or subscription program35%
34Saw an adult tobacco/nicotine consumer post about it on social media38%720380Used paper coupon for the brand23%
Rank
Cell Formulas
RangeFormula
F3:G34F3=SORTBY(B3:C34,D3:D34,-1)
D3:D34D3=XLOOKUP("(NET)*",B$3:B3,C$3:C3,,2,-1)*10^6+C3*10^3
Dynamic array formulas.
 
Upvote 0
Solution
Could we use a helper column (could be hidden)?

24 11 22.xlsm
BCDEFG
1InputOuput
2
3(NET) IN/AROUND STORE87%870870(NET) IN/AROUND STORE87%
4Featured prominently on the shelf at a store63%870630Saw product inside of a store66%
5Saw signs or ads inside or outside of a store53%870530Featured prominently on the shelf at a store63%
6Saw product inside of a store66%870660Saw signs or ads inside or outside of a store53%
7Heard about it from a store clerk34%870340Visited a brand shop / pop-up store43%
8Heard about it from a representative of the brand at a store33%870330Heard about it from a store clerk34%
9Visited a brand shop / pop-up store43%870430Heard about it from a representative of the brand at a store33%
10(NET) ADVERTISEMENT66%660660(NET) WOM / OVERHEARD80%
11Saw an ad on TV or video streaming service36%660360Saw an adult tobacco/nicotine consumer using it56%
12Saw an ad in a magazine40%660400Recommended by friends or family53%
13Saw an ad online (banner, pop-up)40%660400Heard about it from an adult tobacco/nicotine consumer45%
14Saw the brand advertised at an event/concert31%660310Saw in news article or clip32%
15Heard an ad when listening to the radio, streaming music, or a podcast35%660350(NET) ONLINE / SOCIAL MEDIA72%
16(NET) WOM / OVERHEARD80%800800Saw it on an online tobacco retailer website44%
17Recommended by friends or family53%800530Went to a brand's website44%
18Heard about it from an adult tobacco/nicotine consumer45%800450Saw a brand's social media post or went to their social media page40%
19Saw an adult tobacco/nicotine consumer using it56%800560Read about it when doing an online search39%
20Saw in news article or clip32%800320Saw an adult tobacco/nicotine consumer post about it on social media38%
21(NET) BRAND MARKETING60%600600(NET) ADVERTISEMENT66%
22Received something in the mail from the brand (flyer, leaflet, etc.)35%600350Saw an ad in a magazine40%
23Received an email from the brand42%600420Saw an ad online (banner, pop-up)40%
24Received a text message from the brand33%600330Saw an ad on TV or video streaming service36%
25(NET) PROMOTIONAL54%540540Heard an ad when listening to the radio, streaming music, or a podcast35%
26Used paper coupon for the brand23%540230Saw the brand advertised at an event/concert31%
27Used mobile coupon for the brand36%540360(NET) BRAND MARKETING60%
28Participated in the brand's loyalty or subscription program35%540350Received an email from the brand42%
29(NET) ONLINE / SOCIAL MEDIA72%720720Received something in the mail from the brand (flyer, leaflet, etc.)35%
30Saw it on an online tobacco retailer website44%720440Received a text message from the brand33%
31Read about it when doing an online search39%720390(NET) PROMOTIONAL54%
32Went to a brand's website44%720440Used mobile coupon for the brand36%
33Saw a brand's social media post or went to their social media page40%720400Participated in the brand's loyalty or subscription program35%
34Saw an adult tobacco/nicotine consumer post about it on social media38%720380Used paper coupon for the brand23%
Rank
Cell Formulas
RangeFormula
F3:G34F3=SORTBY(B3:C34,D3:D34,-1)
D3:D34D3=XLOOKUP("(NET)*",B$3:B3,C$3:C3,,2,-1)*10^6+C3*10^3
Dynamic array formulas.


Hi Peter,

Thank you so much for your help :)


Regards
Sanjeev
 
Upvote 0
Without a helper column.
Edited
Book1
BCDEFG
1InputOuput
2
3(NET) IN/AROUND STORE0.87(NET) IN/AROUND STORE0.87
4Featured prominently on the shelf at a store0.63Saw product inside of a store0.66
5Saw signs or ads inside or outside of a store0.53Featured prominently on the shelf at a store0.63
6Saw product inside of a store0.66Saw signs or ads inside or outside of a store0.53
7Heard about it from a store clerk0.34Visited a brand shop / pop-up store0.43
8Heard about it from a representative of the brand at a store0.33Heard about it from a store clerk0.34
9Visited a brand shop / pop-up store0.43Heard about it from a representative of the brand at a store0.33
10(NET) ADVERTISEMENT0.66(NET) WOM / OVERHEARD0.8
11Saw an ad on TV or video streaming service0.36Saw an adult tobacco/nicotine consumer using it0.56
12Saw an ad in a magazine0.4Recommended by friends or family0.53
13Saw an ad online (banner, pop-up)0.4Heard about it from an adult tobacco/nicotine consumer0.45
14Saw the brand advertised at an event/concert0.31Saw in news article or clip0.32
15Heard an ad when listening to the radio, streaming music, or a podcast0.35(NET) ONLINE / SOCIAL MEDIA0.72
16(NET) WOM / OVERHEARD0.8Saw it on an online tobacco retailer website0.44
17Recommended by friends or family0.53Went to a brand's website0.44
18Heard about it from an adult tobacco/nicotine consumer0.45Saw a brand's social media post or went to their social media page0.4
19Saw an adult tobacco/nicotine consumer using it0.56Read about it when doing an online search0.39
20Saw in news article or clip0.32Saw an adult tobacco/nicotine consumer post about it on social media0.38
21(NET) BRAND MARKETING0.6(NET) ADVERTISEMENT0.66
22Received something in the mail from the brand (flyer, leaflet, etc.)0.35Saw an ad in a magazine0.4
23Received an email from the brand0.42Saw an ad online (banner, pop-up)0.4
24Received a text message from the brand0.33Saw an ad on TV or video streaming service0.36
25(NET) PROMOTIONAL0.54Heard an ad when listening to the radio, streaming music, or a podcast0.35
26Used paper coupon for the brand0.23Saw the brand advertised at an event/concert0.31
27Used mobile coupon for the brand0.36(NET) BRAND MARKETING0.6
28Participated in the brand's loyalty or subscription program0.35Received an email from the brand0.42
29(NET) ONLINE / SOCIAL MEDIA0.72Received something in the mail from the brand (flyer, leaflet, etc.)0.35
30Saw it on an online tobacco retailer website0.44Received a text message from the brand0.33
31Read about it when doing an online search0.39(NET) PROMOTIONAL0.54
32Went to a brand's website0.44Used mobile coupon for the brand0.36
33Saw a brand's social media post or went to their social media page0.4Participated in the brand's loyalty or subscription program0.35
34Saw an adult tobacco/nicotine consumer post about it on social media0.38Used paper coupon for the brand0.23
Sheet3
Cell Formulas
RangeFormula
F3:G34F3=LET( x,B3:C34,y,B3:B34, DROP(REDUCE("",INDEX(SORT(FILTER(x,ISNUMBER(SEARCH("NET",y))),2,-1),0,1),LAMBDA(a,b,VSTACK(a,SORT(FILTER(x,SCAN("",y,LAMBDA(a,b,IF(ISNUMBER(SEARCH("NET",b)),b,a)))=b),2,-1)))),1) )
Dynamic array formulas.
 
Last edited:
Upvote 0
@Peter_SSs 's solution without a helper.
Book1
BCDEFG
1InputOuput
2
3(NET) IN/AROUND STORE0.87(NET) IN/AROUND STORE0.87
4Featured prominently on the shelf at a store0.63Saw product inside of a store0.66
5Saw signs or ads inside or outside of a store0.53Featured prominently on the shelf at a store0.63
6Saw product inside of a store0.66Saw signs or ads inside or outside of a store0.53
7Heard about it from a store clerk0.34Visited a brand shop / pop-up store0.43
8Heard about it from a representative of the brand at a store0.33Heard about it from a store clerk0.34
9Visited a brand shop / pop-up store0.43Heard about it from a representative of the brand at a store0.33
10(NET) ADVERTISEMENT0.66(NET) WOM / OVERHEARD0.8
11Saw an ad on TV or video streaming service0.36Saw an adult tobacco/nicotine consumer using it0.56
12Saw an ad in a magazine0.4Recommended by friends or family0.53
13Saw an ad online (banner, pop-up)0.4Heard about it from an adult tobacco/nicotine consumer0.45
14Saw the brand advertised at an event/concert0.31Saw in news article or clip0.32
15Heard an ad when listening to the radio, streaming music, or a podcast0.35(NET) ONLINE / SOCIAL MEDIA0.72
16(NET) WOM / OVERHEARD0.8Saw it on an online tobacco retailer website0.44
17Recommended by friends or family0.53Went to a brand's website0.44
18Heard about it from an adult tobacco/nicotine consumer0.45Saw a brand's social media post or went to their social media page0.4
19Saw an adult tobacco/nicotine consumer using it0.56Read about it when doing an online search0.39
20Saw in news article or clip0.32Saw an adult tobacco/nicotine consumer post about it on social media0.38
21(NET) BRAND MARKETING0.6(NET) ADVERTISEMENT0.66
22Received something in the mail from the brand (flyer, leaflet, etc.)0.35Saw an ad in a magazine0.4
23Received an email from the brand0.42Saw an ad online (banner, pop-up)0.4
24Received a text message from the brand0.33Saw an ad on TV or video streaming service0.36
25(NET) PROMOTIONAL0.54Heard an ad when listening to the radio, streaming music, or a podcast0.35
26Used paper coupon for the brand0.23Saw the brand advertised at an event/concert0.31
27Used mobile coupon for the brand0.36(NET) BRAND MARKETING0.6
28Participated in the brand's loyalty or subscription program0.35Received an email from the brand0.42
29(NET) ONLINE / SOCIAL MEDIA0.72Received something in the mail from the brand (flyer, leaflet, etc.)0.35
30Saw it on an online tobacco retailer website0.44Received a text message from the brand0.33
31Read about it when doing an online search0.39(NET) PROMOTIONAL0.54
32Went to a brand's website0.44Used mobile coupon for the brand0.36
33Saw a brand's social media post or went to their social media page0.4Participated in the brand's loyalty or subscription program0.35
34Saw an adult tobacco/nicotine consumer post about it on social media0.38Used paper coupon for the brand0.23
Sheet4
Cell Formulas
RangeFormula
F3:G34F3=SORTBY(B3:C34,MAP(B3:B34,C3:C34,LAMBDA(a,b,XLOOKUP("(NET)*",B3:a,C3:b,,2,-1)))*10^6+C3:C34*10^3,-1)
Dynamic array formulas.
 
Upvote 0
@Peter_SSs 's solution without a helper.
Book1
BCDEFG
1InputOuput
2
3(NET) IN/AROUND STORE0.87(NET) IN/AROUND STORE0.87
4Featured prominently on the shelf at a store0.63Saw product inside of a store0.66
5Saw signs or ads inside or outside of a store0.53Featured prominently on the shelf at a store0.63
6Saw product inside of a store0.66Saw signs or ads inside or outside of a store0.53
7Heard about it from a store clerk0.34Visited a brand shop / pop-up store0.43
8Heard about it from a representative of the brand at a store0.33Heard about it from a store clerk0.34
9Visited a brand shop / pop-up store0.43Heard about it from a representative of the brand at a store0.33
10(NET) ADVERTISEMENT0.66(NET) WOM / OVERHEARD0.8
11Saw an ad on TV or video streaming service0.36Saw an adult tobacco/nicotine consumer using it0.56
12Saw an ad in a magazine0.4Recommended by friends or family0.53
13Saw an ad online (banner, pop-up)0.4Heard about it from an adult tobacco/nicotine consumer0.45
14Saw the brand advertised at an event/concert0.31Saw in news article or clip0.32
15Heard an ad when listening to the radio, streaming music, or a podcast0.35(NET) ONLINE / SOCIAL MEDIA0.72
16(NET) WOM / OVERHEARD0.8Saw it on an online tobacco retailer website0.44
17Recommended by friends or family0.53Went to a brand's website0.44
18Heard about it from an adult tobacco/nicotine consumer0.45Saw a brand's social media post or went to their social media page0.4
19Saw an adult tobacco/nicotine consumer using it0.56Read about it when doing an online search0.39
20Saw in news article or clip0.32Saw an adult tobacco/nicotine consumer post about it on social media0.38
21(NET) BRAND MARKETING0.6(NET) ADVERTISEMENT0.66
22Received something in the mail from the brand (flyer, leaflet, etc.)0.35Saw an ad in a magazine0.4
23Received an email from the brand0.42Saw an ad online (banner, pop-up)0.4
24Received a text message from the brand0.33Saw an ad on TV or video streaming service0.36
25(NET) PROMOTIONAL0.54Heard an ad when listening to the radio, streaming music, or a podcast0.35
26Used paper coupon for the brand0.23Saw the brand advertised at an event/concert0.31
27Used mobile coupon for the brand0.36(NET) BRAND MARKETING0.6
28Participated in the brand's loyalty or subscription program0.35Received an email from the brand0.42
29(NET) ONLINE / SOCIAL MEDIA0.72Received something in the mail from the brand (flyer, leaflet, etc.)0.35
30Saw it on an online tobacco retailer website0.44Received a text message from the brand0.33
31Read about it when doing an online search0.39(NET) PROMOTIONAL0.54
32Went to a brand's website0.44Used mobile coupon for the brand0.36
33Saw a brand's social media post or went to their social media page0.4Participated in the brand's loyalty or subscription program0.35
34Saw an adult tobacco/nicotine consumer post about it on social media0.38Used paper coupon for the brand0.23
Sheet4
Cell Formulas
RangeFormula
F3:G34F3=SORTBY(B3:C34,MAP(B3:B34,C3:C34,LAMBDA(a,b,XLOOKUP("(NET)*",B3:a,C3:b,,2,-1)))*10^6+C3:C34*10^3,-1)
Dynamic array formulas.
Thank you so much Sir for your support on this :)

Thank you so much Team for making our work-life balance easy.....!!! As usual...

Sir! could you please suggest any website or ref. link where I can refer to all the functions with examples
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,181
Members
453,021
Latest member
Justyna P

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