Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to use two formulas in one line. The aim is to sum two columns, A and B, in C with two conditions:

First, if cells in A or B are blank, then formula in column C will return blank.
Second, if B is greater than A, then leave cell blank.

Both formula should be used in the same cell simultaneously.

share|improve this question

Try this (in C2):


You can then fill this formula down column C.

share|improve this answer
Thanks a lot. it worked perfectly well. Just i changed – Abrar Nov 20 '12 at 22:34

You could check for 2 numbers with COUNT, e.g.


share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.