Transpose Data & Reduce Repeats By Use Of Headings

Jul 1, 2008

i have a unique transposing situation and i need a script to transpose my data. i haven't encountered anything like this yet so i wonder if its possible

my data is currently in this format:

Object1, Property1, Value
Object1, Property2, Value
Object2, Property1, Value
Object2, Property2, Value

i'd like to transpose it to:

........... Property1 Property2
Object1 Value Value
Object2 Value Value

View 9 Replies


ADVERTISEMENT

Transpose Multiple Columns Into Rows Based On Repeats

Jul 9, 2009

I need to transpose a three column worksheet with thousands of rows containing repeats based on the value in Column A (between 2 and 11 consecutive repeats), into rows with no repeats, and the values from the repeated rows into new columns. Column A has a unique numeric value corresponding to the repeated rows. Column B has 1 of 11 values and Column C has 1 of 4 values.

The worksheet looks like this:

1 abc x
1 def y
2 ghi x
2 abc n
2 lmn x
2 def z
2 jkl y

I need to make it look like this:

1 abc x def y
2 ghi x abc n lmn x def z jkl y

I tried using the following code, but it dropped all the values from column C:

Sub kTest()
Dim a, i As Long, w(), k(), n As Long
Dim dic As Object, ws As Worksheet, s As String

Set dic = CreateObject("scripting.dictionary")
dic.comparemode = vbTextCompare
With Sheets("sheet1")
a = . Range("a2:b" & .Range("a" & Rows.Count).End(xlUp).Row)
End With

I am attaching a workbook " Book 1" that has the results from the above macro in the first worksheet "Final Report", the origninal data "orig data", and the format I need to get the data into "needed data".

View 5 Replies View Related

Re-arrange Table & Transpose Headings

Feb 26, 2008

I have a question regarding Excel 2003.

I have to complete a task using Excel. Normally I would complete the task using a database, but this one needs to be complete using Excel (for others to use afterwards)

I have a flat semicolon delimited text file which holds x amount of lines OR I can get the data using an ODBC connection (directly from the DB)
Each line starts with a date, a name, a second name, and a price.
See: 1.input.jpg

200080221;AAA123;excel;0.34765
200080221;BBB123;access;0.16278
200080221;CCC123;powerpoint;0.35894

What I would like is the date on the horizontal row and name and second name as headline, and the price as the data.
See: 3.result.jpg

How can I solve this using Excel?

View 5 Replies View Related

Transpose Multi-Column Groups/Repeats Based On 1 Column

Mar 19, 2009

I have a sheet with 3,000 rows and only two columns. Column "A" consists of 20 to 30 different names, column "B" consists of 50 to 60 different products. I need to be able to evalute the value in column A and copy, paste special transpose all values in Column B that have the same value in column A. As an example if cells A1 through A5 is "Arizona" and cell B1 is Broccoli, B2 is Cauliflower, B3 is Apples, B4 is Oranges, and B5 is Bananas, I want to copy B1 through B5 and paste special transpose to cell C1.

This then would need to loop all the way to the bottom of the data in Column A looking for a change in value. The attached file called Sample Data has two tabs. The one titled "report" shows the raw data, the one titled "Final" shows how I would like the results to appear (column L)

View 6 Replies View Related

Reduce Row Range In Existing Worksheet To Reduce File Size

Dec 17, 2013

I have a problem where I extended a formula down to over 40,000 records which has increased the file size substantially. I only need it to scroll down to a few thousand rows now that I realized that there is alot less data to populate the worksheet. Is there any way to get it back to a scroll range that is more modest in size?

View 1 Replies View Related

Copying Data Without Repeats?

Feb 10, 2014

I have two sheets for club membership, one for recording payments another for the members list. Each membership is valid for a year, they either become a member or renew. I have for example:

Payments
Aaron Adams Member
Barry Burns Renewed
Charlie Clegg Renewed

Membership
Barry Burns Renewed
Charlie Clegg Renewed

I want it to copy the new member to the membership sheet but not any existing members.

View 3 Replies View Related

Add Quantities If Data Repeats?

Jul 15, 2014

example attached: If data repeats in column A, then add those corresponding values in column B. Can this be done without VBA?

View 5 Replies View Related

Identify Repeats Of Data

Dec 29, 2006

I have four columns of numbers that range between 1 through 44 and span 100 rows. Each row shows a unique combination as shown below:

Row 1 - 07 18 11 09
Row 2 - 03 29 08 05
Row 3 - 01 20 11 44
Row 4 - 09 17 14 24
Row 5 - 18 11 20 26
etc...

Can anyone give me some tips on creating a VBA script that will scan a hundred rows of the data shown above and identify for me the rows where number pairs and number triples repeat? For example the data above shows that the pairs "18 , 11" repeat on Row 5 and Row 1. Can EXCEL perform such a task with the right VBA script or forumula? Is a VBA script necessary or will using an ARRAY be the correct way?

View 5 Replies View Related

Sorting Data With Blanks Instead Of Repeats

Feb 15, 2010

I have a sheet with 12k plus lines of data... Attached is a sample.

I am trying to sort by any one of the column headings, without losing the order of the ADDRESS field.. Sometimes there are 2 lines, sometimes there are 3 lines of ADDRESS... Also, the first column, "DBA" has 2 lines sometimes 3 lines per entry... When I try to sort, it tells me I have to unmerge the cells.. but then when i sort, it alphebetizes everything seperatley so the addresses get splut up...

View 4 Replies View Related

Re-Post - Data Repeats In Pivot Table

Jun 21, 2008

I don't believe my earlier post was a duplicat thread. I posted the original thread, then posted a LINK to the original thread. I didn't even ask the question in the link, so there was no way someone would have wasted time answering the question from there. I didn't think I was breaching protocal. Anyway, since both instances of the thread were closed, here is the re-post.

I've recently been trying to learn a little about pivot tables. In the example attached, I have 2 worksheets. One holds raw data collected from suppliers, the other holds a default pivot table created from that data.

View 13 Replies View Related

Filter If Data Value In Column Repeats Or Duplicate

Jul 30, 2012

I have row of data from cell A2:E2 to A5000:G5000

in Column B I have customer account number, and they should not repeat but some reason some customers repeat more than once,

so out all column A B C D E if there if customer repeats only thing can be same is customer account number
so for example below, account number 12 repeats so I want to only few all account number 12 so I can compare both row and delete the only i need to delete and go back to original

DATE
ACCOUNT#
FIRST_IN
LAST_IN
SOMEVALUE

1/22/2012
12
A
B
2321

[code].....

View 4 Replies View Related

Reduce 1 Minute Data To 30 Minutes Data In Excel

Feb 27, 2013

I have a spreadsheet that contains per minute data for the whole year. There are no gaps in data and it is complete with various values being zero. I cannot work out how to reduce the data into 30 minutes interval. I have tried to use Pivot Tables and grouping functions but it can give me daily data or hourly data but not per 30 minutes or 15 minutes of data.

What step I can follow to reduce the per minute data to 15 minute or 30 minute data.

Format of excel sheet is as below:

Date------ Time------ GSR
27/07/2010--0:00:00--1
27/07/2010--0:01:00--2
27/07/2010--0:02:00--0
27/07/2010--0:03:00--0
27/07/2010--0:04:00--1
27/07/2010--0:05:00--1
27/07/2010--0:06:00--1.5
27/07/2010--0:07:00--0
27/07/2010--0:08:00--0
27/07/2010--0:09:00--2

View 7 Replies View Related

Macro To Reduce Lengthy Financial Data...?

Jul 5, 2006

I'm researching a load of financial data downloaded for me from Bloomberg. It lists daily prices of 15 commodities for nearly 20 years in some cases! Its far too much data to get anything worthwhile out of, so I'd like to know if any of you guys have used or know what the VBA is to write a macro that will reduce all the data from daily to monthly. (ie. I want a macro that will allow me to quickly delete all data corresponding to dates which are NOT the end of the month).

View 5 Replies View Related

Copy Data Less Headings

Jul 18, 2007

how do i go about coding a macro so that it can look at a column,lets say column F in this case, on a worksheet and figure out how many rows contain data, select all rows BUT the header row (row 1 in this case), select them for copy, and paste them to another spreadsheet in the xls file starting from row 2, pasting values only.

the way i would LIKE to do this function is to take column 1, determine its length, or how many rows contain data and where the first empty row kicks in, anchor that into a variable and use that variable to set the copy paste function for the remaining columns i run the function on. why do i need this done? i'm makign a macro that can automatically build reports for me from raw data dumpted from the system.... and later columns in the spreadsheet have empty cells, so i want the function to process at a fixed length with all cells using column one as a guide for the copy/paste function

View 4 Replies View Related

3 Worksheets Same Headings Consolidating Data?

Aug 5, 2014

Having trouble consolidating 3 worksheets into one worksheet, on these 3 worksheets they all have the same headings which go from A-R. I simply need to be able to run a formula or use some sort of method to incorporate all 3 lists into 1 master list. The only way i currently can do this is to create a vba script which simply copies say 500 rows from the first worksheet paste onto master spreadsheet then copy 500 rows in second worksheet and find next blank row and paste etc.

Is that the best way to do this or is there a better way?

View 1 Replies View Related

Copy Data From One File To Another With Different No Of Headings

Oct 31, 2008

My simple copy and paste macro copies data but while pasting it pastes data starting in cell A1 rather than A5. Code is as below. I thought of copying cell by cell but the problem is that this is only a very small part of code. Below code copies column C in source file and pastes into column A of destination file.

I would be doing about 50 of these columns transfers between two files and thought that copying cell by cell would take ages to run.

1) Can someone please help me resolving the above problem i.e pasting data in cell A5 rather than A1.

2) Secondly how can i add an OR to the autofilter criteria? for example below code filters based on criteria "CS"? what do i need to do to filter based on "CS" or "AS".

View 5 Replies View Related

Lookup Headings Based On Data

Nov 29, 2006

Assuming I have a table such as:

APPLE BEANS CELERY DOUGH
Will 5 10 15 2

Joe 1 3 7 11

Ben 9 6 4 8


What formula can I use to return a result like Celery by looking up Ben and 4 for example.

In other words, how do I lookup the heading of the column based on the the first column and a data point on the same row.

View 4 Replies View Related

Compare 2 Sheets. Data With Headings

Jan 25, 2008

i have 2 excel sheets and have to compare and search for a combination of cells then highlight color in sheet1

to be more specific
i have data in sheet1 were i need to look for the first 3 fields of sheets1 with the 3 fields of sheet2 and if found look for the value in cell of sheet2 with the column headers of sheet1
and color the cell which is immdetialy below the column header found

for example :
i have 3 fields like in sheet1

country area code name1 name2 name3 name4
US ny 1 sam dirk ste hita
us va 2 jun mic atr star

and i have 3 fields in sheet2

country area code origin
us ny 1 name2

so it shuld walk thru each cell and check for the adjacent cell in sheet1 and highlight color for dirk

View 6 Replies View Related

Duplicate Headings Down Each Data Group

Mar 26, 2008

I am trying to copy/paste header data into corresponding rows. A1 and A2 have the header information and need to be placed in the corresponding rows under columns A and B. I have been doing this manually and it is very time consuming since there are roughly 2000 rows. I believe a macro can accomplish this task but unsure how to create it. I was also unable to find any similar threads. I have attached a sample workbook. The original tab has the imported information and the Finished tab has what I would like the data to look like.

View 3 Replies View Related

Return Column Headings Where Data Is Present In Row

May 28, 2008

Is there a way I can return a column heading(s) if text is present in a row?

Refer the attachment... ozgrid.xls

Names are listed down the left, headings along the top, with data in the corresponding cells. For each unique name i.e 'Steven' is there a way to list each heading data is found i.e 'Shop2, Shop4'???

View 5 Replies View Related

Macro To Add Column And Copy Over Some Data Headings

May 13, 2013

Simple macro formula. I want to have my function to insert a column and copy over some data headings here is what I have...

Sub Macro17()
'
' Macro17 Macro
'
'
Selection.End(xlToLeft).Select
range("D5").Select

[Code] .........

The issue I am having is that is it inserts the column AA (end of the original data) and I want it to insert at the end of all the data. For example if I run the macro once it posts in column AA, I want the next result to post in AB but it posts in AA.

View 6 Replies View Related

Sorting Rows Of Data Into Columns With Headings

Aug 30, 2013

I have hundreds of rows of data which I need to sort into headings in a new tab.

E.g Column D has about 40 names which occur many times. Column G has 4 digit numbers which are unique.

I want to create in a new tab a column for each of these 40 names, using that name as the heading and then list the 4 digit numbers unders that heading. So if the name name "John" appears 20 times in Column D, it will get a heading in the new sheet and there will be 20 unique numbers listed below it from the data in Column G.

View 3 Replies View Related

Return Column Headings Where Data Is Present In Row

May 28, 2008

is there a way I can return a column heading(s) if text is present in a row?

refer the attachment...

names are listed down the left, headings along the top, with data in the corresponding cells. For each unique name i.e 'Steven' is there a way to list each heading data is found i.e 'Shop2, Shop4'?

View 4 Replies View Related

Copy AutoFiltered Data, Less Headings, To Another Worksheet

Jun 3, 2008

I want to filter the data and next. I want to copy the data from sheet1 to sheet2;
below code working fine, but.

Sub CopyFilter()
Dim rng As Range
Dim rng2 As Range
With ActiveSheet.AutoFilter.Range
On Error Resume Next
Set rng2 = .Offset(1, 0).Resize(.Rows.Count - 1, 1) _
.SpecialCells(xlCellTypeVisible)
On Error Goto 0
End With
If rng2 Is Nothing Then
MsgBox "No data to copy"
Else.............................

View 2 Replies View Related

Transfer Data From One Worksheet To The Next By Matching Column Headings

Feb 25, 2012

I have a few row headings on a fresh worksheet (called "New" like so for A1, B1 and C1 for example):

Date Amount Title

I then have raw data on another worksheet. This data has many column headings (more than on the "New" sheet) and the data for that heading in the column underneath heading. So the Date column will have say 50 rows of dates in the column. What I want to do in VBA is match the headings from the "New" worksheet to the raw data worksheet ("Data") and then copy and paste the data into the column under the row heading in "New" from "Data".

with the code for this? I have tried using MATCH and I can't get it to work. I'm also looking for an efficient way to do this I'm sure I am doing it a very inefficient way.

View 4 Replies View Related

Match Column Headings - Copy And Paste Data

Jan 23, 2014

I have a workbook with 2 worksheets, Sheet1 and Sheet2 have the same column headings in Row 1 but they are not in the same positions.

What I need to do is read the column header in Sheet2 Column A (Cell A1) and copy the data from A2 to last row and paste it in Sheet1 in the first empty cell under the same column heading, which may be the Column D position instead of Column A like in Sheet2.

It needs to loop through all the columns in Sheet2, copying the relevant data to under the correct header in Sheet1.

View 2 Replies View Related

Can Add Spare Row Between Column Headings And Data In Filtered Table

May 2, 2014

I have a table of data with column headings. I'd like to be able to filter the table based on the column headings, however I have a 'spare row' between the column headings and the data which I use to add new entries to the table using a macro (the macro copies the row and pastes it in one of the empty rows at the bottom of the table, then sorts the data which places it with the rest of the data).

The problem is, Excel won't let me apply a filter to the table if the column headings are separated from the data that I would like filtered.

View 8 Replies View Related

Macro That Will Copy Data Based On The Column Headings

Apr 8, 2009

i need a macro that will copy data based on the column headings, i have two worksheets, the first worksheet is the raw data and second worksheet will be the results sheet, the issue is the headings i have in raw data is different to the headings i have in the results sheet and the heading will not always be in same column in the results sheet, so for example in Raw data i have heading Quantity and in destination sheet i have heading Units, so the macro should copy the data for quantity in sheet raw data and paste to sheet "Results' under heading "Units". The header row on both sheets is row 3. I do have more headers but if I know how to do one then i can apply the same method for the others.

Sheer raw data

Quantity 820,655.00 177,015.00 6,652,041.00 1,517,267.00

Sheet results

Units 820,655.00 177,015.00 6,652,041.00 1,517,267.00

View 9 Replies View Related

Transfer A Matching Column Headings' Data In 2 Worksheets To 1

Sep 18, 2006

1) I have a Master worksheet that combines/appends data from 5 worksheets. The data in the 5 worksheets is cleared on a daily basis once data has been transferred (using a macro) to the Maser sheet.

2) I use the Match and Index formula for the 5 sheets. Column A "Symbol" being the primary value

Problem:

I have Matching column headings " Date" in 2 worksheets, I can only use date data from one of the sheets that contain the date column data. Here is the formula I use in the master to accept data from the worksheet

=If(Sheet1!C2=0,"",Sheet1!C2)

Sheet1 has the column heading "Date" that is linked to Master Worksheet column Heading "Date". Is there a possible way to re-write the formula where It can accept data from either sheets instead of only 1 sheet?

Going back to the fact that I have 2 date columns in 2 worksheets
Lets say for example;

I have Symbol AAA in Sheet1
I have Symbol ZZZ in Sheet2
I have Symbol GGG in both sheets......................

View 3 Replies View Related

Copy Worksheet Data For Matching Headings On Another Sheet

May 21, 2008

I have some specific requirement and it would be great if I could do it through macro. Also attached a sample excel file for the requirement. I have raw data in a worksheet (WS1) that I receive daily from factory. There is another sheet in a different workbook (WS2) that has format specified on how to display this raw data. The order of raw data on WS1 remains same. The question is that how do I replace the format titles with raw data?

For example, in the attached excel sheet, sheet "data" has list of values. Sheet "format" says how to display data. Sheet "output" is output that I finally want to generate. The sheet "data" will always have data in the same order. I need to read values and replace the format title ( name, age etc) with corresponding values on "data" sheet.

View 5 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved