Excel table formula if and then?
I want to create an Excel spreadsheet that displays the following:
One column contains the age and then there are two more columns for badges level 1 and level 2. The cell of level 2 (column J) should be orange if the following conditions are met
- Age 13 or older (column D) and
- Date entered at level 1 (column I)
which formula do I need
Das ist wenn ich mich richtig erinnere nur mit VBA sinnvoll möglich, da bedingte Formatierungen sich entweder auf die Zelle selbst oder eine fixe Formel beziehen, die man dann für jede Zelle extra erstellen müsste.
Einfacher wäre es wenn man eine Statusspalte mit einer geschachtelten Wenn-Funktion erstellt, die dann meinetwegen je nach Bedingungen 0, 1 oder 2 als Ergebnis bekommt und davon abhängig kann man die Zelle bedingt formatieren.
No, that's fine. The "fixed formula" can also have a relative reference.
This is generally preferable, partly because the result can then be used further in the table.
Nesting means you don't need the If function for this use case.
Wouldn't it be much easier to simply put the result (if it's true) into the cell instead of a cell color?
For the alternative, you can simply use two "", then it will remain empty if the condition is not met.
example
=if(A2=7;"Bingo";"")
z.B. so
Bedingte Formatierung mit Formel.
=UND($D>=13;$I<>““)
I tried but somehow it doesn't work. I've added something above, maybe it will work then.
The answer from is almost correct.
When the conditional formatting area starts in row 2, this is the formula:
Once you have created the conditional formatting, you can open it again via "Conditional Formatting" > "Manage Rules…" and enter the range to which the conditional formatting should apply in the "Applies to" field.