+ Reply to Thread
Results 1 to 24 of 24

how to sort a sort data based on headers

  1. #1
    Forum Contributor
    Join Date
    01-28-2013
    Location
    Rugby
    MS-Off Ver
    365
    Posts
    205

    how to sort a sort data based on headers

    Good Afternoon
    I was wondering if i could have some support resolving the follow problem
    On the attached spreadsheet i have some data under report tab, i need to break that data and transfer across to the master tab, so it will show me every department qty order and despatched rtc by date.
    Support with this issue would be much appreciate
    Attached Files Attached Files

  2. #2
    Valued Forum Contributor ranman256's Avatar
    Join Date
    07-29-2012
    Location
    Kentucky
    MS-Off Ver
    Excel 2003
    Posts
    1,189

    Re: how to sort a sort data based on headers

    If you have Ms Access, it can be done in a single query.
    or
    you can try Excel query...
    https://support.office.com/en-sg/art...rs=en-SG&ad=SG

  3. #3
    Forum Contributor
    Join Date
    01-28-2013
    Location
    Rugby
    MS-Off Ver
    365
    Posts
    205

    Re: how to sort a sort data based on headers

    Quote Originally Posted by ranman256 View Post
    If you have Ms Access, it can be done in a single query.
    or
    you can try Excel query...
    https://support.office.com/en-sg/art...rs=en-SG&ad=SG
    Hi

    Thank you for your answer, but never have worked with nay of the above, is anyway that you could explain how this could be done by ms access

    Thanks

  4. #4
    Forum Contributor
    Join Date
    01-28-2013
    Location
    Rugby
    MS-Off Ver
    365
    Posts
    205

    Re: how to sort a sort data based on headers

    Quote Originally Posted by luis6777 View Post
    Hi

    Thank you for your answer, but never have worked with nay of the above, is anyway that you could explain how this could be done by ms access

    Thanks
    Please this would be much appreciated as i have been trying to get this for long time without joy

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,047

    Re: how to sort a sort data based on headers

    See if the attached will work for you. It will take a little bit of manual adjusting when you add a new date - you will need to insert a row and copy some stuff down.

    I used a helper column (N) to overcome the merged cells in B, you can hide this if you like
    Attached Files Attached Files
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: how to sort a sort data based on headers

    If you don't like the helper, you could try this instead:

    =SUMIFS(Report!J:J,Report!$A:$A,Master!$C3,Report!$F:$F,INDIRECT("'Master'!N"&INT((ROWS($1:1)-1)/4)*4+3))
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,047

    Re: how to sort a sort data based on headers

    Glen, any idea how to have `1 copy-downable formula for the dates?

  8. #8
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: how to sort a sort data based on headers

    Ford - eh? Did I screw up somewhere? It's not been my best ever day!!

  9. #9
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2406
    Posts
    44,662

    Re: how to sort a sort data based on headers

    I think I now know what you meant at post 7. No is the answer. To be honest, I doubt if I would have come up with the neat solution that you used!!

  10. #10
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,047

    Re: how to sort a sort data based on headers

    Yes, I mean the date-extract formula. You cant just copy it down, it is extracting unique dates, but they need to repeat for evert code, and thanks for the compliment

  11. #11
    Forum Contributor
    Join Date
    01-28-2013
    Location
    Rugby
    MS-Off Ver
    365
    Posts
    205

    Re: how to sort a sort data based on headers

    Thank you very much for the help on this, it worked very well.

    If you guys allow me i would like to get that same data but based on picks, ie if they are blank picks or if they are CBO picks, ignoring all other picks, is this possible?

    i have add some columns on the attached spreadsheet and i have highlighted what i mean
    your support would be much appreciated

    Thanks
    Attached Files Attached Files

  12. #12
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,047

    Re: how to sort a sort data based on headers

    The nice thing about sumifS() is that you can just keep adding criteria to it.

    I'm not sure what the "blank" picks are, but this shows how to add to my original formula for the CBO...
    =SUMIFS(Report!J:J,Report!$A:$A,Master!$C4,Report!$F:$F,Master!$O4,Report!$O:$O,"CBO")

    You could use that same method to add any other column/s to the fiormula

  13. #13
    Forum Contributor
    Join Date
    01-28-2013
    Location
    Rugby
    MS-Off Ver
    365
    Posts
    205

    Re: how to sort a sort data based on headers

    Quote Originally Posted by FDibbins View Post
    The nice thing about sumifS() is that you can just keep adding criteria to it.

    I'm not sure what the "blank" picks are, but this shows how to add to my original formula for the CBO...
    =SUMIFS(Report!J:J,Report!$A:$A,Master!$C4,Report!$F:$F,Master!$O4,Report!$O:$O,"CBO")

    You could use that same method to add any other column/s to the fiormula
    Thank you for your response, but this formula wont give me what im looking for, so i wont to know how many cases and units ordered for each department where the order type is CBO, or the order type is blank,

    Help with this would be appreciated

    Thanks

  14. #14
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,047

    Re: how to sort a sort data based on headers

    give me a few sample answers please, as I said...
    I'm not sure what the "blank" picks are,

  15. #15
    Forum Contributor
    Join Date
    01-28-2013
    Location
    Rugby
    MS-Off Ver
    365
    Posts
    205

    Re: how to sort a sort data based on headers

    Hi

    In the spreadsheet tab report column O Pick column if the cells are empty means blank pick, and what i need is exacle the same that have been done but only referring to the data from Picks CBO and blanks, ignoring all the other dqata

    EX

    T01 20 cartons orders and 50 units ordered in total, i just need to know how many of that ones are from blank picks and how many are from CBO picks

    Hope i manage to explain it

    Thanks

  16. #16
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,047

    Re: how to sort a sort data based on headers

    Well, like I said, you can adapt the SUMIFs() function to add up data in all sorts of ways - you just need to pick the criteria range and the criteria,and include them in the formula. I have given you the basis, the rest should be straight forward. To count the blankl cells, you would do it like this...
    =SUMIFS(Report!J:J,Report!$A:$A,Master!$C4,Report!$F:$F,Master!$O4,Report!$O:$O,"")

  17. #17
    Forum Contributor
    Join Date
    01-28-2013
    Location
    Rugby
    MS-Off Ver
    365
    Posts
    205

    Re: how to sort a sort data based on headers

    thank you for your response
    I do not want to count the blank cells, i would like to do the same extraction of data that we have done earlier but i would like to do based on the empty cells from that column

  18. #18
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,047

    Re: how to sort a sort data based on headers

    I do not want to count the blank cells, i would like to do the same extraction of data that we have done earlier but i would like to do based on the empty cells from that column
    I fail to see the difference between BLANK cells and EMPTY cells? I have shown you how to build the formula, so you should be able to do it now

  19. #19
    Forum Contributor
    Join Date
    01-28-2013
    Location
    Rugby
    MS-Off Ver
    365
    Posts
    205

    Re: how to sort a sort data based on headers

    Quote Originally Posted by FDibbins View Post
    I fail to see the difference between BLANK cells and EMPTY cells? I have shown you how to build the formula, so you should be able to do it now
    no difference between blank and empty cell, i trying the say is that i need to do the same sort that you have done early in the spreadsheet but instead of being based in all the data in the spreadsheet will need to be based on the blank or empty cell and cells with CMB on column O

    So if we have 20 [rows of data and 6 of the them on column o are empty we will sort the data only based on that 6

    Sorry but my English is not great and sometimes i find difficulty in explain myself

    Thanks

  20. #20
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,047

    Re: how to sort a sort data based on headers

    I have explained to you what you need to do, try it yourself and see how you make out

  21. #21
    Forum Contributor
    Join Date
    01-28-2013
    Location
    Rugby
    MS-Off Ver
    365
    Posts
    205

    Re: how to sort a sort data based on headers

    i wil trty it again but it onli give me the total of empty cells not any data elated to the empty cells

  22. #22
    Forum Contributor
    Join Date
    01-28-2013
    Location
    Rugby
    MS-Off Ver
    365
    Posts
    205

    Re: how to sort a sort data based on headers

    Yes this is only counting the qty of empty cells for each one of the days, i would like it to count the qty of cases and single against each date but only for the data related with the empty cells or CBO, exactly the same as the original problem but this time will need to be related only to the data relevant to the empty cells and to CBO cells

    Thanks

  23. #23
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    53,047

    Re: how to sort a sort data based on headers

    Construct the formula like I showed you. Include whichever columns (criteria ranges) and criteria you want...

    =sumifs(sum-range,criteria-range1,criteria1,criteria-range2,criteria2,criteria-range3,criteria3...............................etc

  24. #24
    Forum Contributor
    Join Date
    01-28-2013
    Location
    Rugby
    MS-Off Ver
    365
    Posts
    205

    Re: how to sort a sort data based on headers

    Quote Originally Posted by FDibbins View Post
    Construct the formula like I showed you. Include whichever columns (criteria ranges) and criteria you want...

    =sumifs(sum-range,criteria-range1,criteria1,criteria-range2,criteria2,criteria-range3,criteria3...............................etc
    ok i got it thank you

+ 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. [SOLVED] Sort data - except headers
    By Nate Westcott in forum Excel General
    Replies: 2
    Last Post: 02-13-2015, 12:02 PM
  2. [SOLVED] sort table data by selectable headers
    By bwanaal in forum Excel General
    Replies: 1
    Last Post: 04-04-2014, 06:01 AM
  3. [SOLVED] I have a sort macro. How to add script to preselect rows to sort based on column value?
    By Jasonhouse in forum Excel Programming / VBA / Macros
    Replies: 10
    Last Post: 03-09-2014, 02:25 AM
  4. Sort rows of data by date after last row entry with page headers
    By Mark GC in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-19-2013, 09:19 AM
  5. [SOLVED] Headers Sort With Data
    By kwengerd in forum Excel General
    Replies: 4
    Last Post: 08-28-2012, 12:29 PM
  6. Replies: 3
    Last Post: 09-30-2010, 12:30 PM
  7. how do you sort two columns; data and headers
    By Bolek in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-19-2005, 01:25 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