WUGNET, the Windows User Group Network
Your Complete Resource Center for "The Best" in Shareware, Computing Tips and Support, Windows Industry News... and much more!
Home Forums Shareware Windows Tips Hot Offers FREE Newsletters Arcade Contact Us About Partners
Search WUGNET: RSS Feeds RSS Feeds Advertise with WUGNET    |    Shareware eBooks
HomeHome FAQFAQ      ProfileProfile    Private MessagesPrivate Messages   Log inLog in

Condition for worksheet reference

 
   Home -> Office -> Worksheet Functions RSS
Next:  PLACINGS FROM HIGH TO LOW  
Author Message
JBoyer

External


Since: Jun 11, 2008
Posts: 50



(Msg. 1) Posted: Mon Nov 17, 2008 7:40 pm
Post subject: Condition for worksheet reference
Archived from groups: microsoft>public>excel>worksheet>functions (more info?)

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!
Back to top
Login to vote
Max

External


Since: Mar 17, 2004
Posts: 2537



(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!
Back to top
Login to vote
JBoyer

External


Since: Jun 11, 2008
Posts: 50



(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!
Back to top
Login to vote
Max

External


Since: Mar 17, 2004
Posts: 2537



(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?)

Welcome, thanks.
--
Max
Singapore
http://savefile.com/projects/236895
Downloads:20,500 Files:363 Subscribers:64
xdemechanik
---
"JBoyer" wrote:
> Nice Work.
> THANKS!
Back to top
Login to vote
T. Valko

External


Since: Nov 24, 2006
Posts: 6553



(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!
Back to top
Login to vote
JBoyer

External


Since: Jun 11, 2008
Posts: 50



(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!
>
>
>
Back to top
Login to vote
Display posts from previous:   
       Home -> Office -> Worksheet Functions 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
Categories:
 Windows XP
 Windows Vista
 Windows Other
  Office
 Office Other
 Security
 WinRAR
  • Home |
  • Shareware |
  • Windows Tips |
  • Hot Offers |
  • FREE Newsletters |
  • Arcade |
  • Forums |
  • eBooks |
  • About WUGNET |
  • Partners |
  • Contact

  • WUGNET Privacy Policy |
  • Link to WUGNET