#N/A invisible

asyamonique

Well-known Member
{=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

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).

Jonmo1

MrExcel MVP
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

AlphaFrog

MrExcel MVP
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)))``

Thanks Guys

asyamonique

Well-known Member
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:

AlphaFrog

MrExcel MVP
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:

Replies
1
Views
43
Replies
11
Views
264
Replies
2
Views
192
Replies
3
Views
242
Replies
2
Views
114

1,127,256
Messages
5,623,669
Members
415,983
Latest member
MusicMan

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.

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

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