(Msg. 2) Posted: Mon Nov 17, 2008 8:00 pm
Post subject: Re: Condition for worksheet reference [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
Think IF(ISERROR(..) could be used
Try it in this manner:
=IF(L2="","",IF(ISERROR(INDIRECT("'"&L2&"'!B"&ROW($A$2))),"",INDIRECT("'"&L2&"'!B"&ROW($A$2))))
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:20,500 Files:363 Subscribers:64
xdemechanik
---
"JBoyer" wrote:
> This is the function I currently have:
> =IF(L2<>"",INDIRECT("'"&L2&"'!B"&ROW($A$2)),"")
>
> I want to modify it in the following way....
> =IF(L2<>"", {IF STATEMENT} INDIRECT("'"&L2&"'!B"&ROW($A$2)),"")
>
> I want to add another if statement where shown above to check if there is a
> sheet called '"&L2&'"! . So basically IF('"&L2&'"! EXISTS, TRUE, FALSE)
>
> Thanks in advance for any help!
(Msg. 3) Posted: Mon Nov 17, 2008 8:11 pm
Post subject: Re: Condition for worksheet reference [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
Nice Work.
THANKS!
"Max" wrote:
> Think IF(ISERROR(..) could be used
>
> Try it in this manner:
> =IF(L2="","",IF(ISERROR(INDIRECT("'"&L2&"'!B"&ROW($A$2))),"",INDIRECT("'"&L2&"'!B"&ROW($A$2))))
> --
> Max
> Singapore
> http://savefile.com/projects/236895 > Downloads:20,500 Files:363 Subscribers:64
> xdemechanik
> ---
> "JBoyer" wrote:
> > This is the function I currently have:
> > =IF(L2<>"",INDIRECT("'"&L2&"'!B"&ROW($A$2)),"")
> >
> > I want to modify it in the following way....
> > =IF(L2<>"", {IF STATEMENT} INDIRECT("'"&L2&"'!B"&ROW($A$2)),"")
> >
> > I want to add another if statement where shown above to check if there is a
> > sheet called '"&L2&'"! . So basically IF('"&L2&'"! EXISTS, TRUE, FALSE)
> >
> > Thanks in advance for any help!
(Msg. 4) Posted: Mon Nov 17, 2008 8:39 pm
Post subject: Re: Condition for worksheet reference [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
(Msg. 5) Posted: Mon Nov 17, 2008 11:19 pm
Post subject: Re: Condition for worksheet reference [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
That'll work but there is a caveat.
This would probably only apply if you're using the default sheet names.
If the sheet already exists then it's no problem. If the sheet does not
exist and you insert a new sheet the formula will not update until some
event triggers a calculation (like renaming a newly inserted sheet!).
Deleting the sheet referenced will trigger a calcualtion and the formula
would update.
--
Biff
Microsoft Excel MVP
"Max" <demechanik RemoveThis @yahoo.com> wrote in message
news:A1A28595-3F60-463C-9DD4-25416556F1C8@microsoft.com...
> Think IF(ISERROR(..) could be used
>
> Try it in this manner:
> =IF(L2="","",IF(ISERROR(INDIRECT("'"&L2&"'!B"&ROW($A$2))),"",INDIRECT("'"&L2&"'!B"&ROW($A$2))))
> --
> Max
> Singapore
> http://savefile.com/projects/236895 > Downloads:20,500 Files:363 Subscribers:64
> xdemechanik
> ---
> "JBoyer" wrote:
>> This is the function I currently have:
>> =IF(L2<>"",INDIRECT("'"&L2&"'!B"&ROW($A$2)),"")
>>
>> I want to modify it in the following way....
>> =IF(L2<>"", {IF STATEMENT} INDIRECT("'"&L2&"'!B"&ROW($A$2)),"")
>>
>> I want to add another if statement where shown above to check if there is
>> a
>> sheet called '"&L2&'"! . So basically IF('"&L2&'"! EXISTS, TRUE, FALSE)
>>
>> Thanks in advance for any help!
(Msg. 6) Posted: Mon Nov 17, 2008 11:19 pm
Post subject: Re: Condition for worksheet reference [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
Thanks for the info.
"T. Valko" wrote:
> That'll work but there is a caveat.
>
> This would probably only apply if you're using the default sheet names.
>
> If the sheet already exists then it's no problem. If the sheet does not
> exist and you insert a new sheet the formula will not update until some
> event triggers a calculation (like renaming a newly inserted sheet!).
> Deleting the sheet referenced will trigger a calcualtion and the formula
> would update.
>
> --
> Biff
> Microsoft Excel MVP
>
>
> "Max" <demechanik.DeleteThis@yahoo.com> wrote in message
> news:A1A28595-3F60-463C-9DD4-25416556F1C8@microsoft.com...
> > Think IF(ISERROR(..) could be used
> >
> > Try it in this manner:
> > =IF(L2="","",IF(ISERROR(INDIRECT("'"&L2&"'!B"&ROW($A$2))),"",INDIRECT("'"&L2&"'!B"&ROW($A$2))))
> > --
> > Max
> > Singapore
> > http://savefile.com/projects/236895 > > Downloads:20,500 Files:363 Subscribers:64
> > xdemechanik
> > ---
> > "JBoyer" wrote:
> >> This is the function I currently have:
> >> =IF(L2<>"",INDIRECT("'"&L2&"'!B"&ROW($A$2)),"")
> >>
> >> I want to modify it in the following way....
> >> =IF(L2<>"", {IF STATEMENT} INDIRECT("'"&L2&"'!B"&ROW($A$2)),"")
> >>
> >> I want to add another if statement where shown above to check if there is
> >> a
> >> sheet called '"&L2&'"! . So basically IF('"&L2&'"! EXISTS, TRUE, FALSE)
> >>
> >> Thanks in advance for any help!
>
>
>
All times are: Eastern Time (US & Canada) (change)
Page 1 of 1
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum