Nesting Iferror or Isblank into Index/Match

sultana

New Member
Joined
Jan 4, 2019
Messages
4
Hello from downunder (Sydney),

Im trying to create an item master from approx. 8 spreadsheets. All in different formats. Most have duplicate unique identifiers (SKU code), but some sheets have dirty incorrect data. Ive therefore determined a sequence based on the cleanest source.

I am using the Index/Match formula into a master sheet to consolidate and return 100,000 rows and 50 columns of data. From here, I would like to keep searching through the next workbook (using index/match) if the initial search result returns an error "N/A" or if is blank.

I cant seem to figure out the Isblank bit.

Here is what I have got so far. I have 6 more "tables" to search through.

=IFERROR(INDEX('table 1'!AI:AI,MATCH('Crimson- Item Master WIP'!$Z78686,'table 1'!$AG:$AG,0)),INDEX(table 2'!F:F,MATCH('Crimson- Item Master WIP'!$F78686,'table2'!$A:$A,0)))

Thanks kindly for your help. Pulling my hair out!
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
All you need is to understand that the value if error can also be another IFERROR statement. That is how you can nest them.
 
Upvote 0
Heres a very simple nested iferror:

=IFERROR(A1,IFERROR(B1,IFERROR(C1,IFERROR(D1,E1))))
 
Upvote 0
I just assumed Index/Match works like vlookup, meaning if the "sku"is found on the first table but the data cell is blank it will still see this has a match and not an error. Therefore wont follow the next nested index?
 
Upvote 0
Not the nicest these nested formulas with conditions:

=IF(AND(IFERROR(LEN(INDEX('table 1'!AI:AI,MATCH('Crimson- Item Master WIP'!$Z78686,'table 1'!$AG:$AG,0)))>0,0),NOT(ISERROR(INDEX('table 1'!AI:AI,MATCH('Crimson- Item Master WIP'!$Z78686,'table 1'!$AG:$AG,0))))),INDEX('table 1'!AI:AI,MATCH('Crimson- Item Master WIP'!$Z78686,'table 1'!$AG:$AG,0)),IF(AND(IFERROR(LEN(INDEX('table 2'!AI:AI,MATCH('Crimson- Item Master WIP'!$Z78686,'table 2'!$AG:$AG,0)))>0,0),NOT(ISERROR(INDEX('table 2'!AI:AI,MATCH('Crimson- Item Master WIP'!$Z78686,'table 2'!$AG:$AG,0))))),INDEX('table 2'!AI:AI,MATCH('Crimson- Item Master WIP'!$Z78686,'table 2'!$AG:$AG,0)),"next formula"))
 
Upvote 0
Not the nicest these nested formulas with conditions:

=IF(AND(IFERROR(LEN(INDEX('table 1'!AI:AI,MATCH('Crimson- Item Master WIP'!$Z78686,'table 1'!$AG:$AG,0)))>0,0),NOT(ISERROR(INDEX('table 1'!AI:AI,MATCH('Crimson- Item Master WIP'!$Z78686,'table 1'!$AG:$AG,0))))),INDEX('table 1'!AI:AI,MATCH('Crimson- Item Master WIP'!$Z78686,'table 1'!$AG:$AG,0)),IF(AND(IFERROR(LEN(INDEX('table 2'!AI:AI,MATCH('Crimson- Item Master WIP'!$Z78686,'table 2'!$AG:$AG,0)))>0,0),NOT(ISERROR(INDEX('table 2'!AI:AI,MATCH('Crimson- Item Master WIP'!$Z78686,'table 2'!$AG:$AG,0))))),INDEX('table 2'!AI:AI,MATCH('Crimson- Item Master WIP'!$Z78686,'table 2'!$AG:$AG,0)),"next formula"))


Oh wow!!! Thank you so so so much for helping me with this. Of course! That makes so much sense - you taught me something new. Thank you - worked perfect!!!!!!!!!!! Now to wait for the stupid sheet to calculate LOL. :)
 
Upvote 0

Forum statistics

Threads
1,224,822
Messages
6,181,165
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