How to make my index / match not show 0 and show "No Data" Instead

aedctalk

Board Regular
Joined
Oct 9, 2010
Messages
156
Hello.. when i have values the below code works great. If i have no value it shows a zero though :(

=IF(ISERROR(INDEX($F$7:$AS$7,MATCH(AX148,$F$42:$AS$42,0))),AW143,INDEX($F$7:$AS$7,MATCH(AX147,$F$42: $AS$42,0)))

I've tried setting AW143 to ="No Data" and that worked for half my cells.. however the othe half still show 0..


Are there any other alternative methods of showing "No Data" if the value is = 0 ? instead of 0?
 
Thank You!


Code:
=IF(ISNA(MATCH(AX147,$F$42:$AS$42,0)),"No  Data",IF(INDEX($F$7:$AS$7,MATCH(AX147,$F$42:$AS$42,0))="","No  Data",INDEX($F$7:$AS$7,MATCH(AX147,$F$42:$AS$42,0))))

Worked Perfectly! :)

Mind if i ask what ISNA does or stands for? Never seen that one before :P

Interesting to observe that you want to see one type of result:

1) No Data, when AX147 is not in $F$42:$AS$42, trapping an #N/A result; And,

2) No Data, when AX147 is available but the corresponding cell is empty, avoiding a 0 read as result.

What I suggested is fast and gives you a differentiated result.

When case 1 is in effect, we get No Data from AW143, housing that very string.

When case 2 is in effect, we get a blank, that is, "" which is due to the T() function.

If you realy don't care about differentiating, return blank for both cases with:

=LOOKUP(REPT("z",255),CHOOSE({1,2},"",T(INDEX($F$7:$AS$7,MATCH(AX147,$F$42: $AS$42,0)))))
 
Upvote 0

Excel Facts

Quick Sum
Select a range of cells. The total appears in bottom right of Excel screen. Right-click total to add Max, Min, Count, Average.

Forum statistics

Threads
1,224,603
Messages
6,179,849
Members
452,948
Latest member
UsmanAli786

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