If Index Match Formula

ir121973

Active Member
Joined
Feb 9, 2008
Messages
371
Hi, I wonder whether someone may be able to help me please.

I'm using the folllowing formula to copy values from one sheet to another within the same workbook.

=IF(ISNA(INDEX(AprDaysInMonth,MATCH($A8,ResourceSummaryNames,0))),0,INDEX(AprDaysInMonth,MATCH($A8,ResourceSummaryNames,0)))-IF(ISNA(INDEX(AprForecast,MATCH($A8,ResourceSummaryNames,0))),0,INDEX(AprForecast,MATCH($A8,ResourceSummaryNames,0)))

For info, rather than using cell references I'm using 'Named Ranges' which are:

AprDaysInMonth
ResourceSummaryNames
AprForecast

The formula works well except when cell A8 is blank where the result of the formula becomes zero.

Rather than displaying zero I'd like to display a blank cell, but I've been unable to get this to work.

I just wondered whether someone could possibly look at this please and offer some guidance on how I may be able to achieve this.

Many thanks and kind regards

Chris
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
Hi,

Try something like,

=IF((Your existing formula)=0,"",(Your existing formula))

Jai
 
Upvote 0
If you are just looking for the display result, you can simplify this.... just take the range you are using these cells in, highlight it, and hit control + 1 to bring up the format cells dialog. Click on Custom and in the inputbox below type: enter ;""; (semi colon followed by 2 double quotes followed by a semi colon). This will format that range to show a blank when the answer is 0. 0 will still be in the cell, but it will show a blank.
 
Upvote 0
Hi @jai, @CodeNinja and Aladin Akyurek, thank you all very much for taking the time to reply to my post.

Using the solution that @jai provided as a base, I was able to adapt this to suit my purposes and it works great.

Many thanks and kind regards

Chris
 
Upvote 0
Hi @jai, @CodeNinja and Aladin Akyurek, thank you all very much for taking the time to reply to my post.

Using the solution that @jai provided as a base, I was able to adapt this to suit my purposes and it works great.

Many thanks and kind regards

Chris

Define BigNum as referring to:

=9.99999999999999E+307

Rich (BB code):
=LOOKUP(BigNum,CHOOSE({1,2},0,
    INDEX(AprDaysInMonth,MATCH($A8,ResourceSummaryNames,0))))-
 LOOKUP(BigNum,CHOOSE({1,2},0,
    INDEX(AprForecast,MATCH($A8,ResourceSummaryNames,0))))

Custom format the formula cell as e.g.:

[=0]"";General
 
Upvote 0

Forum statistics

Threads
1,203,465
Messages
6,055,579
Members
444,799
Latest member
CraigCrowhurst

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