+ Reply to Thread
Results 1 to 4 of 4

Is there an alternative to IF(AND) statements

  1. #1
    Registered User
    Join Date
    10-23-2013
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    30

    Is there an alternative to IF(AND) statements

    Hi, there. I am working on modelling a game on excel to help my team. I was wondering if there is an alternative to If (And) statements so that I don't have to waste time on writing a 200 + character formula for each cell. In the excel workbook attached below, sheet 2 has a got a working of a dynamic weather system. On sheet 3 i am trying to model a temperature system. Which will depend on 2 factors, i.e. time of day and Weather Type. For now on sheet 3, I have some standard values for the temperature to its corresponding altitude. What i want to do is to change the temperature when different time of day and weather types are selected. I know this can be done through IF (AND), thats what i did in sheet 2 for the dynamic weather system. But I am trying to find a way to do this is in a much easier way where i will not have to do the same thing over and over again to get the right values.
    Attached Files Attached Files

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,048

    Re: Is there an alternative to IF(AND) statements

    I would suggest that you create a small table with the possible combo's and the temps, and then use a simple vlookup() to return the value

    F
    G
    3
    dayhigh
    30
    4
    daymedium
    25
    5
    daylow
    40
    6
    nighthigh
    15

    Thn for the calc, use this...
    =VLOOKUP($A$3&$B$3,Sheet3!$F$3:$G$6,2,0)
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Registered User
    Join Date
    10-23-2013
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    30

    Re: Is there an alternative to IF(AND) statements

    Quote Originally Posted by FDibbins View Post
    I would suggest that you create a small table with the possible combo's and the temps, and then use a simple vlookup() to return the value

    F
    G
    3
    dayhigh
    30
    4
    daymedium
    25
    5
    daylow
    40
    6
    nighthigh
    15

    Thn for the calc, use this...
    =VLOOKUP($A$3&$B$3,Sheet3!$F$3:$G$6,2,0)
    Thanks a ton, that sure helps me to get started. I made a table on sheet 3 considering all the possibilities of decrease/increase in temperature. How do I make changes in the Temperature row according to the table on the right when the conditions on B1 and B2 are selected.
    I am attaching a version with the table where i have listed down the possibilities on sheet 3
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    10-23-2013
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    30

    Re: Is there an alternative to IF(AND) statements

    Some help will be really appreciated.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Alternative to multipe ELSE IF statements?
    By Winterreise in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 05-17-2012, 09:39 AM
  2. [SOLVED] Need an alternative to lots of nested IF statements
    By BeachRock in forum Excel General
    Replies: 8
    Last Post: 03-24-2012, 12:44 AM
  3. Alternative to using multiple nested IF statements
    By maacmaac in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-15-2011, 12:51 PM
  4. Alternative to multiple nested if statements
    By booo in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 10-20-2010, 05:53 PM
  5. alternative to too many nested IF statements
    By lintcoop in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 07-06-2009, 04:23 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1