Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 40
Default INDIRECT Formula with an IF Then issue

Hi,

How do I get this formula to work:

=IF((INDIRECT($B$3))&"!d6"="All",9999,0),=IF((INDI RECT($B$3))&"!d6"="222",go
to cell y20)

I want 9999 to show up if the word All is typed in a different worksheet.
Otherwise, if 222 is typed in the cell d6, I want another cell's value to
populate. Does that make sense? thanks, Eden 397
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default INDIRECT Formula with an IF Then issue

Maybe this:

=IF(INDIRECT("'"&$B$3&"'!D6")="All",9999,IF(INDIRE CT("'"&$B$3&"'!D6")=222,Y20,""))


--
Biff
Microsoft Excel MVP


"Eden397" wrote in message
...
Hi,

How do I get this formula to work:

=IF((INDIRECT($B$3))&"!d6"="All",9999,0),=IF((INDI RECT($B$3))&"!d6"="222",go
to cell y20)

I want 9999 to show up if the word All is typed in a different worksheet.
Otherwise, if 222 is typed in the cell d6, I want another cell's value to
populate. Does that make sense? thanks, Eden 397



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 40
Default INDIRECT Formula with an IF Then issue

So far, I have gotten this far but I need one more indirect statement with
222 typed in where "All" or "Quota" is located. I also don't understand the
"" that you wrote as coming before my $B$3. Thanks

=IF((INDIRECT($B$3&"!d6"))="ALL",9999,IF((INDIRECT ($B$3&"!d6"))="Quota",(INDIRECT($B$3&"!Y8"))))

"T. Valko" wrote:

Maybe this:

=IF(INDIRECT("'"&$B$3&"'!D6")="All",9999,IF(INDIRE CT("'"&$B$3&"'!D6")=222,Y20,""))


--
Biff
Microsoft Excel MVP


"Eden397" wrote in message
...
Hi,

How do I get this formula to work:

=IF((INDIRECT($B$3))&"!d6"="All",9999,0),=IF((INDI RECT($B$3))&"!d6"="222",go
to cell y20)

I want 9999 to show up if the word All is typed in a different worksheet.
Otherwise, if 222 is typed in the cell d6, I want another cell's value to
populate. Does that make sense? thanks, Eden 397




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default INDIRECT Formula with an IF Then issue

I also don't understand the "" that you wrote as
coming before my $B$3.


It's actually " ' ". This is needed if the sheet name contains a space. If
the sheet name does not contain a space it does no harm.

What should the result be if the cell = 222?


--
Biff
Microsoft Excel MVP


"Eden397" wrote in message
...
So far, I have gotten this far but I need one more indirect statement
with
222 typed in where "All" or "Quota" is located. I also don't understand
the
"" that you wrote as coming before my $B$3. Thanks

=IF((INDIRECT($B$3&"!d6"))="ALL",9999,IF((INDIRECT ($B$3&"!d6"))="Quota",(INDIRECT($B$3&"!Y8"))))

"T. Valko" wrote:

Maybe this:

=IF(INDIRECT("'"&$B$3&"'!D6")="All",9999,IF(INDIRE CT("'"&$B$3&"'!D6")=222,Y20,""))


--
Biff
Microsoft Excel MVP


"Eden397" wrote in message
...
Hi,

How do I get this formula to work:

=IF((INDIRECT($B$3))&"!d6"="All",9999,0),=IF((INDI RECT($B$3))&"!d6"="222",go
to cell y20)

I want 9999 to show up if the word All is typed in a different
worksheet.
Otherwise, if 222 is typed in the cell d6, I want another cell's value
to
populate. Does that make sense? thanks, Eden 397






  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 40
Default INDIRECT Formula with an IF Then issue

If the cell contains "222" then the result will be the same as the "Quota"
cell number. It would be the same as the below statement but with "222"
instead of "Quota". I need one more If Statement, I guess?

=IF((INDIRECT($B$3&"!d6"))="ALL",9999,IF((INDIRECT ($B$3&"!d6"))="Quota",(INDIRECT($B$3&"!Y8"))))


"T. Valko" wrote:

I also don't understand the "" that you wrote as
coming before my $B$3.


It's actually " ' ". This is needed if the sheet name contains a space. If
the sheet name does not contain a space it does no harm.

What should the result be if the cell = 222?


--
Biff
Microsoft Excel MVP


"Eden397" wrote in message
...
So far, I have gotten this far but I need one more indirect statement
with
222 typed in where "All" or "Quota" is located. I also don't understand
the
"" that you wrote as coming before my $B$3. Thanks

=IF((INDIRECT($B$3&"!d6"))="ALL",9999,IF((INDIRECT ($B$3&"!d6"))="Quota",(INDIRECT($B$3&"!Y8"))))

"T. Valko" wrote:

Maybe this:

=IF(INDIRECT("'"&$B$3&"'!D6")="All",9999,IF(INDIRE CT("'"&$B$3&"'!D6")=222,Y20,""))


--
Biff
Microsoft Excel MVP


"Eden397" wrote in message
...
Hi,

How do I get this formula to work:

=IF((INDIRECT($B$3))&"!d6"="All",9999,0),=IF((INDI RECT($B$3))&"!d6"="222",go
to cell y20)

I want 9999 to show up if the word All is typed in a different
worksheet.
Otherwise, if 222 is typed in the cell d6, I want another cell's value
to
populate. Does that make sense? thanks, Eden 397








  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default INDIRECT Formula with an IF Then issue

Try this:

=IF(INDIRECT($B$3&"!D6")="ALL",9999,IF(OR(INDIRECT ($B$3&"!D6")={"Quota",222}),INDIRECT($B$3&"!Y8")," "))


--
Biff
Microsoft Excel MVP


"Eden397" wrote in message
...
If the cell contains "222" then the result will be the same as the "Quota"
cell number. It would be the same as the below statement but with "222"
instead of "Quota". I need one more If Statement, I guess?

=IF((INDIRECT($B$3&"!d6"))="ALL",9999,IF((INDIRECT ($B$3&"!d6"))="Quota",(INDIRECT($B$3&"!Y8"))))


"T. Valko" wrote:

I also don't understand the "" that you wrote as
coming before my $B$3.


It's actually " ' ". This is needed if the sheet name contains a space.
If
the sheet name does not contain a space it does no harm.

What should the result be if the cell = 222?


--
Biff
Microsoft Excel MVP


"Eden397" wrote in message
...
So far, I have gotten this far but I need one more indirect statement
with
222 typed in where "All" or "Quota" is located. I also don't
understand
the
"" that you wrote as coming before my $B$3. Thanks

=IF((INDIRECT($B$3&"!d6"))="ALL",9999,IF((INDIRECT ($B$3&"!d6"))="Quota",(INDIRECT($B$3&"!Y8"))))

"T. Valko" wrote:

Maybe this:

=IF(INDIRECT("'"&$B$3&"'!D6")="All",9999,IF(INDIRE CT("'"&$B$3&"'!D6")=222,Y20,""))


--
Biff
Microsoft Excel MVP


"Eden397" wrote in message
...
Hi,

How do I get this formula to work:

=IF((INDIRECT($B$3))&"!d6"="All",9999,0),=IF((INDI RECT($B$3))&"!d6"="222",go
to cell y20)

I want 9999 to show up if the word All is typed in a different
worksheet.
Otherwise, if 222 is typed in the cell d6, I want another cell's
value
to
populate. Does that make sense? thanks, Eden 397








Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Allow EXCEL INDIRECT(ADDRESS()) and INDIRECT(RANGE()) functions Mike Barlow Excel Worksheet Functions 7 May 21st 23 07:42 PM
INDIRECT.EXT issue [email protected] Excel Discussion (Misc queries) 0 August 29th 07 08:25 PM
indirect formula sanmos Excel Worksheet Functions 2 January 11th 07 10:05 PM
indirect formula help ivory_kitten Excel Worksheet Functions 10 September 19th 06 04:44 AM
indirect formula Manos Excel Worksheet Functions 0 February 16th 05 01:17 PM


All times are GMT +1. The time now is 06:45 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"