#N/A invisible

asyamonique

Well-known Member
Joined
Jan 29, 2008
Messages
1,280
Office Version
  1. 2013
Platform
  1. Windows
{=INDEX(A$5:A$24,MATCH(C32,C$5:C$24,0))}

How can i make invisible the #N/A text from empty cells on that code given above?
Thanks
 

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.
Try

=IF(ISNA(MATCH(C32,C$5:C$24,0)),"",INDEX(A$5:A$24,MATCH(C32,C$5:C$24,0)))


Side note, this is not an array formula (doesn't need the {}), does not need to be entered with CTRL + SHIFT + ENTER
 
Upvote 0
Try somethig like this...
Code:
=IF(ISNA(MATCH(C32,C$5:C$24,0)), "", INDEX(A$5:A$24,MATCH(C32,C$5:C$24,0)))
 
Upvote 0
Thanks Guys
icon7.gif
 
Upvote 0
Try somethig like this...
Code:
=IF(ISNA(MATCH(C32,C$5:C$24,0)), "", INDEX(A$5:A$24,MATCH(C32,C$5:C$24,0)))


Code:
Sheet1.Cells(32, 2).Resize(9, 1).Formula = "=INDEX(A$5:A$24,MATCH(C32,C$5:C$24,0))"

How can alter that code? Coz when i put ur formula it is giving error.
When i use it on cell its ok but with that below code none!!
Cheers

Sheet1.Cells(32, 2).Resize(9, 1).Formula = "=IF(ISNA(MATCH(C32,C$5:C$24,0)),"",INDEX(A$5:A$24,MATCH(C32,C$5:C$24,0)))"
 
Last edited:
Upvote 0
The problem is the quotes within the text string of the formula.
Code:
Sheet1.Cells(32, 2).Resize(9, 1).Formula = 
"=IF(ISNA(MATCH(C32,C$5:C$24,0)),[COLOR="Red"]""[/COLOR],INDEX(A$5:A$24,MATCH(C32,C$5:C$24,0)))"

To express two literal quotes within a VBA text string, use two quotes for each or in this case four quotes total.
Code:
Sheet1.Cells(32, 2).Resize(9, 1).Formula = 
"=IF(ISNA(MATCH(C32,C$5:C$24,0)),[COLOR="Red"]""""[/COLOR],INDEX(A$5:A$24,MATCH(C32,C$5:C$24,0)))"

Also, you'll want to express the formula in R1C1 notation so the cell references are correct for each cell in the Range, or put the formula in the 1st cell and use .Autofill to fill it in the other cells.
 
Last edited:
Upvote 0

Forum statistics

Threads
1,213,557
Messages
6,114,288
Members
448,563
Latest member
MushtaqAli

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