#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Amy Amy is offline
external usenet poster
 
Posts: 165
Default Nested Ifs

Hi all,

I have used Chip Pearsons work around for nested ifs. I have named my 6
separate formulas All1 - All6. But the 'Master' formula does not seem to
work. I am trying to do something like
=IF(Data!A2=All1,All1,IF(Data!A2=All2,All2, etc.

Any help greatly appreciated.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Nested Ifs

How about

=IF(Data!A2=All1,All1,"")&IF(Data!A2=All2,All2, "")&etc.


--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Amy" wrote in message
...
Hi all,

I have used Chip Pearsons work around for nested ifs. I have named my 6
separate formulas All1 - All6. But the 'Master' formula does not seem to
work. I am trying to do something like
=IF(Data!A2=All1,All1,IF(Data!A2=All2,All2, etc.

Any help greatly appreciated.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
CLR CLR is offline
external usenet poster
 
Posts: 1,998
Default Nested Ifs

What result does =All1 produce?
What result does =IF(Data!A2=All1,All1,"No Answer") produce?

If these don't work as expected, then of course nesting more on to it won't
either.....

hth
Vaya con Dios,
Chuck, CABGx3



"Amy" wrote:

Hi all,

I have used Chip Pearsons work around for nested ifs. I have named my 6
separate formulas All1 - All6. But the 'Master' formula does not seem to
work. I am trying to do something like
=IF(Data!A2=All1,All1,IF(Data!A2=All2,All2, etc.

Any help greatly appreciated.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Amy Amy is offline
external usenet poster
 
Posts: 165
Default Nested Ifs

=All1 produces a #NAME? error.

=IF(Data!A2=All1,All1,"No Answer") works fine as does each of my statements.

What appears to happen however is that my IF statements work when I have an
=IF(Data!A2="Apple","Apple") but in the cases where I have a
=IF(Data!A2="Banana","Yellow") the statements aren't working and are
appearing blank. Each individual statements works on its own but when I use
them in the master statement, the yellows stop appearing whilst the apples
do. My while statement looks like this:

=IF(Data!O2=Part1,Part1,"")&IF(Data!O2=Part2,Part2 ,
"")&IF(Data!O2=Part3,Part3, "")&IF(Data!O2=Part4,Part4,
"")&IF(Data!O2=Part5,Part5, "")&IF(Data!O2=Part6,Part6,
"")&IF(Data!O2=Part7,Part7, "")

The same applies when I try this one:

=IF(Data!A2=All1,All1,IF(Data!A2=All2,All2,IF(Data !A2=All3,All3,IF(Data!A2=All4,All4,IF(Data!A2=All5 ,All5,IF(Data!A2=All6,All6,IF(Data!A2=All7,All7,"" )))))))



"CLR" wrote:

What result does =All1 produce?
What result does =IF(Data!A2=All1,All1,"No Answer") produce?

If these don't work as expected, then of course nesting more on to it won't
either.....

hth
Vaya con Dios,
Chuck, CABGx3



"Amy" wrote:

Hi all,

I have used Chip Pearsons work around for nested ifs. I have named my 6
separate formulas All1 - All6. But the 'Master' formula does not seem to
work. I am trying to do something like
=IF(Data!A2=All1,All1,IF(Data!A2=All2,All2, etc.

Any help greatly appreciated.

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
Nested Sub-Totals in Excel NC Yoko Excel Discussion (Misc queries) 5 October 4th 06 10:44 PM
Nested IF statement with VLOOKUP James Hamilton Excel Discussion (Misc queries) 1 August 16th 06 07:46 AM
Nested Subtotals in Excel 2002 KG Excel Discussion (Misc queries) 2 September 10th 05 11:51 AM
Why are my nested sub-totals are displaying incorrectly? chiefdean13 Excel Discussion (Misc queries) 1 July 20th 05 05:45 AM
Nested IF statements John Simons Excel Worksheet Functions 14 February 16th 05 06:17 AM


All times are GMT +1. The time now is 09:49 AM.

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

About Us

"It's about Microsoft Excel"