Is it possible to have 2 formulas in one cell?

e.g. An IF formula followed by a CountIF