+ Reply to Thread
Results 1 to 15 of 15

Changing three columns of data in to a table in Excel 2007

  1. #1
    Registered User
    Join Date
    06-20-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    8

    Changing three columns of data in to a table in Excel 2007

    Hi have basically have a very large spreadsheet that looks something like this:
    Number Type Data
    A b c
    B s x
    C r c
    D f x

    and i wanted to make it with the number for the rows, the type for the columns, and the data populating the spreadsheet. I could sort of get it to work using a pivot table but it would not show the actual data in the sheet just sum or count or whatever. Is it possible to do this?

    Thanks
    Last edited by Xman304; 06-21-2012 at 08:00 AM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Changing three columns of data in to a table in Excel 2007

    So for a given "Number" and a given "Type" would there be more than 1 match?

    Down column A, you'd have a unique set of numbers and across row 1, you'd have a unique set of types?
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Changing three columns of data in to a table in Excel 2007

    Do you mean something like this?
    Attached Files Attached Files

  4. #4
    Registered User
    Join Date
    06-20-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Changing three columns of data in to a table in Excel 2007

    not really, there will be multiple entries down column A that are the same, with a unique set of numbers across row one, then the data that populates the rest of the sheet will be in cells that match up accordingly. Hope that makes sense.

  5. #5
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Changing three columns of data in to a table in Excel 2007

    Then maybe the way ChemistB suggested.

    Otherwise

    You get better help if you post an Excel-example of your workbook, without confidential information.

  6. #6
    Registered User
    Join Date
    06-20-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Changing three columns of data in to a table in Excel 2007

    Basically I have a huge sheet of Well Information. in column 1 I have the well number, in column 2 I have the formation, and column three I have codes entered by a user. Column one will contain like 5 entries for the same well number, while column two will contain differing information for that well eg formationA, formationB, then a code in the third column. Kinda Like this

    Well A FormX Code1
    Well A FormY Code2
    Well A FormZ Code3
    Well B FormX Code4
    Well B FormZ Code5

    And I want something like this
    WELL FormX FormY FormZ

    Well A Code1
    Well A Code2
    Well A Code3
    Well B Code4
    Well B Code5

  7. #7
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Changing three columns of data in to a table in Excel 2007

    You get better help if you post an Excel-example of your workbook, without confidential information.

  8. #8
    Registered User
    Join Date
    06-20-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Changing three columns of data in to a table in Excel 2007

    Sample Book1.xlsx

    Hope that worked

  9. #9
    Forum Expert
    Join Date
    05-30-2012
    Location
    The Netherlands
    MS-Off Ver
    Office 365
    Posts
    14,987

    Re: Changing three columns of data in to a table in Excel 2007

    Different lay out.

    With pivot table.

    I think it will be possible with VBA.

    Especialy now your mentioned you get a very large spreadsheet.

    But i can't help you enoug with VBA.
    Attached Files Attached Files

  10. #10
    Registered User
    Join Date
    06-20-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Changing three columns of data in to a table in Excel 2007

    Thanks Oeklere, I can get basically what I am looking for using a pivot table, but I want it to show the actual data in the sheet instead of a count, or a sum etc. I have tried a work around I found using Access, but the sheet is to large to copy out of Access.

  11. #11
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Changing three columns of data in to a table in Excel 2007

    Maybe. See my attachment.
    I used an Array formula (entered with CNTRL SHFT ENTER instead of just ENTER which, if done right will show brackets {} around the formula)

    =IFERROR(INDEX($C$2:$C$6,MATCH($A13&B$11,$A$2:$A$6&$B$2:$B$6,0)),"")

    This does not separate them into different rows though (see attachment). If you really need it like that, (rather than what I put into A20:D23) maybe someone can modify.
    Attached Files Attached Files

  12. #12
    Registered User
    Join Date
    06-20-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Changing three columns of data in to a table in Excel 2007

    That will work, now I just have to figure out how to get that formula modified too fit my sheet. I have 192595 rows, and columns thru EH when I make the pivot table.

  13. #13
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Re: Changing three columns of data in to a table in Excel 2007

    Copy column A somewhere else and then select it in the new location and Data Tab>Remove Duplicates.
    Do the same with column B, then copy and paste special > Transpose to get your unique types across the top.
    Then figure out how to get that formula to work with those ranges.

  14. #14
    Registered User
    Join Date
    06-20-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Changing three columns of data in to a table in Excel 2007

    Thanks, I will give it a shot!

  15. #15
    Registered User
    Join Date
    06-20-2012
    Location
    USA
    MS-Off Ver
    Excel 2007
    Posts
    8

    Re: Changing three columns of data in to a table in Excel 2007

    Thanks so much it worked, I had to remove a $ one place you had it, and add another in another location to get it to work the way I needed it to.

+ 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