+ Reply to Thread
Results 1 to 6 of 6

Creating List of Values that Appear in Multiple Columns

  1. #1
    Registered User
    Join Date
    02-20-2013
    Location
    Los Angeles, California
    MS-Off Ver
    Excel 2010
    Posts
    43

    Creating List of Values that Appear in Multiple Columns

    I have 5 years of data on who has bought tickets for our annual raffle in columns by year. I am trying to determine to what degree the same people buy every year. To do so, I want to create the below unique lists. Each list should exclude anyone in the list above it and therefore divide all purchasers in the last 5 years into one of these categories.

    Purchased Tickets Every Year
    Purchased Tickets Past 4 Years
    Purchased Tickets 4 of 5 Years
    Purchased Tickets Past 3 Years
    Purchased Tickets 3 of 5 Years
    Purchased Tickets Past 2 Years
    Purchased Tickets 2 of 5 Years
    Purchased Tickets Last Year Only
    Purchased Tickets Once

    I have been using the below formula to pull all unique values from multiple lists and was trying to adapt it for this, but have not succeeded and am running out of time before my meeting with the head of the raffle committee.

    =IFERROR(IFERROR(IFERROR(IFERROR(IFERROR(INDEX(FY08.09,MATCH(0,COUNTIF(K$1:$T1,FY08.09),0)),INDEX(FY09.10,MATCH(0,COUNTIF(K$1:$T1,FY09.10),0))),INDEX(FY10.11,MATCH(0,COUNTIF(K$1:$T1,FY10.11),0))),INDEX(FY11.12,MATCH(0,COUNTIF(K$1:$T1,FY11.12),0))),INDEX(FY12.13,MATCH(0,COUNTIF(K$1:$T1,FY12.13),0))),"-")

    Attached is the spreadsheet with names redacted to 4 letters. Any ideas would be much appreciated.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Creating List of Values that Appear in Multiple Columns

    Hi being in such a rush I would not use anything as complicated as that.

    I'd create a unique list of all your customers.

    then I would create a table of ones and zeros or maybe As and Bs would be simpler B meaning bought.

    concatenate the table into one cell per customer [ Easier with A and B].

    Then you can sort by your concatenated cells.

    I see you have a unique list already so I'll start from there.

    BRB
    Last edited by mehmetcik; 11-21-2013 at 08:03 PM.

  3. #3
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Creating List of Values that Appear in Multiple Columns

    Ok I filled in your columns for you.

    Enjoy.
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    02-20-2013
    Location
    Los Angeles, California
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: Creating List of Values that Appear in Multiple Columns

    Thanks. It didn't really work, but I used the base concept of pulling the annual bought/didn't buy data (Y/N was wasier on my brain than A/B) into the full list of purchasers and some fairly simple conditionals to get the list of who bought in the various buying pattern categories as attached.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    05-29-2009
    Location
    Kalgoorlie Australia
    MS-Off Ver
    Excel 2007/10
    Posts
    251

    Re: Creating List of Values that Appear in Multiple Columns

    Is this more like what you are after?
    Peter
    Attached Files Attached Files

  6. #6
    Forum Expert
    Join Date
    12-14-2012
    Location
    London England
    MS-Off Ver
    MS 365 Office Suite.
    Posts
    8,448

    Re: Creating List of Values that Appear in Multiple Columns

    Hi

    I'm glad you found a solution.

    I am not convinced that some of your results are correct though.

    When you check if the purchaser bought tickets in the last two years you check for NNNYY.

    This is correct for people who only bought in the last two years, But what about YNNYY, NYNYY, NNYYY, YYNYY, NYYYY?

    All these options are valid. the easiest way to test for them all is to test the last two characters for YY.

+ 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. Replies: 8
    Last Post: 10-29-2014, 06:17 AM
  2. Replies: 2
    Last Post: 10-25-2013, 07:01 PM
  3. [SOLVED] VBA for creating dropdown list from dynamic multiple values lookup
    By costin in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 04-29-2013, 05:39 PM
  4. Replies: 1
    Last Post: 07-28-2012, 08:03 AM
  5. Match multiple columns with different values to make a master list of both
    By Niper in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 11-10-2011, 07:40 AM

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