Removing #N/A from Array

Tigerexcel

Active Member
Joined
Mar 6, 2020
Messages
493
Office Version
  1. 365
  2. 2019
Platform
  1. Windows
How do you remove the #N/A from this array, have tried IFNA as well to no avail. The 7 in E7 refers to the top 7 sales.

Book1
ABCDE
1SalesTop7
2852599
3529297
458896
5591592
6674592
7812988
8509285
9458#N/A
105368#N/A
11174#N/A
129779#N/A
134043#N/A
14135#N/A
153996#N/A
167362#N/A
179963#N/A
Sheet2
Cell Formulas
RangeFormula
D2:D17D2=IFERROR(LARGE($A$2:$B$17,ROW(INDIRECT("1:"&E1))),"")
Press CTRL+SHIFT+ENTER to enter array formulas.
 
I don't know why you would be, but if you are determined to use that block array method and your original formula, you could use Conditional Formatting just to hide the error values.
Below I have used red font but if you used white font then the errors at least would not be visible.

20 07 14.xlsm
ABCDE
1SalesTop7
2852599
3529297
458896
5591592
6674592
7812988
8509285
9458#N/A
105368#N/A
11174#N/A
129779#N/A
134043#N/A
14135#N/A
153996#N/A
167362#N/A
179963#N/A
Sheet5
Cell Formulas
RangeFormula
D2:D17D2=IFERROR(LARGE($A$2:$B$17,ROW(INDIRECT("1:"&E1))),"")
Press CTRL+SHIFT+ENTER to enter array formulas.
Cells with Conditional Formatting
CellConditionCell FormatStop If True
D2:D17Expression=ISNA(D2)textNO
 
Upvote 0

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Thanks for the last formula Peter, I didn't know you could do that with conditional formatting.
All things considered it might be easier to learn the AGGREGATE function. Appreciate the advice.
 
Upvote 0
All things considered it might be easier to learn the AGGREGATE function.
It is a very useful function & I would recommend learning about it. However, it doesn't do anything special for you for this exercise, you could just as easily stick with using LARGE with this formula, copied down.

20 07 14.xlsm
ABCDE
1SalesTop7
2852599
3529297
458896
5591592
6674592
7812988
8509285
9458 
105368 
11174 
129779 
134043 
14135 
153996 
167362 
179963 
Sheet6
Cell Formulas
RangeFormula
D2:D17D2=IF(ROWS(D$2:D2)>E$1,"",LARGE(A$2:B$17,ROWS(D$2:D2)))
 
Upvote 0

Forum statistics

Threads
1,214,574
Messages
6,120,327
Members
448,956
Latest member
Adamsxl

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top