Conditional formatting with sumifs

Yulyo

Board Regular
Joined
Jul 17, 2017
Messages
94
Hello all,

So i came up with a formula that i must use in conditional formatting, but i just can't make it work. What am i missing?

This is the normal formula that is working if used normally (not in conditional formatting):
=IF(AND(YEAR('Sheet2'!A16)=YEAR(TODAY()); SUMIFS(Table2[Delivery
plan];Table2[Date];"<="&'Sheet2'!$A$16)='Sheet2'!$D$16); "OK"; "NOTOK")

What this formula does, is this:
- if the year in cell A16 from Sheet2 is in this year
and
sum from column "Delivery plan" is identical with cell D16 from Sheet2,
THEN
fill cell with green

Any help please? :)
 
Which cell(s) are you trying to colour?
and is it on sheet2 or on the sheet with the table?
 
Upvote 0

Excel Facts

Copy a format multiple times
Select a formatted range. Double-click the Format Painter (left side of Home tab). You can paste formatting multiple times. Esc to stop

Forum statistics

Threads
1,213,536
Messages
6,114,205
Members
448,554
Latest member
Gleisner2

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