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 have a function =INDEX(Database!E$5:E$50,MATCH(TRUE,INDEX((Database!E$5:E$50<>0),0),0)) that searches a column, finds the first number and returns it. Right now it is ignoring cells in the column that have a value =0.

So, basically what's happening is that the function returns 22 as the first result instead of 0.00. enter image description here

I want it to ignore blank cells, but not cells with a value = 0 in them.

It's most likely a minor adjustment but I'm having a little difficulty. Thanks

share|improve this question
up vote 4 down vote accepted

seems to work to me... Substituting the 0 in your comparison with "".

share|improve this answer
Perfect. I Knew it was small. – andrewk Dec 13 '12 at 23:48

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.