+ Reply to Thread
Results 1 to 13 of 13

Trying to filter sheet so it only shows the column codes against the Product Codes

  1. #1
    Registered User
    Join Date
    06-10-2022
    Location
    Wolverhampton
    MS-Off Ver
    2011
    Posts
    6

    Trying to filter sheet so it only shows the column codes against the Product Codes

    Trying to AUTOMATE sheet so it only shows the column codes against the Product Codes with values in and removes the blanks so I don't have to scroll across the screens to see which codes have a 1 in.

    I've attached an example for what I'm looking.

    Thank you in advance for your help

    Ade

    RAW DATA BELOW Column Codes
    Product Code Grand Total AA1 BB2 CC3 DD4 EE5 FF6 GG7 HH8 JJ9 KK10 LL11
    11111 3 1 1 1
    22222 2 1 1
    33333 4 1 1 1 1


    What I would like it to look like below
    Product Code Grand Total Column Codes
    11111 3 BB2 HH8 LL11
    22222 2 DD4 GG7
    33333 4 CC3 EE5 HH8 KK10
    Last edited by ADRIANJ1111; 06-10-2022 at 12:55 PM.

  2. #2
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,903

    Re: Trying to filter sheet so it only shows the column codes against the Product Codes

    Hi and welcome. Could you attach a sample workbook with a before and after view of your data?
    As you can see from your post above, the formatting somewhat lost and it's not clear what the requirement is.

    BSB

  3. #3
    Registered User
    Join Date
    06-10-2022
    Location
    Wolverhampton
    MS-Off Ver
    2011
    Posts
    6

    Re: Trying to filter sheet so it only shows the column codes against the Product Codes

    Thank you. Please find attached excel document
    Attached Files Attached Files

  4. #4
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    China Shanghai
    MS-Off Ver
    365 V2502 and WPS V2024(12.1.0.18543)
    Posts
    3,842

    Re: Trying to filter sheet so it only shows the column codes against the Product Codes

    Cell C10 formula , Drag down and across

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

  5. #5
    Registered User
    Join Date
    06-10-2022
    Location
    Wolverhampton
    MS-Off Ver
    2011
    Posts
    6

    Re: Trying to filter sheet so it only shows the column codes against the Product Codes

    Thank you very much, it's much appreciated

    What if the raw data was within another sheet? for example sheet2?

  6. #6
    Registered User
    Join Date
    06-10-2022
    Location
    Wolverhampton
    MS-Off Ver
    2011
    Posts
    6

    Re: Trying to filter sheet so it only shows the column codes against the Product Codes

    And also what is significant about COLUMN 15,6?? What it's purpose?

    Thanks

  7. #7
    Registered User
    Join Date
    06-10-2022
    Location
    Wolverhampton
    MS-Off Ver
    2011
    Posts
    6

    Re: Trying to filter sheet so it only shows the column codes against the Product Codes

    So I've tried your formula on my other data set and it hasn't worked. I have attached the spreadsheet again but if you go to sheet 2 you'll see my first data set and below it your worked solution you provided.

    I have looked at the formula code time and time again and they look exactly the same but it shows a 1 instead of letter a code. I'm assuming I 'm missing something pretty obvious but at this point I cannot see it.

    Thank you again

    AJ
    Attached Files Attached Files

  8. #8
    Valued Forum Contributor
    Join Date
    07-23-2013
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    988

    Re: Trying to filter sheet so it only shows the column codes against the Product Codes

    Try changing the $2:$2 to $1:$1 as your header row is in row 1 now instead of row 2 in your original data.

  9. #9
    Valued Forum Contributor
    Join Date
    07-23-2013
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    988

    Re: Trying to filter sheet so it only shows the column codes against the Product Codes

    IF you happen to have Excel 365 and your profile is out of date, then you could use this in C10 of your original sheet, copied down:

    =LET(x,FILTER($D$3:$N$5,$A$3:$A$5=A10),FILTER($D$2:$N$2,x=1))

  10. #10
    Registered User
    Join Date
    06-10-2022
    Location
    Wolverhampton
    MS-Off Ver
    2011
    Posts
    6

    Re: Trying to filter sheet so it only shows the column codes against the Product Codes

    Thank you Nick. Yep, as suspected I made an obvious mistake. Spotted it

    Thank you all.

    I am curious though if someone in simple terms can explain what the column 15,6 does?

    Thanks

    AJ

  11. #11
    Forum Expert BadlySpelledBuoy's Avatar
    Join Date
    06-14-2013
    Location
    East Sussex, UK
    MS-Off Ver
    365
    Posts
    7,903

    Re: Trying to filter sheet so it only shows the column codes against the Product Codes

    The 15 and 6 in the formula are nothing to do with COLUMN but are arguments of the AGGREGATE function.
    I think 15 = Small and 6 = Ignore Errors. Don't quote me on that though.

    Give it a try, in a blank cell type =AGGREGATE( then the intelisense will kick in and you can find those numbers in the list and it will show you what they're for.

    BSB

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

    Re: Trying to filter sheet so it only shows the column codes against the Product Codes

    paste code into module ,
    run RemapProdCodes

    Please Login or Register  to view this content.

  13. #13
    Forum Expert wk9128's Avatar
    Join Date
    08-15-2020
    Location
    China Shanghai
    MS-Off Ver
    365 V2502 and WPS V2024(12.1.0.18543)
    Posts
    3,842

    Re: Trying to filter sheet so it only shows the column codes against the Product Codes

    I'm sorry, I haven't been able to log in to any network since last night until half an hour ago, so I can't answer any questions. Currently, I use mobile phone DATA to log in, which is a waste of resources. I will be offline again soon.

    Thank you both (BadlySpelledBuoy's and nick.williams's ) for helping

    Come back again when it's repaired
    Last edited by wk9128; 06-13-2022 at 08:41 PM.

+ 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] Compare JSON data and splitting into corrected codes, deleted codes and added codes
    By chandramouliarun in forum Excel Programming / VBA / Macros
    Replies: 17
    Last Post: 12-01-2020, 06:46 AM
  2. [SOLVED] Compare JSON data and splitting into corrected codes, deleted codes and added codes
    By chandramouliarun in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 11-29-2020, 12:06 PM
  3. [SOLVED] Convert Y Codes from one column to another based on Unique Codes
    By ashishmehra2010 in forum Excel General
    Replies: 2
    Last Post: 10-06-2015, 09:49 PM
  4. Data from two sheets, same product codes, match into a new sheet
    By schroeders12 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-08-2014, 10:42 AM
  5. Formula to total the number of product codes in one column
    By foxtrot1961 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 08-17-2013, 11:16 AM
  6. Filter Zip Codes from a list codes
    By jaugent27 in forum Excel General
    Replies: 3
    Last Post: 06-11-2013, 02:01 PM
  7. Replies: 3
    Last Post: 08-01-2006, 08:15 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