+ Reply to Thread
Results 1 to 17 of 17

Summing values based on variables

Hybrid View

giejack Summing values based on... 08-08-2012, 08:32 PM
Cutter Re: i need some help 08-08-2012, 08:34 PM
giejack Re: Need help with a formula... 08-08-2012, 08:45 PM
Cutter Re: Summing values based on... 08-08-2012, 09:07 PM
giejack Re: Summing values based on... 08-08-2012, 09:33 PM
Cutter Re: Summing values based on... 08-08-2012, 10:15 PM
giejack Re: Summing values based on... 08-08-2012, 10:25 PM
Cutter Re: Summing values based on... 08-08-2012, 10:33 PM
icestationzbra Re: Summing values based on... 08-08-2012, 10:34 PM
giejack Re: Summing values based on... 08-08-2012, 10:40 PM
Cutter Re: Summing values based on... 08-08-2012, 10:45 PM
giejack Re: Summing values based on... 08-08-2012, 10:47 PM
icestationzbra Re: Summing values based on... 08-08-2012, 11:05 PM
giejack Re: Summing values based on... 08-08-2012, 11:30 PM
icestationzbra Re: Summing values based on... 08-09-2012, 10:52 PM
giejack Re: Summing values based on... 08-10-2012, 12:46 PM
icestationzbra Re: Summing values based on... 08-10-2012, 01:02 PM
  1. #1
    Registered User
    Join Date
    08-08-2012
    Location
    nj,usa
    MS-Off Ver
    Excel 2007
    Posts
    8

    Summing values based on variables

    I am trying to get excel keep track and total my football bets.
    there are 5 different types of bets,and 3 differant results(w,l,p)

    a b c d
    1 TYPE OF PLAY WINNER LOSSER LOSSER/LOSSER
    2 S 1 -1.1
    3 P 2.33 -1
    4 T 1 -1.2
    5 3T 1 -1.4
    6 R 4 -1.2 -1.1
    7 day DATE PLAY AMOUNT TYPE RESULT TOTAL
    8


    this is the how i have it set up for now
    any help would be great
    Last edited by giejack; 08-08-2012 at 08:49 PM.

  2. #2
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: i need some help

    Hello giejack, and welcome to the forum.

    Thanks for changing your thread title.
    Last edited by Cutter; 08-08-2012 at 08:57 PM. Reason: Removed title change request

  3. #3
    Registered User
    Join Date
    08-08-2012
    Location
    nj,usa
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Need help with a formula to add my bets

    i hope this title is acceptable???

  4. #4
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Summing values based on variables

    In reponse to PM:

    To Attach a File:

    1. Click on Go Advanced
    2. In the frame Attach Files you will see the button Manage Attachments
    3. Click the button.
    4. A new window will open titled Manage Attachments - Excel Forum.
    5. Click the Browse... button to locate your file for uploading.
    6. This will open a new window File Upload.
    7. Once you have located the file to upload click the Open button. This window will close.
    8. You are now back in the Manage Attachments - Excel Forum window.
    9. Click the Upload button and wait until the file has uploaded.
    10. Close the window and then click Submit.

  5. #5
    Registered User
    Join Date
    08-08-2012
    Location
    nj,usa
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Summing values based on variables

    what im trying to do is something like this. i will leave out the function commands being i have not idea which ones to use but you should be able to get the idea
    i would want the formula in all the H column starting in row 8

    f8="s",G8="w",e8*b2
    f8="s",g8="L",e8*c2
    f8="p",g8="w",e8*b3
    f8="p",g8="L",e8*c3
    f8="t",g8="w",e8*b4
    f8="T",g8="L",e8*c4
    f8="3T",g8="W",e8*b5
    f8="3T,g8="L",e8*c5
    f8="R",g8="W",e8*b6
    f8="R",g8="LW",e8*c6
    f8="R".g8="LL",e8*d6
    g8="p"e8*0
    Attached Files Attached Files

  6. #6
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Summing values based on variables

    It'll be your job to test - try this in H8

    =IF(E8="","",E8*VLOOKUP(F8,$A$2:$D$6,IF(G8="w",2,IF(G8="l",3,4)),0))

  7. #7
    Registered User
    Join Date
    08-08-2012
    Location
    nj,usa
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Summing values based on variables

    i put that formula in and it just displays the formula in H8
    doesnt give me an error or anything

  8. #8
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Summing values based on variables

    Yes, I had the same problem. I don't know what you did to your sheet. Copy the whole range of cells containing anything, from A1 to whatever.
    Go to Sheet2! and select A1, then Paste Special, Formulas

    It should then start working.

  9. #9
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Summing values based on variables

    toggle CTRL + ~ (it is actually the ` sign below the tilde, but that looks like a speck of dust on the screen, so i prefer using tilde, moreover i don't even know what that other thingy is called).

    you have the file setup to show formula, instead of result.
    Last edited by icestationzbra; 08-08-2012 at 10:36 PM.
    - i.s.z -
    CSE, aka Array aka { }, formulae are confirmed with CONTROL+SHIFT+ENTER.
    Replace commas ( , ) with semicolons ( ; ) in formulae, if your locale setting demands.
    All good ideas are courtesy resources from this forum as well as others around the web.
    - e.o.m -

  10. #10
    Registered User
    Join Date
    08-08-2012
    Location
    nj,usa
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Summing values based on variables

    thanks that works
    all the varibles are covered but the TYPE "R" which are "W","LW","LL"

  11. #11
    Forum Expert Cutter's Avatar
    Join Date
    05-24-2004
    Location
    Ontario,Canada
    MS-Off Ver
    Excel 2010
    Posts
    6,451

    Re: Summing values based on variables

    Thanks Ice, I forgot about that setting.

    ---------- Post added at 10:45 PM ---------- Previous post was at 10:41 PM ----------

    I'm going to leave you in the more than capable hands of Ice. It's time for this head to hit a pillow.

  12. #12
    Registered User
    Join Date
    08-08-2012
    Location
    nj,usa
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Summing values based on variables

    ok and thanks for your help cutter

    i have ran it and it is fully working
    thanks again
    Last edited by giejack; 08-08-2012 at 10:59 PM.

  13. #13
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Summing values based on variables

    giejack, if you can setup your little tableau in a certain fashion (as illustrated in the attached file), your formula could be simplified. take a look at the attached file's "yellow" highlighted regions and see if it works for you.
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    08-08-2012
    Location
    nj,usa
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Summing values based on variables

    ok thanks again
    i have highlighted in red my next question.

    i want to have a total for each day of the week how do i code that
    Attached Files Attached Files

  15. #15
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Summing values based on variables

    can you explain with an example on your spreadsheet what you mean by 'total by the day of the week'? show some constituent numbers and final result and i will try to figure out how to formulate it using functions.

  16. #16
    Registered User
    Join Date
    08-08-2012
    Location
    nj,usa
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Summing values based on variables

    i have what im trying to do on the worksheet
    if column M needs to be move that is fine
    Attached Files Attached Files

  17. #17
    Forum Expert icestationzbra's Avatar
    Join Date
    01-07-2004
    MS-Off Ver
    2007, 2010
    Posts
    1,421

    Re: Summing values based on variables

    here you go (slight change in data):
    Attached Files Attached Files

+ 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