kilograham wrote:
your logic is smarter than me. Can you explain what you did?
Sure. I actually find the logic easier to follow than nested ifs, which sometimes can get confusing.
All the formula says is:
If A2 contains something other than "media" or B2 is blank then put a blank. Otherwise, put the value that appears in B2.
The OR(A2<>"media",B2="") is the part that tests whether A2 has something other than "media" or B2 is blank.
Put that part as the <test> in the usual IF(<test>,<value-if-true>,<value-if-false>) and you get:
=IF(OR(A2<>"media",B2=""),"",B2)
Short and sweet.
If you haven't done so already already, you can check out Formulas and Functions Help for IF. (You can also get there via Help > Formulas and Functions Help in your menu.)
SG