+ Reply to Thread
Results 1 to 4 of 4

How do you calculate figures held in multiple cells?

  1. #1
    Registered User
    Join Date
    03-26-2015
    Location
    Ipswich
    MS-Off Ver
    Don't know
    Posts
    2

    How do you calculate figures held in multiple cells?

    I've got a, hopefully, easy to solve problem.

    The attachments shows you what I want to do, but I'm at a loss how to achieve the result.

    The aim is to record the arbitrage outcomes of various sports matches.

    For each match there are three possible outcomes: 1 = a home win, x = a draw, and 2 = an away win.

    Each has it's own individual odds, stakes, and profit/loss.

    What I'd like to do is calculate the values for the 'P/L 」' column using the data held in the Win/Lose, Odds, and Stake cells. Then to calculate the overall P/L from the P/L 」 cell (I've filled those in manually on the example).

    I know how to do the formula - =IF(F6="W",H6*(G6-1),0-H6) and so on - but what I'm stuck on is how to apply that to each line in the multiple cells.

    I set the multiple cells up by doing Alt+Enter. Perhaps this is where the problem lies and there's possibly a simple solution to grouping these outcomes together.

    Many thanks,

    Steve.
    Attached Images Attached Images

  2. #2
    Forum Expert
    Join Date
    02-11-2014
    Location
    New York
    MS-Off Ver
    Excel 365 (Windows)
    Posts
    5,947

    Re: How do you calculate figures held in multiple cells?

    Using Alt-Enter turns all your values into strings, rendering them difficult to work with. Your data from the example should be entered into three rows, at a minimum, allowing formulas access to the numeric values you are using.
    Bernie Deitrick
    Excel MVP 2000-2010

  3. #3
    Forum Guru
    Join Date
    04-13-2005
    Location
    North America
    MS-Off Ver
    2002/XP and 2007
    Posts
    15,829

    Re: How do you calculate figures held in multiple cells?

    This is why I don't like using alt-enter to enter multiple items in one cell. IMO, spreadsheets are easiest to program when a cell contains only one piece of information. My advice would be to separate each "line" in those cells into separate cells.

    If you insist on having multiple values in a single cell, then you will need to become familiar with Excel's text manipulation functions: https://support.office.com/en-us/art...__toc309306717 (Left, Right, Mid will probably be most important) and learn how to use them to extract each individual value from the text string.
    Quote Originally Posted by shg
    Mathematics is the native language of the natural world. Just trying to become literate.

  4. #4
    Registered User
    Join Date
    03-26-2015
    Location
    Ipswich
    MS-Off Ver
    Don't know
    Posts
    2

    Re: How do you calculate figures held in multiple cells?

    Thanks guys.

    I originally had the data in separate cells spread out in a longish line, which was a bit messy.

    I was looking for a more elegant solution, but it doesn't look as though I can do it except if I put the data on separate rows for each of the three outcomes and repeat the basic game details.

+ 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. Conversion of an array of figures inputted into cells as word figures to Excel figures
    By Allan Simpson730 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 01-08-2013, 07:25 AM
  2. [SOLVED] Applying figures and sums of figures to relevent cells
    By JakeMann in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 11-15-2012, 10:08 AM
  3. How to calculate year to date figures
    By Climaxgp in forum Excel General
    Replies: 9
    Last Post: 05-12-2009, 08:44 AM
  4. [SOLVED] calculate minus figures
    By Nigel in forum Excel General
    Replies: 1
    Last Post: 03-30-2005, 12:06 PM
  5. Calculate minus figures only
    By Nigel in forum Excel General
    Replies: 1
    Last Post: 03-30-2005, 08:45 AM

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