Hello,
i am facing the following issue: When trying to apply a conditional formula with "AGGREGATE" on a worksheet, it does not seem to have an effect in Excel. If i inspect the formula in Excel, it is there but has no effect. Also can you confirm, that i always have to use the english formula in the code? My local system and Excel is german.
The task is to colorize the background with the AGGREGATE formula. I managed to apply a formula with MOD and ROW, but not with AGGREGATE
var range = _worksheet.Range[2, 1, _worksheet.LastRow, _worksheet.LastColumn];
var conditionalFormats = _worksheet.ConditionalFormats.Add();
conditionalFormats.AddRange(range);
var condition = conditionalFormats.AddCondition();
condition.FormatType = ConditionalFormatType.Formula;
//condition.FirstFormula = "=MOD(ROW(),2)=0"; <= This one works
condition.FirstFormula = "=AGGREGATE(3,5,A$2:A2)>=3";
condition.BackColor = Color.FromArgb(255, 220, 230, 241);
Thank You and kind regards