=IF(ISBLANK help

tidnab312

New Member
Joined
Jun 23, 2011
Messages
10
Somewhere my syntax is wrong
This cell value =INDIRECT("'"&F24 &"'!G25") works fine but if the value is blank it returns a 0

so I tried this
=IF(ISBLANK(INDIRECT("'"&F24 &"'!G25"),"",INDIRECT("'"&F24 &"'!G25")

I have a feeling I'm missing a ' or an ) somewhere but I can't figure it out :(
 

Excel Facts

Test for Multiple Conditions in IF?
Use AND(test, test, test, test) or OR(test, test, test, ...) as the logical_test argument of IF.
I tried that syntax and it keeps giving an error and pointing to the ,"", section.

secondly,

It's not just !G25 it's the entire value of INDIRECT("'"&F24&"'!G25") that will be blank

=IF(ISBLANK(INDIRECT("'"&F24&"'!G25"),"",INDIRECT("'"&F24&"'!G25"))

the =INDIRECT("'"&F24 &"'!"&G25) works fine I just want it to return "" if it's blank and returnthe value =INDIRECT("'"&F24 &"'!"&G27) if it's not blank
 
Upvote 0
What version of Excel do you have?

Maybe...

2007+
=IFERROR(INDIRECT("'"&F24&"'!G25"),"")

2003
=IF(ISERROR(INDIRECT("'"&F24&"'!G25")),"",INDIRECT("'"&F24&"'!G25"))
 
Upvote 0
Somewhere my syntax is wrong
This cell value =INDIRECT("'"&F24 &"'!G25") works fine but if the value is blank it returns a 0

so I tried this
=IF(ISBLANK(INDIRECT("'"&F24 &"'!G25"),"",INDIRECT("'"&F24 &"'!G25")

I have a feeling I'm missing a ' or an ) somewhere but I can't figure it out :(
Try it like this:

=IF(INDIRECT("'"&F24 &"'!G25")="","",INDIRECT("'"&F24 &"'!G25"))
 
Upvote 0
sweet 2 solutions both jeffrey and T Valco's solutions worked :biggrin:
gotta add this to my stash of knowledge
THANKS!!

repairman... I'm using 2007 and didn't have any luck with that string working :S now I just gotta figure out the other solutions worked :laugh:


Thanks Again!!!
 
Upvote 0
sweet 2 solutions both jeffrey and T Valco's solutions worked :biggrin:
gotta add this to my stash of knowledge
THANKS!!

repairman... I'm using 2007 and didn't have any luck with that string working :S now I just gotta figure out the other solutions worked :laugh:


Thanks Again!!!
You're welcome. Thanks for the feedback! :cool:
 
Upvote 0

Forum statistics

Threads
1,224,609
Messages
6,179,882
Members
452,948
Latest member
Dupuhini

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