Conditional formating cells that add up to % of total

Peter h

Active Member
Joined
Dec 8, 2015
Messages
417
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]Initial Weight
[/TD]
[TD]Sieve 1
[/TD]
[TD]Sieve 2
[/TD]
[TD]Sieve 3
[/TD]
[TD]Sieve 4
[/TD]
[TD]Sieve 5
[/TD]
[TD]Pan
[/TD]
[/TR]
[TR]
[TD]100 g
[/TD]
[TD]2
[/TD]
[TD]15
[/TD]
[TD]20
[/TD]
[TD]25
[/TD]
[TD]15
[/TD]
[TD]23
[/TD]
[/TR]
</tbody>[/TABLE]

I would've googled this, but I'm not exactly sure how to word it. What I'd like to do is do conditional formatting for cells that add up to 90% of the total sum of cells in the range. Not sure how to approach this. Here is an example of my data.

I'm doing Sieve analysis at work, and want to be able to see at which point 90% of my sample is making it through the sieve. So, in my example table, the data for Sieve 2 would be the highlighted cell, because adding the data backwards starting with the "Pan" column, I don't add up to 90% until I add Sieve 2.
 

Excel Facts

Last used cell?
Press Ctrl+End to move to what Excel thinks is the last used cell.
I got it figured out. If anyone else is interested. In the conditional formatting putting the formula "=SUM(A2:$G2)>=$A1*.9" and it formats it exactly how I want it.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,182
Members
453,021
Latest member
Mohamed Magdi Tawfiq Emam

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