Multiple iferror not working

sharkadder

New Member
Joined
Jan 30, 2019
Messages
2
Hi there,

I have a Spreadsheet which has some categories within it, for simplistic sake i have category AA and category BB. What i am wanting to do is to display all values vertically which match category AA and category BB from within a table. For some reason, the first iferror works flawlessly but any others i add to the formula always fail. Does anybody know what could be the problem here?

Shown is a copy of my Spreadsheet view (i will remove this once this is solved for anybody who wonders where it went in future):


Spreadsheet.png

The formula i have in cell H3 down to H10 is as follows:
{=IFERROR(INDEX($C$3:$C$10, SMALL(IF($E$3=$B$3:$B$10, ROW($B$3:$B$10)-ROW($B$3)+1), ROW(1:1))),IFERROR(INDEX($C$3:$C$10, SMALL(IF($E$4=$B$3:$B$10, ROW($B$3:$B$10)-ROW($B$3)+1), ROW(1:1))),"" ) )}

You can see that it successfully pulls out the items which match category AA under column H, but not the items which match category BB. I should also point out that ROW(1:1) does increment to 2:2, 3:3 etc. as i use the autofill
 

Excel Facts

What does custom number format of ;;; mean?
Three semi-colons will hide the value in the cell. Although most people use white font instead.
Just to clarify here, column H is the one which says "Testing cat display" as the heading. You will see that the values display for category AA but not for category BB under this column. Does anybody have the correct formula? Column B is the Category column in blue and column C is the one titled Description. Column E is the Category. I have attached a new screenshot as the other one was a bit confusing:
Spreadsheet.png
 
Upvote 0
No doubt there will be a better way but offhand i cant think but this works for two categories:

=IFERROR(INDEX($C$3:$C$10, SMALL(IF(($E$3=$B$3:$B$10)+($E$4=$B$3:$B$10),ROW($B$3:$B$10)-ROW($B$3)+1),ROW(1:1))),"")
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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