+ Reply to Thread
Results 1 to 27 of 27

Summarising data.

  1. #1
    Forum Contributor
    Join Date
    06-03-2008
    Location
    Northern Ireland
    MS-Off Ver
    2003
    Posts
    107

    Summarising data.

    Would sumproduct be the best formula to use for summarising a list of data? I have a worksheet with 400 rows representing practices.

    Each practice currently has a row where they need to fill in columns of data. If they enter data into one column (Col D) I want a summary table showing this column along with the practice contact details in col A, B & C.

    Anyone any ideas?
    Last edited by Steve-B; 06-18-2009 at 04:47 AM.

  2. #2
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Summarising data.

    Can you post a sample workbook showing what you need?
    Where there is a will there are many ways.

    If you are happy with the results, please add to the contributor's reputation by clicking the reputation icon (star icon) below left corner

    Please also mark the thread as Solved once it is solved. Check the FAQ's to see how.

  3. #3
    Forum Contributor
    Join Date
    06-03-2008
    Location
    Northern Ireland
    MS-Off Ver
    2003
    Posts
    107

    Re: Summarising data.

    NBVC hows things....

    See attached.

    Essentially all I want is the summary sheet to show the data in where columns S, W, AA, AE, AI, AM have a 'red figure' (number above 0). Where this is the case I want the data in all the columns on the summary sheet to be filled with the data in each day's record sheet. (This also needs to work as a drop down!!!)

    Many thanks as always!
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    11-11-2008
    Location
    Syracuse NY
    MS-Off Ver
    2007
    Posts
    90

    Re: Summarising data.

    This sounds like it could be done as a pivot table. Maybe make another field whose value is "Y" where any of your critical fields is above zero. Then make the pivot table, put the fields you want to see as row labels (in tab format) and filter to show only the records with "Y" values.

  5. #5
    Forum Contributor
    Join Date
    06-03-2008
    Location
    Northern Ireland
    MS-Off Ver
    2003
    Posts
    107

    Re: Summarising data.

    I'd love to create a pivot table but this is goning to be something that needs to be 100% useable for non experinced excel users, hence the summary sheet.

    Thanks though for the idea.

  6. #6
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Summarising data.

    Quote Originally Posted by Steve-B View Post
    NBVC hows things....

    See attached.

    Essentially all I want is the summary sheet to show the data in where columns S, W, AA, AE, AI, AM have a 'red figure' (number above 0). Where this is the case I want the data in all the columns on the summary sheet to be filled with the data in each day's record sheet. (This also needs to work as a drop down!!!)

    Many thanks as always!
    Originally, you said if the user enters something in column D... then show in summary table.. you also didn't specify multiple sheets being summarized....

    Also, can't "filter" by font/background colour.. unless you want to get into VBA.. so is the criteria if there is a number in those columns S, W, AA, AE, AI, AM greater than 0, then include? Or if there is a name in Column D include, or what?

  7. #7
    Forum Contributor
    Join Date
    06-03-2008
    Location
    Northern Ireland
    MS-Off Ver
    2003
    Posts
    107

    Re: Summarising data.

    Apologies for adding.

    In order to keep it simple, i only need data shown in the summary sheet where the figure in cell s,w,aa,ae etc are filled above 0. (Conditional formatting only used to show areas where stock is needed... don't need this as part of the formula.)

    Many thanks.

  8. #8
    Registered User
    Join Date
    11-11-2008
    Location
    Syracuse NY
    MS-Off Ver
    2007
    Posts
    90

    Re: Summarising data.

    I had the same problem with users, but I showed them how to use pivot tables and now they love them. They really love how much more useable the data becomes. I understand if you're stuck with the format you've been handed, but this could be even easier for your users with a pivot table based on one sheet. Throw a day/date field in there, keep all the data on one sheet, and your users wouldn't even have to use a dropdown, it would just stay current all the time if you set it to refresh automatically. Or they could still use a dropdown if they want. I'm sure you know this already, I'm just saying, show your users some tricks and they'll think you're a wizard. Just do it for the hell of it.

  9. #9
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Summarising data.

    See attached for Formula solution:

    In each Date sheet, add column AO formula in AO2, copied down to however far you want:

    =IF(D2="","",SUM(S2,W2,AA2,AE2,AI2,AM2)>0)

    Then in Summary Sheet, Formula in D2 to count number of TRUE in relevant sheet:

    =COUNTIF(INDIRECT(C2&"!AO:AO"),TRUE)

    Formula in A6:

    Please Login or Register  to view this content.
    adust ranges to suit your data in date sheets... then Confirm with CTRL+SHIFT+ENTER not just ENTER..

    Copy down as far as you want.

    Then Copy formula in A6 across all columns...

    You will need to adjust the red range to match the columns in the date sheets, then confirm each with CSE keys and copy down.
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    06-03-2008
    Location
    Northern Ireland
    MS-Off Ver
    2003
    Posts
    107

    Re: Summarising data.

    Many thanks yet again for your help.

    Genius...

  11. #11
    Forum Contributor
    Join Date
    06-03-2008
    Location
    Northern Ireland
    MS-Off Ver
    2003
    Posts
    107

    Re: Summarising data.

    BUMP!

    PM sent to NBVC in order to change the INDIRECT formula so that the drop down list is changed from days of the week to dates what would I need to do.....

  12. #12
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Summarising data.

    From PM:

    If I wanted to change the drop down list to dates rather than days of the week do I need to update the indirect formula?
    So you will have a date, like June 17, 2009 and you want it to know that is a Wednesday and therefore look up the sheet named 'Wednesday', is that correct?

  13. #13
    Forum Contributor
    Join Date
    06-03-2008
    Location
    Northern Ireland
    MS-Off Ver
    2003
    Posts
    107

    Re: Summarising data.

    I actually now have to change the tab name and the drop down list to link as a date.

    No days will be used a list of dates will be. A workbook will have all the days on the month and a summary sheet.

    Hope that makes sense. Thanks for the reply btw!

    Format of the date will be dd.mm.yy if you need to know.
    Last edited by Steve-B; 06-18-2009 at 04:17 AM.

  14. #14
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Summarising data.

    Can you re-attach the amended sample workbook so that we are on the same wavelength?

  15. #15
    Forum Contributor
    Join Date
    06-03-2008
    Location
    Northern Ireland
    MS-Off Ver
    2003
    Posts
    107

    Re: Summarising data.

    Of course... Many thanks.
    Attached Files Attached Files
    Last edited by Steve-B; 06-18-2009 at 04:17 AM.

  16. #16
    Forum Contributor
    Join Date
    06-03-2008
    Location
    Northern Ireland
    MS-Off Ver
    2003
    Posts
    107

    Re: Summarising data.

    Apologies, realised what I needed to change. Think I have it sussed. Basically the format of the tab needs to be the exact same as the drop down list.

    Although would this work if I wanted to change the format to say dd.mm.yy?
    Many thanks NBVC.
    Last edited by Steve-B; 06-18-2009 at 06:26 AM.

  17. #17
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Summarising data.

    You would need to replace all references to $C$5 with TEXT($C$5,"dd.mm.yy")

    Remember to include the formula in AO of each of the sheets so that it works out. =IF(D2="","",SUM(S2,W2,AA2,AE2,AI2,AM2)>0)

  18. #18
    Forum Contributor
    Join Date
    06-03-2008
    Location
    Northern Ireland
    MS-Off Ver
    2003
    Posts
    107

    Re: Summarising data.

    NBVC,

    When you mention to replace all references to C5
    =COUNTIF(INDIRECT(TEXT($C$5,"dd.mm.yy")*C5&"!AO:AO"),TRUE)?
    Last edited by Steve-B; 06-18-2009 at 10:39 AM.

  19. #19
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Summarising data.

    Should be:

    =COUNTIF(INDIRECT(TEXT(C5,"dd.mm.yy")&"!AO:AO"),TRUE)

    Note: If you add or change a post after resolution, you need to actually add a new reply so that it goes back to the top and alerts the person(s) helping you of a new post... it was just lucky that I came back to this post as I saw you were online.

  20. #20
    Forum Contributor
    Join Date
    06-03-2008
    Location
    Northern Ireland
    MS-Off Ver
    2003
    Posts
    107

    Re: Summarising data.

    Many apologies, and thanks for looking out for me!!!!

  21. #21
    Forum Contributor
    Join Date
    06-03-2008
    Location
    Northern Ireland
    MS-Off Ver
    2003
    Posts
    107

    Re: Summarising data.

    NBVC,

    Last question, when I re-arrnaged the columns and range sizes the formula did'nt pick up the number data for columns L, P T etc. Can you take a look over for me plese?

    Many thanks.
    Attached Files Attached Files
    Last edited by Steve-B; 06-19-2009 at 06:52 AM.

  22. #22
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Summarising data.

    For this version of the formula, you need to start your ranges always at row 1...

    Also, The condition you set was IF(Condition>0).. but it should be IF(Condition=TRUE) which is what you have in column AI of the specific sheets...

    See attached...
    Attached Files Attached Files

  23. #23
    Forum Contributor
    Join Date
    06-03-2008
    Location
    Northern Ireland
    MS-Off Ver
    2003
    Posts
    107

    Re: Summarising data.

    Many thanks yet again.

  24. #24
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Summarising data.

    You're welcome, Steve.

    I noticed, looking back that the condition>0 was I had originally told you.. so that was actually my mistake... sorry....
    Last edited by NBVC; 06-19-2009 at 09:01 AM.

  25. #25
    Forum Contributor
    Join Date
    06-03-2008
    Location
    Northern Ireland
    MS-Off Ver
    2003
    Posts
    107

    Re: Summarising data.

    No problem at all, yet again many thanks.

    The only trouble I have is the workbook is now over 112mb and is gonna take a long time to open and formulate.

    My only other option was to go down the pivot table route yet I need this to work automatically. It needs to be 100% fool proof........

    Is there any way in linking the summary sheet (with the sumproduct formulas) to the data input spreadsheet?
    Last edited by Steve-B; 06-22-2009 at 04:01 AM.

  26. #26
    Forum Expert NBVC's Avatar
    Join Date
    12-06-2006
    Location
    Mississauga, CANADA
    MS-Off Ver
    2003:2010
    Posts
    34,898

    Re: Summarising data.

    You may be able to reduce the size a little or make the workbook faster if we can change some formulas around... but I need to know if any column in your workbook (especially column B - with codes) is unique in the specific sheets... If they only come up once in the specific sheet you are summarizing, then we can use Vlookup() to get rest of the info.... and that may make workbook process faster....

  27. #27
    Forum Contributor
    Join Date
    06-03-2008
    Location
    Northern Ireland
    MS-Off Ver
    2003
    Posts
    107

    Re: Summarising data.

    Sorted... the problem was actually the range. It was set at row 61,500 and the last column. (Over 100mb a workbook!!!) got it down to 2mb...

    Thanks again and when I've the finshed article I'll post up. (This is for a very serious peice of health data collection)....

+ 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