+ Reply to Thread
Results 1 to 4 of 4

WHAT-IF function....

  1. #1
    Registered User
    Join Date
    09-12-2006
    Posts
    9

    WHAT-IF function....

    Does anyone know another short function to do what-if? because when i use the what-if function its too long, and i like to know if there some other way to do it n it short....

  2. #2
    Forum Expert
    Join Date
    09-09-2005
    Location
    England
    MS-Off Ver
    2007
    Posts
    1,500
    You have to be a bit more specfic in what you want to achieve. A way round nested if statements that can get long is to include a vlookup to reference a table

    Eg instead of if 1 red, if 2 blue, if 3 orange, if 4 green

    would be if the following table was in a1:b4 and the value was in d1
    vlookup(d1,a1:b4,2,false)

    Obviously with more values this becomes more useful, but unless you give us an example it is hard to be anything less than general

    Regards

    Dav

  3. #3
    Registered User
    Join Date
    09-12-2006
    Posts
    9

    example

    =D32*IF(D32<=9,1150,IF(D14<=29,1100,IF(D32<=49,1050,IF(D32>=50,950))))

    I like to make this shorter, is there anyway doing it by not using the What-If function...

  4. #4
    Forum Contributor kraljb's Avatar
    Join Date
    05-26-2004
    Location
    Illinois
    MS-Off Ver
    2007 (recent change)
    Posts
    256
    I'm assuming the D14 doesn't need to be there, but what you may want to try is the following...

    Create a list that reads

    A;B
    0;1150
    10;1100
    30;1050
    50;950

    Then change the formula to read

    =G32*INDEX($B$1:$B$4,MATCH(G32,$A$1:$A$4,1),0)

    OR

    =G32*VLOOKUP(G32,$A$1:$B$4,2)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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