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

Excellent. I hope you had some fun while doing so. This is more readable and
far less error prone.

/Fredrik

"K.W.Martens" wrote in message
...
SOLVED....

Thanks to everyone, I have managed to figure it out using VBA....sample

code:
Function upccaculator(games, languages, advertising)
Select Case games
Case "Soccer"
Select Case languages
Case "English"
Select Case advertising
Case "Standard"
upccode = "873794000217"
Case "Custom"
upccode = "Custom"
End Select
Case "French"
Select Case advertising
Case "Standard"
upccode = "873794000248"
Case "Custom"
upccode = "Custom"
End Select
Case "Spanish"
Select Case advertising
Case "Standard"
upccode = "873794000224"
Case "Custom"
upccode = "Custom"
End Select
End Select

.....so forth..........................

It works



"K.W.Martens" wrote:

I'm stumped....What I and trying to do is set up multple IF situations

from
drop down lists. As an example:

=IF(AND(B25="Hockey",D25="English",E25="Standard") ,"123456789","Special")...
now
I want to say the IF it different it will be this, but IF it's different
again it will be this...and so on. I have already 48 circumstances. If

I
knew VB, I'm sure there is a more realistic way to do this.

Any assistance will be 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
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 01:08 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"