Solved

How to avoid #N/A values in an array with Index - Match

Posted on 2015-02-18
4
370 Views
Last Modified: 2015-02-19
In my workbook is a worksheet with some simple test data.

Row 5, 7, 9 are paste values from the general workbook. Row 5 has all numeric values. Row 7 & 9 have some values that are #N/A by default as to allow for graphing purposes.
The formula I use is: {=INDEX(B5:FZ5,MATCH(MIN(IF(B5:FZ5-K12>=0,B5:FZ5,FALSE)),IF(B5:FZ5-K12>=0,B5:FZ5,FALSE),0))} as an array and works perfectly in Row 5 since there are no #N/A values there.

How do I get the same formula to ignore the #N/A values in Rows 7 & 9 and still give me a proper result?
PROBLEM.xlsx
0
Comment
Question by:DougDodge
  • 2
4 Comments
 
LVL 48

Accepted Solution

by:
Rgonzo1971 earned 500 total points
ID: 40618312
HI,

pls try in O12

as Array formula

=IFERROR(INDEX(B7:NB7,MATCH(MIN(IFERROR(IF(B7:NB7-K12>=0,B7:NB7,FALSE),FALSE)),IFERROR(IF(B7:NB7-K12>=0,B7:NB7,FALSE),FALSE),0)),"")


Regards
0
 
LVL 29

Expert Comment

by:gowflow
ID: 40618389
Not for points as already Rgonzo provided the answer. I made the corrections in the workbook and attached it as need to make a small comment you should ALWAYS account for IFERROR in these formulas even if you feel that some of them could be ok without.

Just a question you requested to change the formula in the red cells but question is how you get the data in row 7 and 9 only from these red cells ? or there is also other formulas ??? as we only see values except the red cells and the ones beside it which have been all corrected. So if you have somewhere else also formulas you also need to account for an IFERROR as you may possibly get some #NA coming from other places.

Still here waiting to help you on the other pending issues when time is right for you.
gowflow
PROBLEM-V01.xlsx
0
 

Author Closing Comment

by:DougDodge
ID: 40618562
Thank you kind sir, you saved me from a troubling problem.
0
 
LVL 29

Expert Comment

by:gowflow
ID: 40618902
@DougDodge
As a side note I just noticed you requested the Linear progressing question to be deleted. Will be glad to assist if you have other project simply put a link in here for any help needed.

gowflow
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Deploying a Microsoft Access application in a Citrix environment is not difficult but takes a few steps. However, Citrix system people are often of little help, as they typically know next to nothing about Access. The script provided here will take …
Using Word 2013, I was experiencing some incredible lag when typing.  Here's what worked for me....
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…
This Micro Tutorial demonstrate the bugs in Microsoft Excel for Mac with Pivot Charts.

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now