Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

up vote 4 down vote accepted
=INDEX(Database!E$5:E$50,MATCH(TRUE,INDEX((Database!E$5:E$50<>""),0),0))

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

 
discard

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.