#NUM! error in Array Formula - trying to use IFERROR to fix but not working

LauraWork

Board Regular
Joined
Jan 7, 2013
Messages
79
Hi all

can anyone help:

Heres my original formula for an array lookup and its working fine but I get #NUM! errors when it cant find any more matches so I found a IFERROR formula modified it to fit mine but it doesnt work: where have I gone wrong - I am entering it as an array CTRL SHIFT ENTER:

original
=INDEX(Lookup!$B$1:$F$6499,SMALL(IF(Lookup!$B$1:$B$6499=$A3,ROW(Lookup!$B$1:$B$6499)),ROW($A$1:$M$1)),5)

New
=IFERROR (INDEX(Lookup!$B$1:$F$6499,SMALL(IF(Lookup!$B$1:$B$6499="$A2",ROW(Lookup!$B$1:$B$6499)),ROW($A$1:$M$1)),5),"")

thanks :-)
Laura

 

Excel Facts

What is =ROMAN(40) in Excel?
The Roman numeral for 40 is XL. Bill "MrExcel" Jelen's 40th book was called MrExcel XL.
Sorry my typo: the formula rus down in column B then the 2nd instance in C (looking up row 2) and so on:
Row 2 formula is =INDEX(Lookup!$B$1:$F$6499,SMALL(IF(Lookup!$B$1:$B$6499=$A2,ROW(Lookup!$B$1:$B$6499)),ROW($A$1:$M$1)),5)
the row 3 formula =INDEX(Lookup!$B$1:$F$6499,SMALL(IF(Lookup!$B$1:$B$6499=$A3,ROW(Lookup!$B$1:$B$6499)),ROW($A$1:$M$1)),5)
etc
 
Upvote 0
Hi,

Can you provide a small example of your data as well as an explanation of what you want the formula to deliver?

Matty
 
Upvote 0
original
=INDEX(Lookup!$B$1:$F$6499,SMALL(IF(Lookup!$B$1:$B$6499=$A3,ROW(Lookup!$B$1:$B$6499)),ROW($A$1:$M$1)),5)

New
=IFERROR (INDEX(Lookup!$B$1:$F$6499,SMALL(IF(Lookup!$B$1:$B$6499="$A2",ROW(Lookup!$B$1:$B$6499)),ROW($A$1:$M$1)),5),"")
How does it go if you remove those red double quotes?
 
Upvote 0
Thanks Peter that works - school girl error!!
sometimes I cant see the wood for the trees! :-)









 
Last edited:
Upvote 0
Thanks Peter that works - school girl error!!
sometimes I cant see the wood for the trees! :-)

Where do you enter this formula

=IFERROR (INDEX(Lookup!$B$1:$F$6499,SMALL(IF(Lookup!$B$1:$B$6499=$A2,ROW(Lookup!$B$1:$B$6499)),ROW($A$1:$M$1)),5),"")

and in which direction are you copying it?
 
Upvote 0

Forum statistics

Threads
1,223,214
Messages
6,170,772
Members
452,353
Latest member
strainu

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