+ Reply to Thread
Results 1 to 2 of 2

How to collect data from 2 colums

  1. #1
    Registered User
    Join Date
    06-22-2011
    Location
    Malaysia
    MS-Off Ver
    Excel 2003
    Posts
    1

    How to collect data from 2 colums

    I have a table with 2 colums "Name" & "Value". Each set of data have 5 Names "Data1", "Data2", "Data3", "Data4" & "Data5", each with different values. The sheet contains about 1000 set of data, each placed rowwise. The data sheet looks like this

    Data1 <text>
    Data2 <text>
    Data3 <text>
    Data4 <text>
    Data5 <value>
    ****
    Data1 <text>
    Data2 <text>
    Data3 <text>
    Data4 <text>
    Data5 <value>
    ****
    Data1 <text>
    Data2 <text>
    Data3 <text>
    Data4 <text>
    Data5 <value>
    ****
    etc...

    I want to create a new worksheet with data sorted like this

    Data1 Data2 Data3 Data4 Data5
    <text> <text> <text> <Text> <value>
    <text> <text> <text> <Text> <value>
    <text> <text> <text> <Text> <value>

    Can anybody give me a macro for this?

    Thanks in advance
    mathes

  2. #2
    Forum Expert Domski's Avatar
    Join Date
    12-14-2009
    Location
    A galaxy far, far away
    MS-Off Ver
    Darth Office 2010
    Posts
    3,950

    Re: How to collect data from 2 colums

    Should be easy enough, could you upload a sample workbook so we know the format of the initial data rather than from your post.

    Dom
    "May the fleas of a thousand camels infest the crotch of the person who screws up your day and may their arms be too short to scratch..."

    Use code tags when posting your VBA code: [code] Your code here [/code]

    Remember, saying thanks only takes a second or two. Click the little star to give some Rep if you think an answer deserves it.

+ 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