+ Reply to Thread
Results 1 to 7 of 7

Pivoting Text

  1. #1
    Registered User
    Join Date
    01-21-2009
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    34

    Pivoting Text

    Afternoon All,

    I am trying to create a pivot table but the I need it to return the value of the cell rather than a sum or count.

    I have attached a file demonstrating what I need... I am stuck!!

    Thanks
    Attached Files Attached Files

  2. #2
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Pivoting Text

    A PT can't populate the DATA field with Text unfortunately.

    Is the relationship of Part No to Xref 1:1 as your example implies or in reality are you looking to concatenate multiple records... ie there may be multiple "Competitor Nos" per Part No. / Xref combination ?

    If not you can use an INDEX/MATCH approach but the 1:1 is of critical importance.

  3. #3
    Registered User
    Join Date
    01-21-2009
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: Pivoting Text

    No, there maybe multiple competitor numbers against any part number

  4. #4
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Pivoting Text

    In that case I'm afraid you will want/need to utilise a UDF (VBA) -- is that feasible in your environment... ?

    The only alternative I can think of would be to create a key which concatenates strings for you...eg:

    Please Login or Register  to view this content.
    Thus the last record for any combination contains a string of Competitor Nos.

    Then the matrix:

    Please Login or Register  to view this content.
    However aesthetically this may not be ideal and pending length of final string in D it may fail (if string length exceeds 255 chars)

  5. #5
    Registered User
    Join Date
    01-21-2009
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: Pivoting Text

    I can use basic VBA but wouldn't know where to start with this...

  6. #6
    Registered User
    Join Date
    01-21-2009
    Location
    England
    MS-Off Ver
    Excel 2003
    Posts
    34

    Re: Pivoting Text

    I have just checked the data and in reality there can be more than one competitor to any part number but this should not heppen so an INDEX / MATCH formula should work.

    Can you help with this?

  7. #7
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Pivoting Text

    I would advise you adopt the formula approach outlined earlier... see attached (Others may differ mind... ... they normally do!)

    IMO if the *real* ranges are vast VBA would be best but you should always adopt that which you are most comfortable with given you must maintain it.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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