Conditional Format a row of values that sum up to but not over x

wagsme

New Member
Joined
Jun 4, 2018
Messages
1
I have a row of values B:W that I would like to highlight if they sum up to a value in column A. And copy that row CF to 600 rows below. A visual of how many days it took a product to sell through.

[FONT=&quot]sales units[/FONT]
[FONT=&quot]1/1/18[/FONT]​
[FONT=&quot]1/2/18[/FONT]​
[FONT=&quot]1/3/18[/FONT]​
[FONT=&quot]1/4/18[/FONT]​
[FONT=&quot]1/5/18[/FONT]​
[FONT=&quot]1/6/18[/FONT]​
[FONT=&quot]22[/FONT]​
[FONT=&quot]10[/FONT]​
[FONT=&quot]24[/FONT]​
[FONT=&quot]9[/FONT]​
[FONT=&quot]18[/FONT]​
[FONT=&quot]29[/FONT]​
[FONT=&quot]4[/FONT]​
[FONT=&quot]45[/FONT]​
[FONT=&quot]9[/FONT]​
[FONT=&quot]19[/FONT]​
[FONT=&quot]6[/FONT]​
[FONT=&quot]7[/FONT]​
[FONT=&quot]8[/FONT]​
[FONT=&quot]0[/FONT]​
[FONT=&quot]32[/FONT]​
[FONT=&quot]5[/FONT]​
[FONT=&quot]22[/FONT]​
[FONT=&quot]7[/FONT]​
[FONT=&quot]9[/FONT]​
[FONT=&quot]2[/FONT]​
[FONT=&quot]18[/FONT]​
[FONT=&quot]76[/FONT]​
[FONT=&quot]22[/FONT]​
[FONT=&quot]11[/FONT]​
[FONT=&quot]22[/FONT]​
[FONT=&quot]14[/FONT]​
[FONT=&quot]44[/FONT]​
[FONT=&quot]16[/FONT]​
[FONT=&quot]23[/FONT]​
[FONT=&quot]9[/FONT]​
[FONT=&quot]6[/FONT]​
[FONT=&quot]9[/FONT]​
[FONT=&quot]4[/FONT]​
[FONT=&quot]0[/FONT]​
[FONT=&quot]5[/FONT]​
[FONT=&quot]88[/FONT]​
[FONT=&quot]44[/FONT]​
[FONT=&quot]22[/FONT]​
[FONT=&quot]12[/FONT]​
[FONT=&quot]34[/FONT]​
[FONT=&quot]28[/FONT]​
[FONT=&quot]31[/FONT]​

<tbody> </tbody>
 

Excel Facts

When did Power Query debut in Excel?
Although it was an add-in in Excel 2010 & Excel 2013, Power Query became a part of Excel in 2016, in Data, Get & Transform Data.
OK, assuming that your data starts in cell B2, you can first highlight ALL of column B (as I don't think there would be any situation in which that should NOT be highlighted, right?).

Then, select the range C2 down to the last row and column of your data.
Then, apply this Conditional Formatting formula:
Code:
=OR(SUM($B2:C2)<$A2,AND(SUM($B2:B2)<$A2,SUM($B2:C2)>=$A2))
and choose the yellow highlighting option.
 
Upvote 0

Forum statistics

Threads
1,216,175
Messages
6,129,300
Members
449,499
Latest member
HockeyBoi

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