Extracting all names whose sale cumulative percentage is less than 75

dali1962

New Member
Joined
Jun 7, 2017
Messages
42
ProductSalesSales%Descending OrderCumulative percentWhat I need
A12020%40%40%C1
b11010%23%63%B1
C14040%20%83%
d12323%10%

<tbody>
</tbody>

What i need: product names who contribute maximum to entire sales. However it should only display till the cumulative percentage reaches 75%.

I want all this only with excel formula and not macros or manual methods of sorting the data through filter as i would need to change it every month as per new sale data.

Please help
 
Last edited:

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
Please try this code:

Sub FilterTo1Criteria()


With Sheet1


.AutoFilterMode = False


.Range("A1:E1").AutoFilter


.Range("A1:E1").AutoFilter Field:=5, Criteria1:="<95%"

End With
Range("A:A").SpecialCells(xlCellTypeVisible).Copy


Range("G1").Select
ActiveSheet.Paste

Range("E:E").SpecialCells(xlCellTypeVisible).Copy

Range("H1").Select
ActiveSheet.Paste



End Sub
 
Upvote 0
What i need: product names who contribute maximum to entire sales.

Hi, shouldn't the second value you need be D1 and not B1?

If so - here is a possible formula based option if I've correctly understood.


Excel 2013
ABCDEF
1ProductSalesSales%Descending OrderCumulative percentWhat I need
2A12020%40%40%C1
3b11010%23%63%D1
4C14040%20%83%
5D12323%10%
Sheet1
Cell Formulas
RangeFormula
F2=IF(OR(E2="",E2>75%),"",INDEX($A$2:$A$5,AGGREGATE(15,6,(ROW($A$2:$A$5)-ROW($A$2)+1)/($C$2:$C$5=D2),COUNTIFS($D$2:D2,D2))))
 
Upvote 0
i tried the same formula, and my data is same as i mentioned above just that it has over 73000 rows.

what to do?
 
Upvote 0

Forum statistics

Threads
1,214,924
Messages
6,122,293
Members
449,077
Latest member
Rkmenon

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