+ Reply to Thread
Results 1 to 18 of 18

cleanse data and count the unique types of container sizes

  1. #1
    Registered User
    Join Date
    10-14-2013
    Location
    uk
    MS-Off Ver
    2016
    Posts
    87

    cleanse data and count the unique types of container sizes

    I need to count the unique types of container sizes on a sheet of data that is pasted in to a sheet called paste.
    Sheet 1 has the container types sizes I would like to count

    However there is little control over the pasted data and it needs cleansing before counting.
    Some are recorded as 8' x 6' instead of 8 X 6 so I will need to remove the apostrophes, some have small x instead of capital X.
    I don’t want strikethrough lines counted. Perhaps extracting and counting just the size types would be the way to start ?

    I have a sumproduct formulae counting the containers
    But am not convinced this is the best way to go.

    Any ideas please
    Attached Files Attached Files

  2. #2
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: cleanse data and count the unique types of container sizes

    something like this

    Please Login or Register  to view this content.
    Thanks,
    Mike

    If you are satisfied with the solution(s) provided, please mark your thread as Solved.
    Select Thread Tools-> Mark thread as Solved.

  3. #3
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: cleanse data and count the unique types of container sizes

    Or if you are only wanting to count Example 8 X 6 then something like this

    Please Login or Register  to view this content.

  4. #4
    Registered User
    Join Date
    10-14-2013
    Location
    uk
    MS-Off Ver
    2016
    Posts
    87

    Re: cleanse data and count the unique types of container sizes

    Hi Mike

    Getting compile error
    type declaration does not match declared data type?

  5. #5
    Forum Expert mike7952's Avatar
    Join Date
    12-17-2011
    Location
    Florida
    MS-Off Ver
    Excel 2007, Excel 2016
    Posts
    3,520

    Re: cleanse data and count the unique types of container sizes

    Your getting an error with the example file?

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: cleanse data and count the unique types of container sizes

    Try
    Please Login or Register  to view this content.

  7. #7
    Registered User
    Join Date
    10-14-2013
    Location
    uk
    MS-Off Ver
    2016
    Posts
    87

    Re: cleanse data and count the unique types of container sizes

    Thanks jindon
    Thats a good start
    can we trim it to just leave the sizes ?

  8. #8
    Registered User
    Join Date
    10-14-2013
    Location
    uk
    MS-Off Ver
    2016
    Posts
    87

    Re: cleanse data and count the unique types of container sizes

    yes Mike, with the example file.
    Getting compile error
    type declaration does not match declared data type?

  9. #9
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: cleanse data and count the unique types of container sizes

    Do you want it like this?
    Please Login or Register  to view this content.
    Edit: Array(r.Value... is now Array(temp...
    Last edited by jindon; 09-07-2016 at 08:43 AM.

  10. #10
    Registered User
    Join Date
    10-14-2013
    Location
    uk
    MS-Off Ver
    2016
    Posts
    87

    Re: cleanse data and count the unique types of container sizes

    wow, very good
    but the sizes would be good to start with
    so
    6 X 6 QTY 7
    7 x 6 QTY 4
    12 x 6 QTY 1 etc

  11. #11
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: cleanse data and count the unique types of container sizes

    Not really sure though..,
    Please Login or Register  to view this content.

  12. #12
    Registered User
    Join Date
    10-14-2013
    Location
    uk
    MS-Off Ver
    2016
    Posts
    87

    Re: cleanse data and count the unique types of container sizes

    Get a runtime error 9 at this line

    Please Login or Register  to view this content.

  13. #13
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: cleanse data and count the unique types of container sizes

    Are you talking about the same file?
    Attached Files Attached Files

  14. #14
    Registered User
    Join Date
    10-14-2013
    Location
    uk
    MS-Off Ver
    2016
    Posts
    87

    Re: cleanse data and count the unique types of container sizes

    Ok dont know what happened there

    The last one is getting there, but I basically want to drop all the text descriptions so I am left with just sizes

  15. #15
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: cleanse data and count the unique types of container sizes

    If this is not what you want, upload a workbook with your EXACT desired result.
    Please Login or Register  to view this content.

  16. #16
    Registered User
    Join Date
    10-14-2013
    Location
    uk
    MS-Off Ver
    2016
    Posts
    87

    Re: cleanse data and count the unique types of container sizes

    Hi Jindon
    I have attached a file with desired outcome.
    Attached Files Attached Files

  17. #17
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: cleanse data and count the unique types of container sizes

    This should do.
    Please Login or Register  to view this content.

  18. #18
    Registered User
    Join Date
    10-14-2013
    Location
    uk
    MS-Off Ver
    2016
    Posts
    87

    Re: cleanse data and count the unique types of container sizes

    Spot on jindon , many thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. [SOLVED] VBA to cleanse data based on the parent name
    By The_Snook in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-21-2016, 03:38 AM
  2. A macro that types in =SUM() formulae within variably-sizes ranges
    By maccountantuk in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 04-12-2016, 05:40 PM
  3. VBA to cleanse a data extract
    By The_Snook in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-30-2015, 08:21 AM
  4. Replies: 9
    Last Post: 01-02-2015, 09:07 AM
  5. Need forumla to sum number of unique values in groups of different sizes
    By ea2146 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 05-30-2013, 02:33 PM
  6. Replies: 0
    Last Post: 03-22-2012, 08:44 PM
  7. How do I count shirt sizes and give a total of each?
    By dc112675 in forum Excel General
    Replies: 6
    Last Post: 06-23-2009, 12:41 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1