+ Reply to Thread
Results 1 to 5 of 5

Freeze Variable Cell to a Permanant Number

  1. #1
    Registered User
    Join Date
    06-24-2007
    Location
    Darwen, England
    Posts
    7

    Freeze Variable Cell to a Permanant Number

    Hi,
    I'm trying to update a league table spreadsheet with a running total of points for each team. I've got a countif function counting the number of games, but obviously that will change as the season goes on. I want to make the cell with the countif result "Freeze" so it can't be changed.

    For instance, after game 1, cell a2 will contain "teamname1" as a countif on number of games. After game 2, cell a2 will change to be "teamname2" because an extra game will have been played. I want to freeze cell a2 after the first game so I can then do a lookup on that in the running total after each game.

    Sorry if this sounds complicated. I can provide the spreadsheet if required to show what I'm trying to do. Any help would be appreciated. Thanks.

  2. #2
    Valued Forum Contributor
    Join Date
    02-09-2006
    Location
    Melbourne, Australia
    MS-Off Ver
    Office 2016
    Posts
    1,075
    It would probably be easier if you could zip and attach your workbook.
    Trish in Oz
    -------------
    A problem well defined is a puzzle half solved


    If you attach a sample of your workbook it will be easier to find a solution. Remember to remove/replace sensitive data before uploading the file. Look here if you need help with attachments:
    http://www.excelforum.com/faq.php?fa...b3_attachments

  3. #3
    Registered User
    Join Date
    06-24-2007
    Location
    Darwen, England
    Posts
    7

    Spreadsheet as example

    I've attached my spreadsheet.

    Basicall what I want to do is work out the points total on the results tab for each team, then add it to the running totals tab, without doing it manually.

    I'm just lazy I suppose, but it would be nice to be able to do it.

    Any ideas would be greatly appreciated!
    Attached Files Attached Files

  4. #4
    Valued Forum Contributor
    Join Date
    02-09-2006
    Location
    Melbourne, Australia
    MS-Off Ver
    Office 2016
    Posts
    1,075
    Quote Originally Posted by jrabrfc
    I've attached my spreadsheet.

    Basicall what I want to do is work out the points total on the results tab for each team, then add it to the running totals tab, without doing it manually.

    I'm just lazy I suppose, but it would be nice to be able to do it.

    Any ideas would be greatly appreciated!
    Not lazy - it's smart to use Excel's functionality!

    The attached uses SUMPRODUCT to calculate cumulative home and away scores. The numbers don't match what you had typed into the cells, so I may not have it right (I don't understand the scoring method) but you can tweak the formulas to suit.

    Hope this helps. There's lots of info available here if you search the forum for SUMPRODUCT.
    Attached Files Attached Files

  5. #5
    Forum Expert
    Join Date
    01-15-2007
    Location
    Brisbane, Australia
    MS-Off Ver
    2007
    Posts
    6,591
    Hi

    Try

    'Running Totals'!B4=SUMPRODUCT(--(Results!$C$1:$C$61='Running Totals'!$A4),--(Results!$B$1:$B$61<='Running Totals'!B$3),Results!$G$1:$G$61)+SUMPRODUCT(--(Results!$D$1:$D$61='Running Totals'!$A4),--(Results!$B$1:$B$61<='Running Totals'!B$3),Results!$H$1:$H$61)

    Copy down / across as required. You will have to extend the ranges to suit your source data.


    rylo

+ 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