To return blank instead of #N/A

sdoppke

Well-known Member
Joined
Jun 10, 2010
Messages
647
Would anyone be able to help me modify this. I am trying to make it so if the result is #N/A, it will return "" or blank.

=INDEX('Schedule Tool'!$C$1:$BT$1,MATCH(1,OFFSET('Schedule Tool'!$D$2:$BU$2,MATCH(A2,'Schedule Tool'!$A$3:$A$30,0),,1),0))

Thanks everyone in advance for any help

sd
 

Excel Facts

How to show all formulas in Excel?
Press Ctrl+` to show all formulas. Press it again to toggle back to numbers. The grave accent is often under the tilde on US keyboards.
=IF(ISNA(INDEX('Schedule Tool'!$C$1:$BT$1,MATCH(1,OFFSET('Schedule Tool'!$D$2:$BU$2,MATCH(A2,'Schedule Tool'!$A$3:$A$30,0),,1),0))),"",INDEX('Schedule Tool'!$C$1:$BT$1,MATCH(1,OFFSET('Schedule Tool'!$D$2:$BU$2,MATCH(A2,'Schedule Tool'!$A$3:$A$30,0),,1),0)))


try this

This is a simple IF statement, your original formula is in pink, the new part is in blue.

Statement now reads: If "original formula" returns #N/A, change to ""; else, perform "original formula".
 
Last edited:
Upvote 0
=IF(ISNA(INDEX('Schedule Tool'!$C$1:$BT$1,MATCH(1,OFFSET('Schedule Tool'!$D$2:$BU$2,MATCH(A2,'Schedule Tool'!$A$3:$A$30,0),,1),0))),"",INDEX('Schedule Tool'!$C$1:$BT$1,MATCH(1,OFFSET('Schedule Tool'!$D$2:$BU$2,MATCH(A2,'Schedule Tool'!$A$3:$A$30,0),,1),0)))


try this

This is a simple IF statement, your original formula is in pink, the new part is in blue.

Statement now reads: If "original formula" returns #N/A, change to ""; else, perform "original formula".


Thank you soo much, worked perfect!!
 
Upvote 0
Would anyone be able to help me modify this. I am trying to make it so if the result is #N/A, it will return "" or blank.

=INDEX('Schedule Tool'!$C$1:$BT$1,MATCH(1,OFFSET('Schedule Tool'!$D$2:$BU$2,MATCH(A2,'Schedule Tool'!$A$3:$A$30,0),,1),0))

Thanks everyone in advance for any help

sd

Also, if the outcome is expected to be text-valued and you are on an Excel version prior 2007...
Code:
=LOOKUP(REPT("z",255),CHOOSE({1,2},"",
   T(INDEX('Schedule Tool'!$C$1:$BT$1,
       MATCH(1,OFFSET('Schedule Tool'!$D$2:$BU$2,
       MATCH(A2,'Schedule Tool'!$A$3:$A$30,0),,1),0)))))
 
Upvote 0
Would anyone be able to help me modify this. I am trying to make it so if the result is #N/A, it will return "" or blank.

=INDEX('Schedule Tool'!$C$1:$BT$1,MATCH(1,OFFSET('Schedule Tool'!$D$2:$BU$2,MATCH(A2,'Schedule Tool'!$A$3:$A$30,0),,1),0))

Thanks everyone in advance for any help

sd
If you're using Excel 2007 or later...

=IFERROR(INDEX('Schedule Tool'!$C$1:$BT$1,MATCH(1,OFFSET('Schedule Tool'!$D$2:$BU$2,MATCH(A2,'Schedule Tool'!$A$3:$A$30,0),,1),0)),"")
 
Upvote 0

Forum statistics

Threads
1,214,784
Messages
6,121,535
Members
449,037
Latest member
tmmotairi

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