Not sure how to title this - longer explanation and example table provided inside!
Results 1 to 9 of 9

Thread: Not sure how to title this - longer explanation and example table provided inside!

  1. #1
    Board Regular
    Join Date
    Jan 2013
    Posts
    61
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Not sure how to title this - longer explanation and example table provided inside!

    Trying to help a friend. A, B, C. etc. are names of software providers and ID numbers are assigned to customers. Friend has this data set and is trying to get a list of all the software providers that a given ID number has (not just a count). I tried copying the data and then saying if B2>=1, replace with A1 so that at least the names would be in there instead of a "1" and then Pivot off of it. But then that puts you in the position of having to add all the software provider names as column values in the Pivot (and there are more like 40-50 providers, not 6).

    He would like to see if a customer has Provider A AND Provider D (or E or F or...). Is that even possible?

    ID # A B C D E F
    10 1 1
    20 1 1 1
    30 1

  2. #2
    Board Regular sandy666's Avatar
    Join Date
    Oct 2015
    Posts
    2,667
    Post Thanks / Like
    Mentioned
    27 Post(s)
    Tagged
    1 Thread(s)

    Default Re: Not sure how to title this - longer explanation and example table provided inside!

    like this?

    ID Attribute
    10
    A
    C
    20
    B
    E
    F
    30
    D


    or post expected result
    I know you know but I forgot my Crystal Ball and don't know what you know



    In the first post, show the type of machine (PC / Mac) and the Office version you are working on
    impossible things we do on the spot. for miracles you need to wait for a while

  3. #3
    Board Regular
    Join Date
    Jan 2013
    Posts
    61
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Not sure how to title this - longer explanation and example table provided inside!

    Quote Originally Posted by sandy666 View Post
    like this?

    ID Attribute
    10
    A
    C
    20
    B
    E
    F
    30
    D


    or post expected result

    Yes, I think that would work! How did you do it?!

  4. #4
    Board Regular sandy666's Avatar
    Join Date
    Oct 2015
    Posts
    2,667
    Post Thanks / Like
    Mentioned
    27 Post(s)
    Tagged
    1 Thread(s)

    Cool Re: Not sure how to title this - longer explanation and example table provided inside!

    source
    ID A B C D E F
    10
    1
    1
    20
    1
    1
    1
    30
    1


    then PowerQuery:

    Code:
    // Table1
    let
        Source = Excel.CurrentWorkbook(){[Name="Table1"]}[Content],
        UnPivot = Table.UnpivotOtherColumns(Source, {"ID"}, "Attribute", "Value")
    in
        UnPivot
    QueryTable looks like this but this is in background:
    ID Attribute Value
    10
    A
    1
    10
    C
    1
    20
    B
    1
    20
    E
    1
    20
    F
    1
    30
    D
    1


    and on the end PivotTable from QueryTable

    Pivot
    ID Attribute
    10
    A
    C
    20
    B
    E
    F
    30
    D


    edit:
    don't quote whole post, please!
    Last edited by sandy666; Jun 12th, 2019 at 04:34 PM.
    I know you know but I forgot my Crystal Ball and don't know what you know



    In the first post, show the type of machine (PC / Mac) and the Office version you are working on
    impossible things we do on the spot. for miracles you need to wait for a while

  5. #5
    Board Regular
    Join Date
    Jan 2013
    Posts
    61
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Not sure how to title this - longer explanation and example table provided inside!

    Shoot, I don't think he has PowerQuery. Is there another way?

  6. #6
    Board Regular sandy666's Avatar
    Join Date
    Oct 2015
    Posts
    2,667
    Post Thanks / Like
    Mentioned
    27 Post(s)
    Tagged
    1 Thread(s)

    Default Re: Not sure how to title this - longer explanation and example table provided inside!

    Excel version?

    PowerQuery = Get&Transform

    I don't know another way, maybe someone else
    I know you know but I forgot my Crystal Ball and don't know what you know



    In the first post, show the type of machine (PC / Mac) and the Office version you are working on
    impossible things we do on the spot. for miracles you need to wait for a while

  7. #7
    Board Regular
    Join Date
    Jan 2013
    Posts
    61
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default Re: Not sure how to title this - longer explanation and example table provided inside!

    Quote Originally Posted by sandy666 View Post
    Excel version?

    PowerQuery = Get&Transform

    I don't know another way, maybe someone else
    Totally didn't connect those dots at first but yes, we were able to run it and it worked perfectly! Thanks so much!

  8. #8
    Board Regular sandy666's Avatar
    Join Date
    Oct 2015
    Posts
    2,667
    Post Thanks / Like
    Mentioned
    27 Post(s)
    Tagged
    1 Thread(s)

    Default Re: Not sure how to title this - longer explanation and example table provided inside!

    You are welcome
    Have a nice day

    hope you didn't load QueryTable into the sheet
    Last edited by sandy666; Jun 12th, 2019 at 05:45 PM.
    I know you know but I forgot my Crystal Ball and don't know what you know



    In the first post, show the type of machine (PC / Mac) and the Office version you are working on
    impossible things we do on the spot. for miracles you need to wait for a while

  9. #9
    MrExcel MVP
    Join Date
    Aug 2010
    Location
    Rio de Janeiro BRAZIL
    Posts
    16,239
    Post Thanks / Like
    Mentioned
    19 Post(s)
    Tagged
    8 Thread(s)

    Default Re: Not sure how to title this - longer explanation and example table provided inside!

    Maybe something like this

    1. Normalize data
    see
    https://www.youtube.com/watch?v=xmqTN0X-AgY

    2. Delete blank row
    F5 > Special > Blanks

    3. Create a pivot table like this

    ID
    Provider
    10
    A
    C
    20
    B
    E
    F
    30
    D


    Tabular format
    Subtotals --> none
    Grand Total row --> No

    M.

Some videos you may like

User Tag List

Tags for this Thread

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

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