+ Reply to Thread
Results 1 to 24 of 24

Need data sorted on dynamic selection

  1. #1
    Registered User
    Join Date
    08-21-2013
    Location
    texas
    MS-Off Ver
    Excel 2007
    Posts
    16

    Need data sorted on dynamic selection

    I have data that I need to be dynamically sorted in the highlited manner. Any help is greatly appreciated. The values on the selection criteria are dynamic
    Attached Files Attached Files

  2. #2
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Need data sorted on dynamic selection

    To sum the encounters per month and ED positions, put this in K2:

    =SUMPRODUCT(($E$2:$E$104=K$1)*($C$2:$C$104=$J2)*($F$2:$F$104))

    And copy over and down as needed.

  3. #3
    Registered User
    Join Date
    08-21-2013
    Location
    texas
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Need data sorted on dynamic selection

    Thank you so much for giving me the forumula. Actually I need logic for the following
    if column h = column a and column I = column b then get number of encounters by criteria(vertically) and month(horizontal) for that year and name (selected dynamically).
    Is this even possible ?
    i have attached in the excel ....
    The criteria and months display needs to be dynamic

    I cant thank you enough to help me again !!!1
    Attached Files Attached Files

  4. #4
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Need data sorted on dynamic selection

    I would it solve it like this.

    It's an pivot table solution.

    I used column G and H to determine the month and year.

    I used Vlookup to get the month in the right line (01 = january) etc.

    See the attached file.

    Please reply
    Attached Files Attached Files
    Notice my main language is not English.

    I appreciate it, if you reply on my solution.

    If you are satisfied with the solution, please mark the question solved.

    You can add reputation by clicking on the star * add reputation.

  5. #5
    Registered User
    Join Date
    08-21-2013
    Location
    texas
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Need data sorted on dynamic selection

    Thanks for the reply .But my name and year selection will be dynamic also the tool i am working with cannot use filters. Also I will need the critieria to display dynamicaly.

  6. #6
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Need data sorted on dynamic selection

    In this spreadsheet put this in I3:

    =SUMPRODUCT(($C$3:$C$104=$I3)*($E$3:$E$104=J$2)*($F$3:$F$104))

    And copy over and down as needed.

  7. #7
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Need data sorted on dynamic selection

    The formula I've given you does that. It's looking up something in the row above and something from the column to the left and adding up all the matches for F.

    The references to those lookups are locked for row and column respectively, so that when the formula is moved around it will always still reference whatever you enter in I or row 2.


    If you change H3 to CR3, the data will automatically adjust.

  8. #8
    Registered User
    Join Date
    08-21-2013
    Location
    texas
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Need data sorted on dynamic selection

    Thanks for the reply. This is what I want. I will try my best to be more clear. All I have is data in columns A to F . Columns G and H will get populated dynamically. Columns g will have the name ( A or B) and column H will have the year. The want the output kind of in a pivot table. If the dynamic selection is A and 2012 in column G and H then get me all the data for that selection by pivoted by criteria
    criteria jan feb march april may jun july aug sep oct nov dec
    Cr1 110110 0 0 0 0 0 0 0 0 0 0
    CR2 0 0 0

    Thanks you so much again for helping me ...

  9. #9
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Need data sorted on dynamic selection

    Since a made an table of the data you only have to add new data in the table..

    They automatic expands to the table.

    After that you have to refresh the pivot table to get the new data in the pivot table.

    Refresh the pivot table; Excel 2007 => data => refresh.

    See the attached file.
    Attached Files Attached Files
    Last edited by oeldere; 08-23-2013 at 01:02 PM.

  10. #10
    Registered User
    Join Date
    08-21-2013
    Location
    texas
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Need data sorted on dynamic selection

    Thanks but I cannot use pivot table. The tool I am using wouldnt allow me to do it.

  11. #11
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Need data sorted on dynamic selection

    Please Login or Register  to view this content.
    You use excel 2007.

    Then I don't get it you can't (allowed) to use pivot table.

    Not allowed by whom or what?

  12. #12
    Registered User
    Join Date
    08-21-2013
    Location
    texas
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Need data sorted on dynamic selection

    I am using crystal excelcius. I get data from a report and lay it into excel and from excel ( all the tool allows is to build formulas... no arrays as well) we pull it in a dashboard. There are limiatations when I use excel as middle end.

  13. #13
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Need data sorted on dynamic selection

    Thanks for the reply.

    I don't know the programm crystal excelcius

  14. #14
    Registered User
    Join Date
    08-21-2013
    Location
    texas
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Need data sorted on dynamic selection

    Okay ....Can I match the name ,year and criteria dynamically to get the months diaplayed in the year horizontally inthe excel ...

    if I have input as A , 2011 and CR1 then display months horizontally....

  15. #15
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Need data sorted on dynamic selection

    Then you can use the sumproductformula provided by daffodill11.

    You choose the range that it Always fits. (e.g.(($C$3:$C$1000=$I3) etc.

    But since I don't know your programm, it's just a guess if it's possible.

  16. #16
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Need data sorted on dynamic selection

    This should do it. I added an IF to column G to determine which records meet your dynamic selection, and then appended my SUMPRODUCT to only match those records.

    You can change K6, L6, I14, I15, I16, J12, K12, L12, and M12 to fit whatever you want.

    Attachment 260286

  17. #17
    Registered User
    Join Date
    08-21-2013
    Location
    texas
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Need data sorted on dynamic selection

    Thank you so much daffodil .What I am trying to say is even my months have to be displayed dynamically through a formula. If i select year 2011 then only the months in that year have to be displayed. I am unable to get the months diplayed horizontally through a formula ... .

  18. #18
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Need data sorted on dynamic selection

    Then make an helpcolumn to define the month and year (like I did), for the pivot table.

    Then you can amend that columns in your sumproductformula.

  19. #19
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Need data sorted on dynamic selection

    Like this?

    Attachment 260296

  20. #20
    Registered User
    Join Date
    08-21-2013
    Location
    texas
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Need data sorted on dynamic selection

    Yes .. thanks a lot this is exactly what I was looking for. I need another help. Just found out that sumproduct is buggy in xcelsius. Is there a work around for sumproduct. I cannot use sumifs as well also array functions are not supported.

    Thanks again for all your help....

  21. #21
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Need data sorted on dynamic selection

    You have excluded the only three Excel functions I know that can accomplish data management:
    • Array formulas with braces
    • Functions that utilize arrays such as SUMIFS, SUMPRODUCT
    • Pivot Tables (which are utilize the same logic as above behind the scenes)

    (your data is in an array)

  22. #22
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Need data sorted on dynamic selection

    #20
    Please Login or Register  to view this content.
    You got several sumproduct solutions, and in #20 you noticed, also the sumproduct isn't working in excelsius.

    Why didn't you test the formula earlier!!!!!

  23. #23
    Registered User
    Join Date
    08-21-2013
    Location
    texas
    MS-Off Ver
    Excel 2007
    Posts
    16

    Re: Need data sorted on dynamic selection

    The formula works perfectly find in excel. When i connect to my components (charts) nothing gets displayed. I opened a ticket yesterdayregarding it already as they mentioned that sumproduct works with the tool and its not working.... so there is a bug in the tool. Thanks for all your help...i figured out a alternate solution to implement a pivot table. !!!!

    Thanks a lot Daffodil for giving me ideas and formulas...

  24. #24
    Forum Expert daffodil11's Avatar
    Join Date
    07-11-2013
    Location
    Phoenixville, PA
    MS-Off Ver
    MS Office 2016
    Posts
    4,465

    Re: Need data sorted on dynamic selection

    No problem, glad I could help. Thanks for the feedback.

+ 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. Replies: 6
    Last Post: 07-16-2013, 05:47 AM
  2. Print sorted parts of selection on separate pages
    By tradersteve in forum Excel General
    Replies: 1
    Last Post: 04-01-2013, 02:45 AM
  3. dynamic graph data selection
    By penfold1992 in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 01-17-2013, 08:22 AM
  4. Dynamic named range based on data selection.
    By ObiWanBaloney in forum Excel General
    Replies: 3
    Last Post: 06-08-2012, 07:07 PM
  5. Dynamic Chart Data Selection
    By NeoPhyx in forum Excel General
    Replies: 2
    Last Post: 06-11-2010, 12:21 PM

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