+ Reply to Thread
Results 1 to 8 of 8

Need help with sorting data...noob here!

  1. #1
    Registered User
    Join Date
    08-10-2018
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    49

    Need help with sorting data...noob here!

    Hi All,

    I have a sheet filled with data comprising all the products we have sold to our customers over the last few years. The sheet includes customer details, makes and models of kit, dates of sale, etc. I can filter data to show me for example what customers bought PRODUCT A from us without an issue but where I'm struggling is how to display a list of customers who bought PRODUCT A and PRODUCT B and then I'd like to know how to display a list of customers who bought PRODUCT A but not PRODUCT B.

    When the above lists are produced I want them to include all the columns in the original sheet as this has important details like model numbers, date of sale, etc. and not just the name of the customer.

    Can someone guide me through the principle of how to do this please?

    Many thanks in advance.
    Daz

  2. #2
    Forum Contributor
    Join Date
    12-07-2013
    Location
    Staten Island, New York
    MS-Off Ver
    Excel 2010
    Posts
    106

    Re: Need help with sorting data...noob here!

    How are you filtering? Are products A and B listed in the same or different columns?

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

    Re: Need help with sorting data...noob here!

    To best describe or illustrate your problem you would be better off attaching a dummy workbook. The workbook should contain the same structure and some dummy data of the same type as the type you have in your real workbook - so, if a cell contains numbers & letters in this format abc-123 then that should be reflected in the dummy workbook.

    To attach a file to your post,
    click advanced (next to quick post),
    scroll down until you see "manage file",
    click that and select "add files" (top right corner).
    click "select files" find your file, click "open" click "upload" click 'done" bottom right. click "submit reply"

    Once the upload is completed the file name will appear below the input boxes in this window.
    You can then close the window to return to the new post screen.
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  4. #4
    Registered User
    Join Date
    08-10-2018
    Location
    London, England
    MS-Off Ver
    Office 365
    Posts
    49

    Re: Need help with sorting data...noob here!

    I've attached a small sample set of data including the field names on the top row. Hope that helps!
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    12-07-2013
    Location
    Staten Island, New York
    MS-Off Ver
    Excel 2010
    Posts
    106

    Re: Need help with sorting data...noob here!

    I downloaded the workbook, but there are no listings for a product A or B. Do you mean Ruckus or Vigor? Are those the A and B?

  6. #6
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,548

    Re: Need help with sorting data...noob here!

    This isn't the most elegant of proposed solutions, but perhaps it will help.
    A helper table, which may be moved and/or hidden for aesthetic purposes, is produced using the following formulas
    SNAME: =IFERROR(IF(MATCH(0,INDEX(COUNTIF(V$1:V1,I$2:I$25),,),)>COUNTA(I$2:I$25),"",INDEX(I$2:I$25,MATCH(0,INDEX(COUNTIF(V$1:V1,I$2:I$25),,),))),"")
    Ruckus and Vigor: =IF($V2="","",COUNTIFS($I$2:$I$25,$V2,$D$2:$D$25,W$1))
    Ruckus Only: =IF($V2="","",AND(W2>0,X2=0))
    Vigor Only: =IF($V2="","",AND(W2=0,X2>0))
    Both: =IF(V2="","",AND(W2>0,X2>0))
    The original table is appended with three helper columns, which may be moved to other columns on the same sheet for aesthetic purposes also.
    The Ruckus, Vigor and Both columns are populated using: =INDEX(Y$1:Y$25,MATCH($I2,$V$1:$V$25,0))
    Use the filter drop downs in columns of the attached file to filter data.
    Let us know if you have any questions.
    Attached Files Attached Files
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  7. #7
    Registered User
    Join Date
    09-13-2017
    Location
    UK
    MS-Off Ver
    2016
    Posts
    3

    Re: Need help with sorting data...noob here!

    I have a similar issue. I am producing a database in MS Access - which I will subsequently export into Excel - listing works to be carried out to many different properties. What I am hoping to do is highlight all of the addresses that amongst their many work items have had two specific items carried out, e.g. some properties may get new windows, some may get new doors but I would like to filter out all of the properties who get both new doors AND new windows but excluding those who only get one or the other. I saw the example that you used above but unfortunately that would not be practical for me as I would be looking to filter on many different criteria and also sometimes three, four or more criteria and it would be very time consuming to keep setting it up for all the different criteria.

    Any help would be greatly appreciated, Thanks.

  8. #8
    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,719

    Re: Need help with sorting data...noob here!

    Administrative Note:

    Welcome to the forum.

    We are happy to help, however whilst you feel your request is similar to this thread, experience has shown that things soon get confusing when answers refer to particular cells/ranges/sheets which are unique to your post and not relevant to the original. Please start a new thread - See Forum rule #4

    If you are not familiar with how to start a new thread see the FAQ: How to start a new thread
    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.

+ 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. Need help to retrieve some data and sort. I am a noob!
    By askinner123 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-21-2015, 02:37 PM
  2. Data Noob
    By gdary in forum Hello..Introduce yourself
    Replies: 1
    Last Post: 07-07-2015, 11:15 AM
  3. Replies: 1
    Last Post: 04-10-2015, 04:38 PM
  4. [SOLVED] NOOB needs help with updating data from userform
    By peepaj in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-12-2014, 07:49 PM
  5. [SOLVED] VBA noob. Need help with reformatting compromised data
    By mea02300 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 06-26-2013, 04:09 PM
  6. Noob needs help w/ filling data
    By gdavis67 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-21-2013, 10:06 AM
  7. [SOLVED] How to paste data from one sheet onto another (noob question, I know, but plz help!!)
    By OliveMarie in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-23-2012, 11: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