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?
 

Excel Facts

Copy PDF to Excel
Select data in PDF. Paste to Microsoft Word. Copy from Word and paste to Excel.
Custom formatting would do it...
#,##0;-#,##0;
or
#,##0;-#,##0;"no data"
 
Upvote 0
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?

What do you have in F7:AS7 - text or numeric data?
 
Upvote 0
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?
When you get a result of 0 is it because the cell in F7:AS7 is empty?

What type of data is in F7:AS7? Is it text? Numbers? Could be both?
 
Upvote 0
Hello! Thanks for the quick responses

F7:AS is formattted general and has peoples names

row 42 is currency values

when a name is entered the 0 dissapears and show sthe persons name.

However when there are no names at all i show 0's and want to show "No Data" (refering to above formula i typed in first post)

hope that makes sense.
 
Upvote 0
Hello! Thanks for the quick responses

F7:AS is formattted general and has peoples names

row 42 is currency values

when a name is entered the 0 dissapears and show sthe persons name.

However when there are no names at all i show 0's and want to show "No Data" (refering to above formula i typed in first post)

hope that makes sense.

Try...

=LOOKUP(REPT("z",255),CHOOSE({1,2},AW143,T(INDEX($F$7:$AS$7,MATCH(AX147,$F$42: $AS$42,0)))))
 
Upvote 0
Hello! Thanks for the quick responses

F7:AS is formattted general and has peoples names

row 42 is currency values

when a name is entered the 0 dissapears and show sthe persons name.

However when there are no names at all i show 0's and want to show "No Data" (refering to above formula i typed in first post)

hope that makes sense.
Try this...

=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))))
 
Upvote 0
Aladin Akyurek said:
Try...

=LOOKUP(REPT("z",255),CHOOSE({1,2},AW143,T(INDEX($F$7:$AS$7,MATCH(AX147,$F$42: $AS$42,0)))))
That won't return "No Data" if the indexed cell is empty.
However when there are no names at all i show 0's and want to show "No Data"
 
Upvote 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
 
Upvote 0
aedctalk said:
Thank You!

=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! :)
You're welcome. Thanks for the feedback!

Mind if i ask what ISNA does or stands for? Never seen that one before :P
It's a logical function that tests for the #N/A error. It means literally: IS NA.

If an error is generated it'll be generated by the MATCH function and it'll be a #N/A error.
 
Upvote 0

Forum statistics

Threads
1,224,602
Messages
6,179,839
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