error when blank - please help

J

Jeze77

Good morning,

When $N$16:$N$25 in the formula below contains blanks, it returns #NA How
can i modify this formula to ignore blanks?

{=INDEX([NEAST2_1.XLW]Sheet1!$A$16:$A$25,
IF(ISERROR(MATCH(-MIN(ABS([NEAST2_1.XLW]Sheet1!$N$16:$N$25)),
[NEAST2_1.XLW]Sheet1!$N$16:$N$25,
0)),MATCH(MIN(ABS([NEAST2_1.XLW]Sheet1!$N$16:$N$25)),
[NEAST2_1.XLW]Sheet1!$N$16:$N$25,
0),MATCH(-MIN(ABS([NEAST2_1.XLW]Sheet1!$N$16:$N$25)),
[NEAST2_1.XLW]Sheet1!$N$16:$N$25, 0)))}

The formula is finding the # closest to 0 (negatives first) should 0 not
exist and retunring the corresponding rate in column A.

Entering a number into the blank fields is not an option as I have 20 sheets
with many tables.

Thank you in advance for your help!
Jeze
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Shorten a formula 0
Shorten a formula 6
Offset 0
blank error 0
Please help on Index/Match Formula 0
How to bring up a blank cell 2
hiding an error value, using INDEX/MATCH 3
Vlookup and If statement help 1

Top