#N/A invisible

asyamonique

Well-known Member
Joined
Jan 29, 2008
Messages
1,126
{=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
 

Some videos you may like

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.

Jonmo1

MrExcel MVP
Joined
Oct 12, 2006
Messages
44,061
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
Joined
Sep 2, 2009
Messages
16,400
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)))
 

asyamonique

Well-known Member
Joined
Jan 29, 2008
Messages
1,126
Thanks Guys
icon7.gif
 

asyamonique

Well-known Member
Joined
Jan 29, 2008
Messages
1,126
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
Joined
Sep 2, 2009
Messages
16,400
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:

Watch MrExcel Video

Forum statistics

Threads
1,128,122
Messages
5,628,822
Members
416,342
Latest member
BlueDevil12

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
Top