+ Reply to Thread
Results 1 to 2 of 2

How to streamline this Formula?

  1. #1
    Registered User
    Join Date
    02-06-2006
    Posts
    2

    How to streamline this Formula?

    I was wondering if it is possible to make this query less longwinded?

    =(IF(D17>0,(((A1-C17)/(A1/D17))+C17))+IF(E17>0,((A1-(((A1-C17)/(A1/D17))+C17))/(A1/E17))))+IF(F17>0,(A1-(((A1-C17)/(A1/D17)+((A1-(((A1-C17)/(A1/D17))+C17))/(A1/E17)))+C17))/(A1/F17))


    A1= max value
    C17=base value
    D17,E17,F17= variable value's

    I've been working on the Value for a Calc for a game I've been playing lately.
    I'm using it to work out damage resistances but I feel the formula could be streamlined but for the life of me my brain has gone blank.
    Example:
    A1=100
    C17 = 60
    for arguments sake lets say D17, E17 and F17 are all = 30
    the formula would get the max percentage and work out what the boosts would be for each variable based on the difference between the max value and the base value.
    The answer given by the formula above for this would be 86.28

    Does anyone know if there is a way to streamline the Formula? without obviously using extra cells to store hidden values.

    Rgds,
    Kuda

  2. #2
    John Lyons
    Guest

    RE: How to streamline this Formula?

    1 What result are you expecting if <0 or =0? Your formula could return #NA!
    Are trying to spread a value across periods?

    "Kuda" wrote:

    >
    > I was wondering if it is possible to make this query less longwinded?
    >
    > =(IF(D17>0,(((A1-C17)/(A1/D17))+C17))+IF(E17>0,((A1-(((A1-C17)/(A1/D17))+C17))/(A1/E17))))+IF(F17>0,(A1-(((A1-C17)/(A1/D17)+((A1-(((A1-C17)/(A1/D17))+C17))/(A1/E17)))+C17))/(A1/F17))
    >
    >
    > A1= max value
    > C17=base value
    > D17,E17,F17= variable value's
    >
    > I've been working on the Value for a Calc for a game I've been playing
    > lately.
    > I'm using it to work out damage resistances but I feel the formula
    > could be streamlined but for the life of me my brain has gone blank.
    > Example:
    > A1=100
    > C17 = 60
    > for arguments sake lets say D17, E17 and F17 are all = 30
    > the formula would get the max percentage and work out what the boosts
    > would be for each variable based on the difference between the max
    > value and the base value.
    > The answer given by the formula above for this would be 86.28
    >
    > Does anyone know if there is a way to streamline the Formula? without
    > obviously using extra cells to store hidden values.
    >
    > Rgds,
    > Kuda
    >
    >
    > --
    > Kuda
    > ------------------------------------------------------------------------
    > Kuda's Profile: http://www.excelforum.com/member.php...o&userid=31242
    > View this thread: http://www.excelforum.com/showthread...hreadid=509274
    >
    >


+ 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