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

  1. Age 13 or older (column D) and
  2. Date entered at level 1 (column I)

which formula do I need

(1 votes)
Loading...

Similar Posts

Subscribe
Notify of
7 Answers
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
Morfi655
10 months ago

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.

gfntom
9 months ago
Reply to  Morfi655

because conditional formatting refers either to the cell itself or to a fixed formula, which would then have to be created separately for each cell.

No, that's fine. The "fixed formula" can also have a relative reference.

It would be easier if you created a status column with a nested if function, which then gets 0, 1 or 2 as a result depending on the conditions and depending on this you can conditionally format the cell.

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.

noname68
9 months ago

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";"")

GutenTag2003
10 months ago

z.B. so

floppydisk
10 months ago

Bedingte Formatierung mit Formel.

=UND($D>=13;$I<>““)

daCypher
9 months ago

The answer from is almost correct.

When the conditional formatting area starts in row 2, this is the formula:

 =UND($D2>=13;$I2<>"")

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.