+ Reply to Thread
Page 1 of 2 1
Results 1 to 200 of 292

Sorting, Counting a parts list

  1. #1
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Sorting, Counting a parts list

    I have taken an electronic schematic and pulled over 700 part numbers. This data has been used to create a spreadsheet by the OEM Part Number. I have then assigned replacement parts and vendors to these OEM Part Numbers. Now I need to create orders with the Vendors. Need to sort the parts by Vendor, Vendor Part Number and how many of each part.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Arrow Re: Sorting, Counting a parts list


    No need any VBA procedure according to this forum section, just use directly the sort Excel feature …

  3. #3
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    I need more guidance

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    Which version of Excel are you using? 10 is Windows, not Excel.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  5. #5
    Forum Expert
    Join Date
    11-24-2013
    Location
    Paris, France
    MS-Off Ver
    Excel 2003 / 2010
    Posts
    9,831

    Re: Sorting, Counting a parts list


    Any question relative to this VBA forum section ?
    If not ask a moderator to move your thread to the appropriate forum section …

  6. #6
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    Quote Originally Posted by AliGW View Post
    Which version of Excel are you using? 10 is Windows, not Excel.
    Where do I find this?

  7. #7
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    In Excel > File menu > at the bottom is Account.

    I am not clear about what you are trying to do with the data. Is it just sorting, or are you trying to create some form of analysis (summary)?

  8. #8
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    Quote Originally Posted by Pulsed Power View Post
    Where do I find this?
    Microsoft 365

  9. #9
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    Please update your forum profile, then answer my question in post #7.
    Attached Images Attached Images

  10. #10
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    Sort by:
    Vendor
    Vendor Part Number
    Create an order with the vendor stating part number and qty of each

  11. #11
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    Sort by:
    Vendor
    Vendor Part Number
    You can do this by adding filters to the table: select row B > Data ribbon > Filter.

    Create an order with the vendor stating part number and qty of each
    Not enough information. Please mock up what you would want this to look like manually for a vendor so that we know what we are aiming for.

  12. #12
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    Vendor name vendor part number qty price

  13. #13
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    Vendor name vendor part number qty price each price total
    mouser 512-ksc1845fta 5 $0.33 $1.65

  14. #14
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    Quote Originally Posted by AliGW View Post
    You can do this by adding filters to the table: select row B > Data ribbon > Filter.



    Not enough information. Please mock up what you would want this to look like manually for a vendor so that we know what we are aiming for.
    Ok that completed the sort now I need to create the additional columns from that sort data

  15. #15
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    Vendor vendor part number cost
    hifi collective 1autsj330m0 $1.09
    hifi collective 1autsj330m0 $1.09
    hifi collective 1cutsj101m0 $1.20
    hifi collective 1cutsj101m0 $1.20
    hifi collective 1eutsj100m0 $1.09
    hifi collective 1eutsj100m0 $1.09
    hifi collective 1hutsj010m0 $1.09
    hifi collective 1hutsj010m0 $1.09
    hifi collective 1hutsj3r3m0 $1.09
    hifi collective 1hutsj3r3m0 $1.09
    hifi collective cap-100-s-220u-63v $8.26
    hifi collective dme-090 $1.17
    hifi collective dme-090 $1.17
    hifi collective dme-090 $1.17
    hifi collective dme-090 $1.17
    hifi collective dme-160 $1.22
    hifi collective dme-160 $1.22
    hifi collective dme-160 $1.22
    hifi collective dme-160 $1.22
    hifi collective dme-220 $2.00
    hifi collective dme-220 $2.00
    hifi collective dme-220 $2.01
    hifi collective dme-220 $2.01
    hifi collective dme-270 $2.63
    hifi collective dme-270 $2.63
    hifi collective dme-270 $2.63
    hifi collective dme-270 $2.63
    hifi collective rex25-270 $0.51
    hifi collective rex25-270 $0.51

  16. #16
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    My purchase order cells and columns would define
    1. Vendor Name
    2. Vendor Part Number
    3. Quantity
    4. Price each
    5. Total price for qty ordered

    How to create an invoice that will take this sorted data automatically?
    Last edited by Pulsed Power; 08-11-2023 at 10:11 AM.

  17. #17
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    Mock up what you want to see in the workbook.

  18. #18
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    I can do that, but I can't seem to show this in a reply
    Can't post a screenshot
    Last edited by AliGW; 08-11-2023 at 10:23 AM. Reason: Please do NOT quote unnecessarily!

  19. #19
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    In the workbook - then attach the new copy of the workbook.

  20. #20
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    A quick example of a purchase order
    Attached Files Attached Files

  21. #21
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    Sorry - how does this relate to the first workbook you attached?

    I am completely lost as to how you expect this to work.

    You know your data intimitely - we don't.

    I can't help unless you explain this clearly, sorry.

    Please stop duplicating posts!

  22. #22
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    You asked me to post a new workbook showing the added columns
    Last edited by AliGW; 08-11-2023 at 11:36 AM. Reason: Please do NOT quote unnecessarily!

  23. #23
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    I am completely lost as to how you expect this to work.

    Extract data from workbook totals and insert into the Purchase Order

  24. #24
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    I can't help unless you explain this clearly, sorry.

    I am trying my best

  25. #25
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    Sorry - the data in the quotation does not match the data in the original workbook as far as I can see, so I am none the wiser.

    I'll leave this to someone who understands your thought processes.
    Last edited by AliGW; 08-11-2023 at 10:53 AM. Reason: Typo fixed.

  26. #26
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    Does this help?
    Attached Files Attached Files
    Last edited by AliGW; 08-11-2023 at 11:08 AM. Reason: Please do NOT quote unnecessarily!

  27. #27
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    Honestly, no - I'm sorry.

    I've put out a call for help Someone will step in.

  28. #28
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    One more attempt
    Attached Files Attached Files

  29. #29
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    Try in A22 for the second table:

    =FILTER(G4:K13,J4:J13<>"")

    I still don't fully understand how you are getting to the top table - where/how are the quantities required being entered?
    Attached Files Attached Files

  30. #30
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    That is why I am reaching out for assistance, I don't know how to get the values extracted from the top table and placed into the bottom table
    Last edited by AliGW; 08-11-2023 at 11:31 AM. Reason: Please do NOT quote unnecessarily!

  31. #31
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    I've shown you how to create the bottom table from the top table in my previous post.

  32. #32
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    Fails to count how many times that part number appears in the list of 700 OEM Part Numbers
    Last edited by AliGW; 08-11-2023 at 11:35 AM. Reason: Please do NOT quote unnecessarily!

  33. #33
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    Your version above and my solution below:

    AliGW on MS365 Beta Channel (Windows 11) 64 bit

    A
    B
    C
    D
    E
    16
    HIFI COLLECTIVE 1AUTSJ330M0
    $ 1.09
    2
    $ 2.18
    17
    HIFI COLLECTIVE 1CUTSJ101M0
    $ 1.20
    2
    $ 2.40
    18
    HIFI COLLECTIVE 1EUTSJ100M0
    $ 1.09
    2
    $ 2.18
    19
    HIFI COLLECTIVE 1HUTSJ010M0
    $ 1.09
    2
    $ 2.18
    20
    HIFI COLLECTIVE 1HUTSJ3R3M0
    $ 1.09
    2
    $ 2.18
    21
    22
    HIFI COLLECTIVE 1AUTSJ330M0
    1.09
    2
    2.18
    23
    HIFI COLLECTIVE 1CUTSJ101M0
    1.2
    2
    2.4
    24
    HIFI COLLECTIVE 1EUTSJ100M0
    1.09
    2
    2.18
    25
    HIFI COLLECTIVE 1HUTSJ010M0
    1.09
    2
    2.18
    26
    HIFI COLLECTIVE 1HUTSJ3R3M0
    1.09
    2
    2.18
    Sheet: Sheet1

    Where in your version is the count that you say is missing from mine?

  34. #34
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    You must refer to the original posted workbook
    Last edited by AliGW; 08-11-2023 at 11:40 AM. Reason: Please do NOT quote unnecessarily!

  35. #35
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    No, I'm sorry - I have asked repeatedly for everything in one workbook - I am not going to keep cross-referencing back and forth.

    Administrative Note:

    Please don't quote whole posts, especially when you are responding to the one immediately preceding your own - it's just clutter and rarely necessary.

    If you are responding out of sequence, it is usually enough just to mention the helper's user name (e.g @AliGW).

    If you do need to quote, limit the quoted section just to the section to which you wish to draw your helper's attention or a direct question to which you wish to respond.

    For normal conversational replies, try using the QUICK REPLY box below or the REPLY button instead of REPLY WITH QUOTE.

  36. #36
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    Your column D is not conducting a search in the workbook (700 individual rows) of how many times that part # appears and then posting that value into the column D

  37. #37
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    Hopefully someone else will be able to help you. I have to go now (it's late afternoon in the UK). Good luck!

  38. #38
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    I am not going to keep cross-referencing back and forth

    I believe you are making this far more complex than it is.

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

    Re: Sorting, Counting a parts list

    I will take a look, but I don't want to read my way through 38 posts. Please point me to the BEST description of what you want, and the BEST sample file to look at!
    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.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

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

    Re: Sorting, Counting a parts list

    Did you look in A22 in Ali's file at Post 29???

  41. #41
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    It fails to address the qty issue
    Please see attached
    Attached Files Attached Files

  42. #42
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    Fails to count how many times that part number appears in the list of 700 OEM Part Numbers

  43. #43
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    I believe you are making this far more complex than it is.
    I have done my best to work out what you want from what you have given us to work with. I am sure it will be very straightforward once you adequately explain exactly what you want, how you want it and where you want it. Over to Glenn ... I'm off the laptop now.

  44. #44
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    I am very thankful to have your support but I must run to a quick dental appointment. Will reply when I return.

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

    Re: Sorting, Counting a parts list

    OK. Let me get this clear. You want to pull the numbers from D41:D45 and stick them in the right place in column J. Yes or no?

    If so, in the case of HIFI COLLECTIVE 1AUTSJ330M0, row 41... there are TWO possible rows in the upper table where it can go... J24 & J25. What is the RULE that tells Excel which row it should go in?

  46. #46
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    Glenn please look at my last attachment for a summary

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

    Re: Sorting, Counting a parts list

    I have... and I have replied already.

  48. #48
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159
    Quote Originally Posted by Glenn Kennedy View Post
    I have... and I have replied already.
    I entered that Qty manually just to show what i was seeking. Out of the 700 OEM part numbers [far left] how many times does the HIFI Collective part number appear (total count)

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

    Re: Sorting, Counting a parts list

    That doesn't answer my question. I needed a YES or a NO and either a description of a RULE OR a correction to my interpretation.

    So a guess.

    J24:
    =LET(A,H24:H38,IFERROR(IF(MAP(A,LAMBDA(x,COUNTIF(H24:x,x)))=1,MAP(A,LAMBDA(y,FILTER(D41:D45,B41:B45=y))),""),""))

    K24:
    =IFERROR(I24:I38*J24#,"")
    Attached Files Attached Files

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

    Re: Sorting, Counting a parts list

    I entered that Qty manually WHERE?? just to show what i was seeking. Out of the 700 OEM part numbers [far left] WHERE EXACTLY how many times does the HIFI Collective part number appear WHERE???(total count)

    If you don't state EXPLICITLY which cell(s) we are meant to look at this is rapidly becomes a guessing game.

    The BEST sample files have a CLEARLY labelled area for the BEFORE and a CLEARLY labelled area showing the desired results

  51. #51
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    Then the sorted list must return the Vendor name, vendor part number, quantity of each part needed and total price for that line item. I tried to show this in the attached Purchase Order and somehow managed to convey my need. Again the 700 parts were created from a OEM Shematic with the original OEM part number, for instance C301. So there are many times that a C device value is repeated.

  52. #52
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    Column D is the manual entry.
    Column A is OEM part number Example C301
    Part number adjacent to Vendor name is the vendor part number

  53. #53
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    If we collaborate on line I believe this all could be settled in a few minutes.

  54. #54
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    Each column has a heading does the attached file not display that?

  55. #55
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    FILTER(D41:D45,B41:B45=y

    What is the purpose of these in the equation?

  56. #56
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    Quote Originally Posted by pulsed power View Post
    each column has a heading does the attached file not display that?

    part # value type replacement vendor vendor part number cost each qty total cost total

  57. #57
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    I entered that OEM Part #
    Attached Images Attached Images

  58. #58
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    Vendor that I am needing to purchase parts from:
    Attached Images Attached Images

  59. #59
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    Vendor PART NUMBER
    Attached Images Attached Images

  60. #60
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    Cost of PART from vendor
    Attached Images Attached Images

  61. #61
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    I have around 700 part numbers that I must define how many of EACH SPECIFIC VENDOR PART NUMBER
    Attached Images Attached Images

  62. #62
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    For instance in one of the ten sheets I have: H4:H101 (Vendor Part Numbers)
    How many: DME-170 are in this list? What is the formula to extract this count?
    Last edited by Pulsed Power; 08-11-2023 at 03:14 PM.

  63. #63
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    So from the kindness of ALI I was able to sort the part numbers from the list of 700 part numbers, I can see that I have 4 each DME-090. I can count these manually but I would like a formula to automatically give me a count
    Attached Images Attached Images

  64. #64
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    Then that count result will go into the Purchase Order:
    Attached Images Attached Images

  65. #65
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Sorting, Counting a parts list

    Use COUNTIF function

    =COUNTIF(Sheet1!C:C, Part_Number)

    where C is column of Part Numbers and Part_Number is the one you want to count (DME-170)
    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

  66. #66
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    I must be missing something

    =COUNTIF(H4:H101,SMC-570)

  67. #67
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    Try:

    =COUNTIF(H$4:H$101,"SMC-570")

  68. #68
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    Thank you! That works

  69. #69
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    As typical there is always additional steps that could be implemented to make this task easier.

  70. #70
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    I started out with 417 line item parts, with the sorting this brought this number down to 121 separate part numbers
    With the COUNT instruction I will need to enter the command line 121 times with the different part numbers to get the # of parts
    Any additional ideas?

  71. #71
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    Why Part#? Surely you should be counting on the Vendor#?

    Once again, please provide an updated workbook showing what you mean. Filter the data to leave the 121 rows visible.

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

    Re: Sorting, Counting a parts list

    Over to you, Ali. My Golden Rule here is I'll make only ONE guess; then I stop until a fully-explained requirement is produced.

  73. #73
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    Surely you should be counting on the Vendor#?

    Sorry I used the incorrect name, Yes I am working with the Vendor #
    Attached Files Attached Files
    Last edited by Pulsed Power; 08-12-2023 at 02:12 AM.

  74. #74
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    I asked you to filter the data to the 121 rows you had left visible - please, please, please do as we ask! If you don't, it takes ten times longer to get to where we need to be!

    If you don't provide exactly what I've asked for, then I shall politely withdraw my offer of further assistance.

    My Golden Rule here is I'll make only ONE guess;
    I'm going to give it one more go.

  75. #75
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    As you have requested
    Attached Files Attached Files

  76. #76
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    No - not as I requested.

    I asked you to FILTER the data, not copy and paste the filtered data.

    Please select row 2, Data ribbon > Filter, apply the filters that bring you to 121 rows of filtered data. Last chance!

  77. #77
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    It was done manually, no filter was used

  78. #78
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    OK - I'm done. We are getting nowhere fast. I am really sorry, but I cannot work with you on this. You keep changing your mind about how you are doing things: one minute you are asking how to filter the data (so I gave you the solution to that way back), then you filter that way, then you stop filtering that way and extract data manually - your chaotic approach is what is making it impossible to get to the crux of the matter.

    I hope that someone else will be able to understand your thought processes and help you to a solution. Good luck with it.

  79. #79
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    All data shown was created using your SORT suggestion

    =COUNTIF(H$4:H$101,"SMC-570") Is the topic at this point

    With the COUNT instruction I will need to enter the command line 121 times with the different part numbers to get the # of parts
    Any additional ideas?

    Row H was created by my manual count and entry

  80. #80
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    All data shown was created using your SORT suggestion
    But it doesn't show it. I asked for the data with those 'sorts' (actually filters) in place. I do not understand why you cannot simply provide what I and others have asked for.

    As I said, I don't feel I can work with you as you are in fact working against me at every turn by failing to address the specific questions asked (not just by me, but by Glenn, too) and failing to provide data in the format we have requested.

    80 posts in and we are no nearer to an understanding and eventual solution than we were at the start, so two experienced helpers have decided to walk away. Sorry, but I have reached the end of my usefulness to you on this. I genuinely hope that someone else can work through it with you.

  81. #81
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Sorting, Counting a parts list

    in H5 and drag (copy) down

    Formula: copy to clipboard
    Please Login or Register  to view this content.


    ???

  82. #82
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    Quote Originally Posted by AliGW View Post
    ... I do not understand why you cannot simply provide what I and others have asked for ...
    Because the original file is to large to upload
    Last edited by AliGW; 08-12-2023 at 05:27 AM. Reason: Please do NOT quote unnecessarily!

  83. #83
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    You could have cut it down and still shown me data with the filters applied - not a valid excuse.

    STOP quoting unnecessarily, please - it's just unnecessary clutter.

  84. #84
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    Please respond to post #81. Hopefully that's what you want.

  85. #85
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    I have needed to set back and think WWJD

  86. #86
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    Do I take it that John's suggestion hasn't worked for you? Please respond to his suggestion at least.

  87. #87
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    It is obvious that my level of experience is far below the level of the people trying to help, all I seam to do is upset people. I don't want to do this anymore.

  88. #88
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    Let's be absolutely clear: you are NOT upestting anybody. Baffling us perhaps, but that's not the same thing.

    ALL OF US are trying to help you, but there's only so far we can go without the information that we really need.

    Once more: does John's suggestion get you any closer to what you need?

  89. #89
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    The things you take as basic are not so basic to me. That is my fault. I simply don't know how to gather the information you request and post it within these limited restrictions.

  90. #90
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    You see, you won't even answer a simple question 'yes' or 'no' - that's pretty frustrating for those trying to help.

    For the fourth time, does John's suggestion in post #81 help? Yes or no?

    What I want to see is a subset of your full dataset that includes perhaps THREE vendors. I then want you to use the filters to filter this dataset to leave you with the 121 rows of data you said you were going to need to count one-by-one. Let me know if you do not understand what I am asking for.

    The things you take as basic are not so basic to me.
    I try not to make assumptions about anyone's level of competence, but yes, it seems that you are very much a novice at Excel, so let's see if you can follow the hopefully clearer instructions in this post.
    Last edited by AliGW; 08-12-2023 at 07:13 AM.

  91. #91
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Sorting, Counting a parts list

    See attached if this helps: formula is in column H
    Attached Files Attached Files

  92. #92
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    The formula that John wrote is based upon the already compiled data. I don't see it's application to the data set in the left hand columns.

    I don't want to have to count the parts totals manually. I want to take the data in the left columns and end up with the results shown in the right hand columns.

  93. #93
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Sorting, Counting a parts list

    UNIQUE function should get the list in columns E onwards but I do not have 365 so cannot help further.

  94. #94
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    Paste this into K5:

    =UNIQUE(FILTER($A$2:$C$437,$A$2:$A$437="HIFI COLLECTIVE"))

    Does it produce the correct subset of data (never mind any counting for now). Yes or no?

  95. #95
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    I don't see the command line that moved the highlighted rows in columns ABC to EFG, how did you accomplish this?

  96. #96
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    Does this do what you want? YES or NO?

    =LET(u,UNIQUE(FILTER($A$2:$C$437,$A$2:$A$437="HIFI COLLECTIVE")),x,INDEX(u,,2),b,BYROW(x,LAMBDA(r,COUNTIF(B:B,r))),HSTACK(u,b))

    If it does, I shall explain it to you (or try to).
    Last edited by AliGW; 08-12-2023 at 07:32 AM.

  97. #97
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    The result in K5 is #SPILL!

  98. #98
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    Look at my attachment to post #96.

    Once again: does it do what you want? Please answer simply YES or NO.

  99. #99
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    Ali that works yes

  100. #100
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    OK. Now you need to try it in your real data file.

    Let me try to explain it to you (I shall post shortly with an explanation).

  101. #101
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    =LET(u,UNIQUE(FILTER($A$2:$C$437,$A$2:$A$437="HIFI COLLECTIVE")),x,INDEX(u,,2),b,BYROW(x,LAMBDA(r,COUNTIF(B:B,r))),HSTACK(u,b))

    LET allows me to set parameters. The parameters are:

    u > UNIQUE(FILTER($A$2:$C$437,$A$2:$A$437="HIFI COLLECTIVE"))

    This filters the full data table so that it shows only rows with the vendor HIFI COLLECTIVE. UNIQUE further filters that list to unique values only.

    x > INDEX(u,,2)

    This indexes JUST the second column (Part #) of the filtered array.

    b > BYROW(x,LAMBDA(r,COUNTIF(B:B,r)))

    This applies John's COUNTIF formula to the part numbers in the filtered array.

    HSTACK(u,b)

    This stacks the filtered array next to the counts to give the table with the extra count column.

    I hope that you'll be able to adapt this to work with your real data. All you should really need to tweak are the bits in red:

    =LET(u,UNIQUE(FILTER($A$2:$C$437,$A$2:$A$437="HIFI COLLECTIVE")),x,INDEX(u,,2),b,BYROW(x,LAMBDA(r,COUNTIF(B:B,r))),HSTACK(u,b))

  102. #102
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    Let us know once you've had a chance to try this out on your real dataset.

  103. #103
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    Unless you want an INBOX full of SPAM, don't publish your E-mail address on a public forum.

    Sorry, but this needs to continue here - there is no need to take it off grid, and that would not help anyione using this thread as a source of help in the future.

    If you have questions, ask them here. I shall not be communicating with you outside the forum. Thanks for your understanding and co-operation.
    Last edited by AliGW; 08-12-2023 at 09:48 AM.

  104. #104
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    Let's try this
    Attached Files Attached Files

  105. #105
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    What is the question?

  106. #106
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    Is this what you want?

    =LET(u,UNIQUE(FILTER($E$2:$G$437,$E$2:$E$437="HIFI COLLECTIVE")),x,INDEX(u,,2),b,BYROW(x,LAMBDA(r,COUNTIF(F:F,r))),c,BYROW(x,LAMBDA(r,SUMIF(F:F,r,G:G))),HSTACK(u,b,c))
    Attached Files Attached Files

  107. #107
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    Here's a version with a drop-down list added to select the vendor.

    =LET(u,UNIQUE(FILTER($E$2:$G$437,$E$2:$E$437=L2)),x,INDEX(u,,2),b,BYROW(x,LAMBDA(r,COUNTIF(F:F,r))),c,BYROW(x,LAMBDA(r,SUMIF(F:F,r,G:G))),HSTACK(u,b,c))
    Attached Files Attached Files

  108. #108
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    Absolutely a Work of Art! Only took 108 Post!

  109. #109
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    It could have been done in under 10 with a clear explanation, but never mind - we got there in the end!

    Next time, please try to illustrate what you are aiming for with a workbook that shows the before data and results you want manually mocked up in a sample set. That way, you'll get to where you need to be much faster.

    Glad to have helped.

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

  110. #110
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    POST #1

    I have taken an electronic schematic and pulled over 700 part numbers. This data has been used to create a spreadsheet by the OEM Part Number. I have then assigned replacement parts and vendors to these OEM Part Numbers. Now I need to create orders with the Vendors. Need to sort the parts by Vendor, Vendor Part Number and how many of each part.

  111. #111
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    Do the words "thank" and "you" exist in your vocabulary? If so, it would be nice if you used them instead of trying to blame everybody but yourself for the time it took us to solve this for you. You will notice, if you look around a bit, that it rarely takes us that long when members provide a proper mock-up of what they are hoping to see.

    I wish you a good evening.
    Last edited by AliGW; 08-12-2023 at 01:16 PM. Reason: Typo corrected.

  112. #112
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Smile Re: Sorting, Counting a parts list

    I gave thanks to each and everyone by "Add Reputation" and also multiple times within the Post.

    Thanks to all, I do have a much better understanding of my errors in the Post #1. How would you have written the request, give me an example.

    My level of appreciation is way above the scale!
    Last edited by Pulsed Power; 08-12-2023 at 01:42 PM.

  113. #113
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Question Re: Sorting, Counting a parts list

    How do I bring this formula into the remaining 9 sheets of this workbook?

    =LET(u,UNIQUE(FILTER($E$2:$G$437,$E$2:$E$437=L2)),x,INDEX(u,,2),b,BYROW(x,LAMBDA(r,COUNTIF(F:F,r))),c,BYROW(x,LAMBDA(r,SUMIF(F:F,r,G:G))),HSTACK(u,b,c))

    I hope that you'll be able to adapt this to work with your real data. All you should really need to tweak are the bits in red:

    =LET(u,UNIQUE(FILTER($A$2:$C$437,$A$2:$A$437="HIFI COLLECTIVE")),x,INDEX(u,,2),b,BYROW(x,LAMBDA(r,COUNTIF(B:B,r))),HSTACK(u,b))

    $A$2:$C$437,$A$2:$A$437="HIFI COLLECTIVE"

    When I copy and paste the formula into one of the other sheets I receive this error:
    Last edited by Pulsed Power; 08-12-2023 at 06:48 PM.

  114. #114
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    Full Sheet shown here
    Attached Files Attached Files

  115. #115
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    Full file attached
    Attached Files Attached Files

  116. #116
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    When I copy and paste the formula into one of the other sheets I receive this error:
    Because there is no vendor named PPT on that sheet.

    =IFERROR(LET(u,UNIQUE(FILTER($E$2:$G$437,$E$2:$E$437=L2)),x,INDEX(u,,2),b,BYROW(x,LAMBDA(r,COUNTIF(F:F,r))),c,BYROW(x,LAMBDA(r,SUMIF(F:F,r,G:G))),HSTACK(u,b,c)),"No Such Vendor on this Sheet")

    How do I bring this formula into the remaining 9 sheets of this workbook?
    Copy and paste it. Make sure that ALL tables are in the same format. You have a hotch potch of different layouts - I'm not going to rewrite the formula to accommodate this: you need to sort it out.
    Last edited by AliGW; 08-13-2023 at 12:26 AM.

  117. #117
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    For my own amusement, I had a play.

    This will work if all tables start on the same row and have the same column names:

    Please Login or Register  to view this content.
    The bits in red have been adjusted on certain sheets. On the MAIN sheet, it only looks at the first table - you'd need to set it up lower down for the second (but I am assuming after all the examples in the attached that you can work out how to do this yourself - if not, then this may not be the way forward for you).

    BUT it is a compromise that should not have to be made if all data across worksheets were 100% consistent (which is what you should be striving for).

    One thing that you completely failed to mention until now was the hitch potch of data layouts and column names that exist in the real data: I can understand that you would not have considered this important, but it is, so bear it in mind if you ask any questions here in future. Full disclosure is paramount if you wish to get quick and accurate assistance.
    Attached Files Attached Files

  118. #118
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    In this version, I have set up a named range called SUMMARY:

    Please Login or Register  to view this content.
    This then allows me to use this formula:

    =SUMMARY(headers,data,vendor)

    e.g.

    =SUMMARY(A3:G3,A4:G93,L2)

    or:

    =SUMMARY(A3:G3,A4:G93,"MOUSER")

    Examples of this are on the far right of each worksheet.

    This then simplifies it for you going from sheet to sheet and the layout is less important (BUT the column headers MUST match : VENDOR, VENDOR PART NUMBER & COST EACH).

    You could create the same named range in any workbook to make this custom function available.
    Attached Files Attached Files
    Last edited by AliGW; 08-13-2023 at 02:25 AM.

  119. #119
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.

  120. #120
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    After spending most of the Friday night on this Forum I decided I needed to sleep last night. Just now waking up. I did notice that the Vendor selection menu seems to not be working as it did in the prior works, unable to select a Vendor.

    Once again I am amazed with the assistance and very thankful.

  121. #121
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    The vendor selector list could be fixed, but I didn't bother as you didn't seem to be using it.

    You'd need to create a unique list of all possible vendors on the LOOKUP sheet, then I could show you how.

  122. #122
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    HIFI Collective
    Parts Connexion
    Mouser
    Tube Depot
    Amazon Vin1
    Amazon Vin2
    Amazon Vin3
    Amazon Vin4
    EBAY Vin1
    EBAY Vin2
    EBAY Vin3
    EBAY VIN4
    S&S
    PPT

  123. #123
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    Also please remember:
    Not just the red items but to take the finished summary in the workbook and place into the purchase order.
    Attached Images Attached Images
    Last edited by Pulsed Power; 08-13-2023 at 12:15 PM.

  124. #124
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    For the DV list, the source will be:

    =LOOKUP!$C$1#

    See the LOOKUP sheet to see what this refers to.

    I've updated the named range to:

    Please Login or Register  to view this content.
    If that takes care of your original question, please choose Thread Tools from the menu link above and mark this thread as SOLVED.

    Also, if you have not already done so, you may not be aware that you can thank anyone who offered you help towards a solution for your issue by clicking the small star icon (* Add Reputation) located in the lower left corner of the post in which the help was given. By doing so you can add to the reputation(s) of all those who offered help.
    Attached Files Attached Files

  125. #125
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    Quote Originally Posted by Pulsed Power View Post
    Also please remember:


    It's there:

    AliGW on MS365 Beta Channel (Windows 11) 64 bit

    P
    Q
    R
    S
    T
    3
    VENDOR VENDOR PART NUMBER COST EACH QTY TOTAL
    4
    HIFI COLLECTIVE ALPSBLU-02
    19.95
    1
    19.95
    5
    HIFI COLLECTIVE ALPSBLU-04
    19.95
    1
    19.95
    6
    HIFI COLLECTIVE PPN-070
    1.04
    2
    2.08
    7
    HIFI COLLECTIVE PS-210
    2.66
    2
    5.32
    8
    HIFI COLLECTIVE REX25-430
    0.51
    2
    1.02
    9
    HIFI COLLECTIVE REX25-360
    0.51
    2
    1.02
    10
    HIFI COLLECTIVE REX25-480
    0.51
    2
    1.02
    11
    HIFI COLLECTIVE REX25-615
    0.51
    2
    1.02
    Sheet: VOLUME
    Last edited by AliGW; 08-13-2023 at 12:17 PM.

  126. #126
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    Post 124
    Thank you very much

  127. #127
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    Not just the red items but to take the finished summary in the workbook and place into the purchase order.
    There is no purchase order sheet in the workbook. REMEMBER I am NOT going hunting back through old workbooks to find things!!!

  128. #128
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    Post 125
    I guess my eyes are not open enough to see a chart in that format that can be copied and pasted into the Purchase Order

  129. #129
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    You said that your purchase order would require those five columns - so what's the problem? If you add a purchase order sheet to the workbook I attached to post #124, I'll have a look.

  130. #130
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    Please try this. Thank you
    Attached Files Attached Files

  131. #131
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    Damn that is going to be an issue since Purchase Orders will need to be written individually for the vendors
    My example was for one vendor HIFI Collective

  132. #132
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    OK - I really am out for now! This is turning into a job rather than a bit of help.

    I've already done a huge amount - forgive me if I leave what's left to someone else.

    What I suggest you do is fill in (MANUALLY) what you expect to see on the purchase order for HIFI COLLECTIVE. Also say which sheet(s) the data needs to come from.

    I think it's a case of your not having really thought far enough ahead on this: you really need to think right the way through the process otherwise you'll be constantly asking for additions and tweaks to make it work for you.

    Supper time here - have a good day/evening!

  133. #133
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    It is late evening in the UK, we can pick this up when time is best for you

  134. #134
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    Post 132

    I have been thinking the exact same way. Do you offer job work?

  135. #135
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    No - but we have the Commercial Services section here where you can pay someone to work to a brief for you.

    I am a happily retired modern foreign languages teacher.

  136. #136
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    What formula do I need to use to count multiples and place into a single entry (Purchase Order Sheet)
    Attached Files Attached Files

  137. #137
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    Post 135

    From your level of knowledge in this field I thought you were a retired CFO from a Fortune 500 company.

  138. #138
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    Also this is not adding up in Mouser PO
    =SUM(SaleItems_Table[Total Amount])
    Attached Files Attached Files

  139. #139
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Sorting, Counting a parts list

    This topic really interests me. Reading from post 1, I assume you're looking for a comprehensive solution, and I think VBA might be able to assist you.
    If you are still looking for help, it's best if we start from the beginning, and let's open a new topic. This thread has become too long, and people here are probably too tired. Inbox me when you create that topic, and provide me with the link.
    Quang PT

  140. #140
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    No, Bebo - this is against the forum rules. I have closed the dupllicate thread. Please do not advise members to open a new thread on the same topic.

    Don't make assumptions about those helping here: if you wish to chip in, that's fine, but don't say that others are 'tired' - that's out of order, and certainly not for you to decide.
    Last edited by AliGW; 08-14-2023 at 01:43 AM.

  141. #141
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    Quote Originally Posted by Pulsed Power View Post
    Also this is not adding up in Mouser PO
    =SUM(SaleItems_Table[Total Amount])
    SaleItems_Table is the table on HIFI PO, so no, it won't add the amounts in the MOUSER PO table.

    What formula do I need to use to count multiples and place into a single entry (Purchase Order Sheet)
    Is this PO list created from all of the tables from all worksheets where HIFI COLLECTIVE exists? I asked you to say which worksheets you had drawn the manually entered data from.

    I am quite happy to step aside and let Bebo help you with a VBA solution at this point, but it must be here in the original thread. He was quite wrong to advise you to open a new one.
    Last edited by AliGW; 08-14-2023 at 01:47 AM.

  142. #142
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Sorting, Counting a parts list

    @AliGW,
    I apologize for my subjective assessment of everyone's efforts. I just want to say that people are facing difficulties in understanding each other's needs, and certainly, nearly 150 posts without resolving the issue is a rare occurrence on this forum, leading to disappointment for everyone.
    In my opinion, that thread is too long for a newcomer to follow from the beginning. I believe it's best for the OP to summarize what has been achieved so far.
    However, it's okay, we can continue from here as well.
    @Pulsed Power:
    I noticed that the file in post 1 is not your actual data. I'm also not sure which recent files contain the real data. Please:
    1- Resend the file containing the actual data. You can limit the data if needed, but it must be representative.
    2- Manually input the desired outcomes you want.
    Last edited by AliGW; 08-14-2023 at 02:40 AM. Reason: Please do NOT quote unnecessarily!

  143. #143
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    I believe it's best for the OP to summarize what has been achieved so far.
    Yes, but he can do that HERE. You should be aware of the duplicate thread rule. This is no different.

    The reason that the thread is so long is that the OP has not been very good at responding directly and accurately to requests for further information, and now the whole thing has morphed into something bigger and more complex than was first presented. I have solved the original query, but my solution does not now fit what is actually required.

    Your advice is sound:

    1- Resend the file containing the actual data. You can limit the data if needed, but it must be representative.
    2- Manually input the desired outcomes you want.
    @Pulsed Power

    Please respond to Bebo's TWO requirements in your next post. Please do NOT refer him back to previous posts in this thread: make sure everything is here as he has requested so that he can assess the situation for a VBA solution. Remember what I said earlier about thinking the process through to its conclusion and include everything that Bebo needs to know, even if you think it trivial or unimportant, or that Bebo should be able to work it out: full disclosure, please.

    @Bebo

    Over to you!

  144. #144
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Sorting, Counting a parts list

    @AliGW
    Thank you for your support

    @Pulsed Power

    Can I summarize what I understand? Please confirm each point.

    1- PartNumbers (700 pcs) purchased from multiple Vendors: for example:
    Part1 ... Part700
    Vendor1 ... Vendor10
    2- Each vendor can supply multiple types of PartNumbers. One type of PartNumbers can be purchased from multiple different Vendors.
    3- Each sheet contains a different type of circuit board. In each sheet, there's a list of PartNumbers and their corresponding vendors.

    Requirements:

    1- Generate a Purchase Order (PO) for each Vendor.
    2- Requires going through all sheets and extracting vendor-related information to include in the PO.

    Waiting to hear from you.

  145. #145
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    tables from all worksheets where HIFI COLLECTIVE exists? YES

  146. #146
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    I asked you to say which worksheets you had drawn the manually entered data from ALL

  147. #147
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    I am off the case now.

    Please respond in FULL to post #144. Respond in ONE post, not several! Thanks.

  148. #148
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    I am quite happy to step aside and let Bebo help you with a VBA solution at this point

    PLEASE don't step aside. I have no idea what a VBA solution is.
    Last edited by Pulsed Power; 08-14-2023 at 03:49 AM.

  149. #149
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    But you posted in the VBA section!!!

    If you want to continue with formulae, what scope is there for reorganising the workbook?

  150. #150
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Sorting, Counting a parts list

    Quote Originally Posted by Pulsed Power View Post
    I am quite happy to step aside and let Bebo help you with a VBA solution at this point
    PLEASE don't step aside. I have no idea what a VBA solution is.
    If you want to quote someone else's words, please put them inside quotation marks to avoid misunderstandings., like I did

    Also, do you have nothing to talk to me about?

  151. #151
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    @Bebo

    In the absence of a reply from the OP, I believe you have interpreted the brief correctly. I would just remind you that the OP also requires the composite list on the PO to be summarised (unique values with counts and value totals), which you didn't mention (I don't think).

    It would seem to be a case of combining the data generated by my formula into one sheet and from there populating the PO with the relevent columns of data. Perhaps this bit can be automated with VBA, as purchase orders would need to be values only once populated so that the vendor can be changed later for other POs.

    I think the best option will involve having a single vendor selector that populates all of the required data at the same time - this could easily be achieved with my formula - then use VBA to transfer that data as required to the PO.

    A dasboard sheet with a vendor selector and a button to generate the PO might be the easiest for the OP.

  152. #152
    Forum Expert bebo021999's Avatar
    Join Date
    07-22-2011
    Location
    Vietnam
    MS-Off Ver
    Excel 2016
    Posts
    9,466

    Re: Sorting, Counting a parts list

    Quote Originally Posted by AliGW View Post
    @Bebo
    A dasboard sheet with a vendor selector and a button to generate the PO might be the easiest for the OP.
    Certainly.
    This type of request isn't difficult to handle, however, I will start working on it when I receive confirmation from the OP.

  153. #153
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    This type of request isn't difficult to handle
    Not if you know VBA.

    What happens next is the OP's call, but if he rejects the VBA solution, I'll move the thread to a more appropriate forum section.

    It's the middle of the night in Texas.

    Have fun!

  154. #154
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    This is a part-finished formula solution. I have set up a dashboard sheet using a selector list and this formula:

    =LET(v,VSTACK('POWER SW C:REAR C'!K5:O500),f,FILTER(v,INDEX(v,,2)<>0),SORTBY(f,INDEX(f,,2),1))

    It relies on the source sheets being consecutive and starting with Power SW. The selector list on the Dashboard now determines what is populated on the individual source sheets.

    I have then used this formula on the two PO sheets:

    =IF(DASHBOARD!B1=A9,TRIM(LET(d,DASHBOARD!C4:E5000,FILTER(d,INDEX(d,,1)<>0))),"")

    ONLY the sheet whose vendor is selected on the Dashboard sheet will populate. If you change the vendor selector to MOUSER, then the other sheet will be populated.

    This is not finished. You would need to turn the populated values into regular values if you wanted to keep the PO intact - we can look at this with a tiny VBA procedure if necessary later.

    For now, please look at the dashboard sheet and the two PO sheets and let me know if it's doing what you'd hope for.

    Just respond to this - if it's not OK, what needs changing? If it is OK, then just say so. Thanks.
    Attached Files Attached Files

  155. #155
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    It is OK

    One thing I notice is in the PO, which is the same part numbers are not merged into a single part #

    I also see where my inconsistent parts list format is causing you issues, do I need to go back and change these?

  156. #156
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    One thing I notice is in the PO, which is the same part numbers are not merged into a single part #
    Please give me a specific example of this - quote cell addresses where I need to look.

    I also see where my inconsistent parts list format is causing you issues, do I need to go back and change these?
    Yes - data inconsistencies need to be addressed by you - we don't fix these via formulae.

  157. #157
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    You've gone again. So, when you return, see if this resolves the first part number issue (on the dashboard sheet):

    Please Login or Register  to view this content.
    Attached Files Attached Files

  158. #158
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    Example: Dashboard Column C Row 28 & 29, Row 36&37
    Now I see it is because of a price entry discrepancy
    Last edited by Pulsed Power; 08-14-2023 at 09:22 AM.

  159. #159
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    Too late - look at post #157 and respond to it, please.

  160. #160
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    Yes - data inconsistencies need to be addressed by you - we don't fix these via formulae.

    What I wanted to know is if I go back and change these to be consistent will this cause issues?

  161. #161
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    It shouldn't do, no - give it a try on a copy of the workbook.

    Please reposnd to post #157.

  162. #162
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    Too late - look at post #157 and respond to it, please.

    Post 155 stated It is OK

  163. #163
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    No - it's different to what you okayed in post #155 - it addresses the issue you raised there.

    Come on, keep up!!!

    A response is required, please - you need to look at the attachment to post #157.

  164. #164
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    Issue is caused by my bad entry data
    When I then corrected the error on the "POWER SHEET" it destroyed the Columns J,K,L
    Attached Files Attached Files
    Last edited by Pulsed Power; 08-14-2023 at 09:58 AM.

  165. #165
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    OK - so you need to explain to me exactly what you did and what you mean by 'bad data entry'. You never clarified what the 'inconsistencies' were to which you referred. If you mean the order of the columns, then you don't need to do anything about that - the formula handles it as long as the column names are consistent.

    I can't help unless you are really clear about what you mean, what you are doing and where you are doing it.

  166. #166
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    You've deleted the column headers that the formula needs:

    AliGW on MS365 Beta Channel (Windows 11) 64 bit

    A
    B
    C
    D
    E
    F
    3
    D710 SD46 1.24V 1N34A
    $1.95
    ANTIQUE
    Sheet: POWER

    I found them lower down. You do not need to sort the source data - the formula takes care of that.

    The only inconsistencies you need to consider are:

    1. Column headers being named consistently in line with the formula (as I stated in a much earlier post).
    2. Part numbers being spelt consistently and making sure there are no leading or trailing spaces.
    Last edited by AliGW; 08-14-2023 at 10:02 AM.

  167. #167
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    bad data entry

    When I entered the same Vendor Part Number at multiple locations I was not consistent with the COST and which Vendor was supplying the part

  168. #168
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    You've deleted the column headers that the formula needs:

    I just ran the SORT, don't know why it deleted the Headers and I didn't see that they were deleted

  169. #169
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    That should not make a difference.

    Read post #166.

    In the attachment to post #164, you've sorted the data such that the headers are no longer where they should be at the top - that's never going to work. But you don't need to sort the data as the formulae do that for you.

    I just ran the SORT, don't know why it deleted the Headers and I didn't see that they were deleted
    Because you sorted the headers as well! You do NOT need to sort the data.

    Part of the problem is your very elementary understanding of Excel, which is why I expressed my concern about helping you with complex formulae earlier. Your inexperience is causing issues, unfortunately. Not a lot \I can do to mitigate that, I am afraid.
    Last edited by AliGW; 08-14-2023 at 10:06 AM.

  170. #170
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    I found them lower down. You do not need to sort the source data - the formula takes care of that.

    I did this SORT in an attempt to locate the PART COST & VENDOR errors

  171. #171
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    Then copy and paste the data elsewhere and sort it, or learn to sort only the data and not the headers!!!

  172. #172
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    You know, I can tell that you are NOT reading my posts. You are skimming over them.

    Slow down - take stock - breathe. Then go back and read ALL of the posts on this page before responding again.

    You are making this very much harder for me by not paying full attention to what I am saying.

  173. #173
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    learn to sort only the data and not the headers


  174. #174
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    Slow down - take stock - breathe.

    I need to wake up prior to getting on this Forum

  175. #175
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    That means you select everything EXCEPT the headers, then sort; i.e. just the data.

    Read post #173.

    Then I need a response to post #157 before you do any more fiddling.

  176. #176
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    I'm going to wash the pots, so I'll be gone for a little while. When I come back, I expect a detailed response to post #157 in ONE POST. OK?

  177. #177
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    post #157: IT IS OK

  178. #178
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    There is an old saying: Garbage in = Garbage out. If I input garbage then it doesn't matter what you do it will still result in Garbage

  179. #179
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    Yes, but you are going about it in the wrong way.

    You are like a bull in a china shop: there is no method in your approach, nothing is measured or considered. You consistently fail to answer questions directly and continue to do things in the workbook that do not yet need addressing, and when they do, they need addressing methodically and with guidance.

    If you wish me to continue working with you then you are going to have to do things MY way:

    1. You read my questions fully and answer them in ONE post, fully and clearly. You do NOT respond piecemeal. Once you have responded, do not respond again until I have replied. This way the thread is shorter and less chaotic.
    2. You do NOT attempt to do anything in the workbook without my say so. Any data inconsistencies can be addressed, but in an orderly fashion: explain what they are and where they are, and I shall then assess what needs to be done.
    3. You do EVERYTHING that I ask you to do in the way I ask you to do it and nothing more: only this way can we progress this sensibly.

    post #157: IT IS OK
    Does this mean that the issue of duplicated part numbers in the dashboard is now resolved? YES or NO. If NO, which rows are still incorrect in some way and how?

    Respond to this and then WAIT for me to reply.
    Last edited by AliGW; 08-14-2023 at 10:51 AM. Reason: Typo fixed.

  180. #180
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Sorting, Counting a parts list

    For the hell of it! A VBA offering with output in "Dashboard" columns I:M

    Please Login or Register  to view this content.
    Attached Files Attached Files

  181. #181
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    John: Result from my end by clicking on RUN
    Attached Images Attached Images

  182. #182
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    Ali:
    I thought I explained that the part number issue has been resolved by correcting my input data errors

  183. #183
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    No, you did not make that at all clear.

    Have you read post #179? Do you still want my help or are you going to go with John's VBA solution?

  184. #184
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    No, you did not make that at all clear. What did you think I was trying to explain in post 178? and #167?

    Yes I have read your post #179 and took a few minutes to let it soak in

    As always I appreciate all your work and want you to please continue.
    Last edited by Pulsed Power; 08-14-2023 at 11:23 AM.

  185. #185
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    What did you think I was trying to explain in post 178?
    It seemed to be nothing more than an exasperated comment on your own inadequacies. It did not appear to address the duplicate issue in any way, shape or form. Actually, I object to the tone of that question, I am afraid.

    Yes I have read your post #179 and took a few minutes to let it soak in
    Take the evening (my evening that is about to start) to let it sink in.

    If I come back tomorrow and you have not gone with the VBA solution offered, I'll see what I can do, but it will be on my terms. If you start responding in a chaotic way again and don't answer my questions directly and clearly, I shall step away.

    We are now approaching 200 posts. You haven't thanked Bebo for his offer of help, by the way, in fact you have completely ignored him, so you'll need to rectify that.

  186. #186
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Sorting, Counting a parts list

    Click "Macro Security" and then radio button "Enable all macros"

  187. #187
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    Only one question: Does the HIFI Collective PO include the 2 Main Board parts list? Top is one board and the bottom one is the other board.
    It looks like it is only collecting parts from the top list 3:93 should be 3:187, as requested I don't want to attempt a correction
    Last edited by Pulsed Power; 08-14-2023 at 01:03 PM.

  188. #188
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    Are you asking me or John? If me, I addressed that in an earlier post. I’ll deal with it tomorrow.

  189. #189
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    Click "Macro Security" and then radio button "Enable all macros"

    Can't seem to get there

  190. #190
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    I addressed that in an earlier post.
    Please provide the post #

    Attachment is only one board, needs to be both
    Attached Files Attached Files
    Last edited by Pulsed Power; 08-14-2023 at 01:19 PM.

  191. #191
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Sorting, Counting a parts list

    Step 1: In the File tab, click “options.”
    Step 2: In the “Excel options” dialog box, click “trust center settings” in the “trust center” option.
    Step 3: In the “macro settings” option, select “enable all macros.” Click “Ok” to apply the selected macro settings.

    https://support.microsoft.com/en-us/...e-16fed1a7e5c6

    Modified the code to provide list of ALL vendor parts: columns O:S . Unique are in columns I:M

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by JohnTopley; 08-14-2023 at 01:51 PM.

  192. #192
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    Not wishing to create conflicts.
    Last edited by Pulsed Power; 08-14-2023 at 08:14 PM.

  193. #193
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    John
    I did get the macro to run
    I hate to ask again, does this include both the right and left main boards?

  194. #194
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Sorting, Counting a parts list

    If you are refering to "MAIN" the answer is YES BUT in "MAIN" the 2 tables are IDENTICAL both in TITLE - Right Channel - and CONTENT!!!

  195. #195
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    My error of copy and paste, forgot to go back and change the damn title! @ myself

    There are two individual MAIN boards, 1 Right & 1 Left the parts are identical. You would need to see the complete spreadsheet that I had to erase all graphics from in order to upload to understand why.
    Last edited by Pulsed Power; 08-14-2023 at 03:23 PM.

  196. #196
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    When I RUN with Mouser it doesn't populate the Mouser PO
    Issue appears to be SPILL error on the Mouser PO: "A cell we need to SPILL data into isn't blank"

    Also the left columns on the Dashboard do not change to Mouser B.C.D.E.F

    I also notice the HIFI PO from file: sunday13082023 1150am has a total cost of $37127 then when using your RUN the total cost changes to $350.35
    Last edited by Pulsed Power; 08-14-2023 at 04:10 PM.

  197. #197
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,865

    Re: Sorting, Counting a parts list

    Re. post #192 - go with the macro solution. I’m out. I have tried but I just can’t work with you, sorry.

  198. #198
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Sorting, Counting a parts list

    Just a final word for tonight as it is late here in UK:

    The macro puts all results in "Dashboard" as I expected you to confirm that the these are correct. Changing Vendor to Mouser will produce the Mouser vendor results.

    If, and when you confirm the results are OK, I will change the macro to insert what is in columns I:M to the appropriate PO sheet.

    I'll look again tomorrow.

  199. #199
    Forum Contributor
    Join Date
    08-11-2023
    Location
    Texas
    MS-Off Ver
    Microsoft 365
    Posts
    159

    Re: Sorting, Counting a parts list

    Changing Vendor to Mouser will produce the Mouser vendor results.

    These are my observations of the RUN:

    Also the left columns on the Dashboard do not change to Mouser B.C.D.E.F

    I don't know if I am understanding your question.
    Attached Files Attached Files
    Last edited by Pulsed Power; 08-14-2023 at 11:16 PM.

  200. #200
    Forum Expert
    Join Date
    05-05-2015
    Location
    UK
    MS-Off Ver
    Microsoft Excel for Microsoft 365 MSO (Version 2402 Build 16.0.17328.20068) 64-bit
    Posts
    28,206

    Re: Sorting, Counting a parts list

    B:F will not change as I copied/pasted this data so I could compare with my results for (Ali's) HIFI COLLECTIVE results (to avoid #NAME errors as I do not have 365

    I told you the macro columns of "interest" and, as appears to have happended consistently in this thread, you ignore what you are told. You still have not confirmed whather the macro results are coreect so I will leave the thread until this is done.

+ Reply to Thread
Page 1 of 2 1

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: 05-01-2016, 04:41 AM
  2. Scan parts OUT to Sheet1, parts IN to Sheet2 and list in Sheet3
    By Nu2Java in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 12-12-2012, 11:40 AM
  3. Counting the parts order and dispatch in VBA
    By blueswan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-21-2012, 04:17 AM
  4. Parts Sorting
    By isisyodin in forum Excel General
    Replies: 3
    Last Post: 01-28-2012, 03:58 PM
  5. Counting an item once when it has several parts to it
    By sarahhllmn in forum Excel General
    Replies: 3
    Last Post: 01-26-2011, 02:49 PM
  6. Sorting parts of formulaic columns
    By jomili in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 11-09-2010, 05:51 PM
  7. [SOLVED] Finding the value from the list parts and insert extra part in the list
    By PRADEEPB270 in forum Excel General
    Replies: 3
    Last Post: 10-15-2010, 01:29 PM

Tags for this Thread

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