+ Reply to Thread
Results 1 to 3 of 3

Formula must produce two positive numbers otherwise an error message

  1. #1
    Registered User
    Join Date
    10-09-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    2007
    Posts
    17

    Formula must produce two positive numbers otherwise an error message

    Hi there,

    I want to create a spreadsheet where:

    1. Odds -- I enter two lots of 'odds' (can be any odds e.g. odds # 1 $1.50, odds # 2 $2.00)
    2. I want the formula to work out how much money is required to back both odds (e.g. formula works out how much money I must back both odds to make a profit, i.e. 'total money won' minus 'total money down' and if both 'win amounts' are 'positive numbers' (not negative numbers) it means I make profit from backing both bets with the money down the formula has produced).

    If there is a negative number in 1 or more 'win amounts' # 1 or win amount # 2 that means my bet fails and the formula displays 'Error - bet failed'. The formula must produce positive numbers for both bets for a successful bet. (i.e total winnings from both bets must be more than money down for bets # 1 and bets # 2.

    Please see pic for clarification.

    I hope it's not too confusing.

    Thanks

    Simon
    Attached Images Attached Images
    Last edited by someguy4321; 06-15-2015 at 04:26 AM.

  2. #2
    Registered User
    Join Date
    04-30-2014
    Location
    Singapore
    MS-Off Ver
    Excel 2010
    Posts
    70

    Re: Formula must produce two positive numbers otherwise an error message

    I don't know if I am oversimplifying this, but is this what you want?

    Replace the text in red with your corresponding formulas u have already written for your bet results.

    Win amount #1 =IF(OR(YOUR FORMULA FOR WIN AMOUNT 1<0,YOUR FORMULA FOR WIN AMOUNT 2<0),"Error - Bet Failed",YOUR FORMULA FOR WIN AMOUNT 1)

    Win amount #2 =IF(OR(YOUR FORMULA FOR WIN AMOUNT 1<0,YOUR FORMULA FOR WIN AMOUNT 2<0),"Error - Bet Failed",YOUR FORMULA FOR WIN AMOUNT 2)

  3. #3
    Registered User
    Join Date
    10-09-2014
    Location
    Auckland, New Zealand
    MS-Off Ver
    2007
    Posts
    17

    Continued...

    That is close to what I wanted.

    Replace the text in red with your corresponding formulas u have already written for your bet results.
    I don't have formulas written for my bet results. I want Excel to calculate mathematically and find out the 2 bet amounts which will create 2 positive numbers (i.e. 2 positive numbers being win amount # 1 and win amount # 2).

+ 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. [SOLVED] Produce error message when pasted values break validation rules
    By oliveirano25 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-01-2015, 10:18 AM
  2. Replies: 1
    Last Post: 02-06-2013, 10:32 AM
  3. Replies: 3
    Last Post: 04-02-2012, 06:49 AM
  4. Replies: 4
    Last Post: 09-26-2007, 07:57 PM
  5. Replies: 0
    Last Post: 02-06-2005, 10:06 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