iserror and index match

justme1122

New Member
Joined
Mar 6, 2011
Messages
47
Hi

So I just added iserror to my formluar and its crazzy big. will be used in 10000+ cells
I also noticed that if I forget to press ctrl+shift+enter I still get a value of 0 when i only really want a 0 if there is no data to get.

Any ideas on how make is smaller?

Code:
{=IF(ISERROR(INDEX(INDIRECT(F$1&"!$H:$H"),MATCH(1,(Data!$A2=INDIRECT(F$1&"!$B:$B"))*(Data!$B2=INDIRECT(F$1&"!$A:$A")),0))),0,INDEX(INDIRECT(F$1&"!$H:$H"),MATCH(1,(Data!$A2=INDIRECT(F$1&"!$B:$B"))*(Data!$B2=INDIRECT(F$1&"!$A:$A")),0)))}
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Hi,

Rather than us trying to guess what your formula is doing, could you share a small example to illustrate the point?

You're much more likely to get a response if you do this.

Matty
 
Upvote 0
Hi

So I just added iserror to my formluar and its crazzy big. will be used in 10000+ cells
I also noticed that if I forget to press ctrl+shift+enter I still get a value of 0 when i only really want a 0 if there is no data to get.

Any ideas on how make is smaller?

Code:
{=IF(ISERROR(INDEX(INDIRECT(F$1&"!$H:$H"),MATCH(1,(Data!$A2=INDIRECT(F$1&"!$B:$B"))*(Data!$B2=INDIRECT(F$1&"!$A:$A")),0))),0,INDEX(INDIRECT(F$1&"!$H:$H"),MATCH(1,(Data!$A2=INDIRECT(F$1&"!$B:$B"))*(Data!$B2=INDIRECT(F$1&"!$A:$A")),0)))}
What version of Excel are you using?

When the formula DOESN'T return an error, what type of data does it return? Does it return TEXT? Numbers? Could return either?
 
Upvote 0

Forum statistics

Threads
1,224,557
Messages
6,179,508
Members
452,918
Latest member
Davion615

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