Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Multiple IF situations

Here is the nested situation example:
=IF(AND(B25="Soccer",D25="English",E25="Standard") ,"123456789",(IF(AND(B25="Hockey",D25="English",E2 5="Standard"),234567890,(IF(AND(B25="Football",D25 ="English",E25="Standard"),345678901,(IF(AND(B25=" Baseball",D25="English",E25="Standard"),456789012, (IF(AND(B25="Basketball",D25="English",E25="Standa rd"),567890123,(IF(AND(B25="Racing",D25="English", E25="Standard"),678901234,(IF(AND(B25="Wrestling", D25="English",E25="Standard"),789012345,"Special") ))))))))))))

Now.....This has to apply to more variables in the named cells, as well as
has to be able to be allocated to 11 more rows....there is a total (at
present) of 596 different scenerios.....HELP please




"Fredrik Wahlgren" wrote:


"K.W.Martens" wrote in message
...
Thanks for the info, but, how can I do it in VBA.....your comment "this

can
be done easily" intriqued me. Any suggestions would be appreciated.

Another
question....I don't really know if I am looking at a "nesting" situation.
Each circumstance within the cell is determined by the drop down lists.

So,
as an example, instead of "Hockey" in B25, it was "Soccer" it would give a
different result. It seems to me that I have an IF/OR situation.....but,

I
still haven't found an answer.



I missed the fact that you used these if statments in a drop down list. What
I meant is that it's easy and recommendable to replace complex logic in a
cell with a user defined function. I don't know if you can call such a
function from a drop down list but I guess it should be possible since you
can use IF. Do you understand how to create the nested functions. If you do,
you can post them to this newsgroup and ask for an equivalent implementation
under VBA.

/Fredrik



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 339
Default Multiple IF situations

Hmm. Do you know how to create a simple function using VBA? I'm currently
busy with other things.

/Fredrik


"K.W.Martens" wrote in message
...
Here is the nested situation example:

=IF(AND(B25="Soccer",D25="English",E25="Standard") ,"123456789",(IF(AND(B25="
Hockey",D25="English",E25="Standard"),234567890,(I F(AND(B25="Football",D25="
English",E25="Standard"),345678901,(IF(AND(B25="Ba seball",D25="English",E25=
"Standard"),456789012,(IF(AND(B25="Basketball",D25 ="English",E25="Standard")
,567890123,(IF(AND(B25="Racing",D25="English",E25= "Standard"),678901234,(IF(
AND(B25="Wrestling",D25="English",E25="Standard"), 789012345,"Special")))))))
))))))

Now.....This has to apply to more variables in the named cells, as well as
has to be able to be allocated to 11 more rows....there is a total (at
present) of 596 different scenerios.....HELP please




"Fredrik Wahlgren" wrote:


"K.W.Martens" wrote in message
...
Thanks for the info, but, how can I do it in VBA.....your comment

"this
can
be done easily" intriqued me. Any suggestions would be appreciated.

Another
question....I don't really know if I am looking at a "nesting"

situation.
Each circumstance within the cell is determined by the drop down

lists.
So,
as an example, instead of "Hockey" in B25, it was "Soccer" it would

give a
different result. It seems to me that I have an IF/OR

situation.....but,
I
still haven't found an answer.



I missed the fact that you used these if statments in a drop down list.

What
I meant is that it's easy and recommendable to replace complex logic in

a
cell with a user defined function. I don't know if you can call such a
function from a drop down list but I guess it should be possible since

you
can use IF. Do you understand how to create the nested functions. If you

do,
you can post them to this newsgroup and ask for an equivalent

implementation
under VBA.

/Fredrik





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
Counting for multiple situations Lisa Excel Worksheet Functions 3 March 22nd 10 07:19 PM
Various dates returned for variable situations, + Steve Excel Worksheet Functions 0 June 9th 09 06:01 PM
Crashes when find is used (and specific situations) Outlook, eh? Excel Discussion (Misc queries) 3 January 23rd 09 02:27 PM
work customizable situations problem jimtmcdaniels Setting up and Configuration of Excel 0 March 28th 07 06:32 AM
conflicitng situations in shared workbook Olivier Excel Discussion (Misc queries) 0 April 26th 06 10:49 AM


All times are GMT +1. The time now is 11:51 AM.

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"