📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!

Excel formula

I am trying to make a table that calculates profit but want to use a rule that it only does this if one column says win

eg bet £x win £y accumulative total would be z

or bet £x lose £y accumulative total would be z

Can anyone help?

Comments

  • simondm
    simondm Posts: 30
    Part of the Furniture 10 Posts
    Forumite
    =IF(B1="","",if(B1="win",formula for win,formula for loss))

    Assuming the win/lose text is entered in cell B1. Replace the words "formula for win" and "formula for loss" with the relevant calculations you want it to perform.

    The initial IF statement will allow it to ignore blank cells where the result is unknown.
  • Stompa
    Stompa Posts: 8,424
    Part of the Furniture 1,000 Posts Name Dropper
    Forumite
    Take a look at the IF function, or perhaps SUMIF. It depends on exactly what you're trying to do.
    Stompa
  • dizzyliz
    dizzyliz Posts: 549
    Part of the Furniture Name Dropper Combo Breaker
    Forumite
    edited 17 January 2011 at 1:11PM
    Hi

    does this work for you?

    G8 = the field containing win or lose, H8 is the £ win/lose amount,
    IF(G8="win",H8,-H8)


    if this doesnt help, mrexcel.com is a brilliant website for questions like this
    Thank you
    Liz x
  • ds1980
    ds1980 Posts: 1,213 Forumite
    thanks guys sorted, managed to find a good solution but may adapt with advice thanks a lot
This discussion has been closed.
★ ★ ★ Meet your Ambassadors

🚀 Getting Started

Hi new member!

Our Getting Started Guide will help you get the most out of the Forum

Categories

  • All Categories
  • 355.9K Banking & Borrowing
  • 254.9K Reduce Debt & Boost Income
  • 456.2K Spending & Discounts
  • 248.4K Work, Benefits & Business
  • 606.1K Mortgages, Homes & Bills
  • 179K Life & Family
  • 263.9K Travel & Transport
  • 1.5M Hobbies & Leisure
  • 16.2K Discuss & Feedback
  • 37.7K Read-Only Boards

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.