+ Reply to Thread
Results 1 to 13 of 13

Summary list

  1. #1
    Registered User
    Join Date
    06-23-2009
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2007
    Posts
    92

    Summary list

    Have a manually kept raw score and play list that looks as follows:

    Name.....Col L.....Date....Chit...Score

    John.............. 7/14/12 860... 64.63
    Peter............. 7/16/12 861... 57.61

    Nancy............. 7/19/12 862...

    Kyle.............. 7/21/12 A002.. 55.12


    Peter............. 7/21/12 A003.. 43.49

    John.............. 7/21/12 A001...

    Ruth.............. 7/28/12 863... 52.74


    This list is several pages long and I'm manually making summaries that look like this:

    Name... Date..... Chit.. Score

    John... 7/29/12.. 860... 64.63
    Peter.. 7/21/12.. 861... 57.61
    Kyle... 7/26/12.. A002.. 55.12
    Peter.. 7/26/12.. A003.. 43.49
    Ruth... 8/2/12... 862... 52.74

    Empty rows and those with NO score are omitted. Numbers in Column L are not needed and omitted.
    Those WITH score will get a new play date, which is the old date plus a number of days. For John, Nancy and others it's plus 15 days, for Peter, Kyle, Ruth and others it's plus 5 days.
    This list is sorted according to date, so that the earliest date is at the top and the last date at the bottom. In the above example the 7-29-12 date would be the second to the last.

    Have tried many times to automate this process but never with success. The number of wasted hours is astronomical. If there is a way to make such a list, without complicated programming that goes over my head, I'd love to see how. Thank you.
    Last edited by peri1224; 08-16-2012 at 07:12 AM.

  2. #2
    Valued Forum Contributor
    Join Date
    04-30-2012
    Location
    Australia
    MS-Off Ver
    Excel 2010
    Posts
    547

    Re: Summary list

    You could probably use a pivot table. But from the data posted above it's not easy to tell. Why don't you post your data in a workbook and create your desired outcome manually in a new sheet. Explain the logic that leads to the result. Then we know what you're really after and can suggest solutions.
    Like a post? Click the star below it!

  3. #3
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,412

    Re: Summary list

    You can add a column next to your Score column (assume this is S) with a formula like this in T2:

    =IF(S2="","",MAX($T$1:$T1)+1)

    When copied down to the bottom of your data this will identify the records with a score and give them a simple sequence.

    Then in another sheet you could have this formula to determine the rows where the relevant records occur (put in A2):

    =IFERROR(MATCH(ROWS($A$1:$A1),Sheet1!$T:$T,0),"-")

    and copy this down until you start to get a hyphen showing. You could then bring across the relevant data (i.e. without blank rows) using a formula like this in B2:

    =IF(OR($A2="",$A2="-"),"",INDEX(Sheet1!A:A,$A2))

    This can be copied across for Date, Chit, Score etc, but you will need to change the column reference from A:A (it will have changed to B:B, C:C, D:D etc) in the INDEX function to suit the column where the data is located. You can then have another column to identify the date and put it in sequence, and your sort can be based on this.

    It's a bit difficult to describe all this without having a workbook to try it out on, so if you want a working solution then please post a sample workbook.

    Hope this helps.

    Pete

  4. #4
    Registered User
    Join Date
    06-23-2009
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2007
    Posts
    92

    Re: Summary list

    Attached is the sample transferred to a workbook.
    Attached Files Attached Files

  5. #5
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,412

    Re: Summary list

    In the attached file I've copied the data to a new sheet and shown the workings there - all the bits that I've added are shown with a pale yellow background. The formulae are copied down to the bottom of your data, and you end up with a summary list sorted by the new play date. You need to add to the table in column Z:AA if you have more names in your real file - this shows how many extra days that get added for each name.

    All the formula can be used as they are for larger sets of data, except for the one in R4 which is currently this:

    =IFERROR(SMALL($Q$4:$Q$16,ROWS($4:4)),"-")

    You will need to change the $Q$4:$Q$16 part (coloured above) to suit your data.

    Hope this helps.

    Pete
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    06-23-2009
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2007
    Posts
    92

    Re: Summary list

    Hi Pete,
    Thanks for your efforts. I can partially follow your logic and appreciate it very much. But it's not working, probably because I made an error in the source list. Sorry for that.
    If a player has no score, it is not expressed with a blank cell, as in the sample, but with 0.00, which is the result of a deduction. That 0.00 means no score. That means there can be a numerical score or 0.00 in that column or blank for those rows that have no entry at all. Hope that doesn't entail many changes.
    Also, I would like to append Seq, New_date, sorted, match-row and the Name/Days table to the original sheet with the raw data. But the Summary list should come out in a separate workbook, ready for e-mailing.

  7. #7
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,412

    Re: Summary list

    You can change the formula in P4 to this:

    =IF(OR(O4="",O4=0),"",M4+COUNTIF($M$4:$M4,M4)/100)

    then copy down. To get the summary table into a new sheet, insert a blank sheet then highlight columns U, V, W and X in the first sheet, CTRL-X to cut those cells, then select the new sheet, cell A1 and press Enter to paste into the new sheet. The attached file shows this.

    To email just that sheet, though, you will need to fix the values in the second sheet, delete the first sheet and then save the file with a different name.

    Hope this helps.

    Pete
    Attached Files Attached Files

  8. #8
    Registered User
    Join Date
    06-23-2009
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2007
    Posts
    92

    Re: Summary list

    Hello Pete,
    Sorry for the delay. We had heavy floods here and damage.
    Have studied your sample sheet and it works nicely... in the sample.

    But in my actual worksheet the O cell referred to in your Seq formula is the result of =IF(K4="","",I4-SUM(L4,P4)), which causes problems.

    If I change the formula to =IF(K4="","",I4-L4) and deduct only what is on the left side of O, your Seq formula works fine. The P (on the right side of O) seems to be the trouble.

    Can that be corrected with a change in your Seq formula (or my O formula), or do I have to move the P column to N? And then N to P. Or is it something else?

  9. #9
    Registered User
    Join Date
    06-23-2009
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2007
    Posts
    92

    Re: Summary list

    Have gone back to that worksheet and found one more problem. Or maybe the above is not even the real problem.

    Although the display in O is 0.00, the Seq formula produces an entry, which should not happen. That is because the number in O only looks like 0.00, but when you display enough digits after the decimal, the value in O looks like this: 0.0000000000291. This must be a machine error, because the result (product) of the Score in O is only based on whole numbers and there is no legitimate reason why a small fraction with 10 zeroes after the decimal point should appear.

    The question now is if there is a way to look only at two decimal digits when checking if the value of O is 0?

  10. #10
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,412

    Re: Summary list

    Could you post a more recent example workbook - I'm not sure what changes you have made following your post #8

    Pete

  11. #11
    Registered User
    Join Date
    06-23-2009
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2007
    Posts
    92

    Re: Summary list

    Attached is a sample illustrating the problem.
    Attached Files Attached Files

  12. #12
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    25,412

    Re: Summary list

    You can either change the formula you have in column O to this (eg in O8):

    =IF(K8="","",ROUND(I8-SUM(L8,P8),2))

    or the formula in O13 to this:

    =IF(OR(O13="",ROUND(O13,2)=0),"",M13+COUNTIF($M$13:$M13,M13)/100)

    Hope this helps.

    Pete

  13. #13
    Registered User
    Join Date
    06-23-2009
    Location
    Manila, Philippines
    MS-Off Ver
    Excel 2007
    Posts
    92

    Re: Summary list

    Yes, it helps very much. Both of the above work beautifully, and I'm amazed at the simple elegance of the second formula dealing with the rounding problem. But I'm going to use the first one, because it also cleans up that fraction nonsense that always appears there. Thank you very much. I consider you a true master at these things.

    Would you know if these fractions are a normal occurrences in all or most computers, or do I just have a lemon here?

+ 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