Convert A List Of Data

Jul 6, 2009

I have a list of data i would like to convert to a different format using a macro.
The conversion involves Sort the data. Delete rows when criteria is met. Insert blank rows when criteria is met. Insert formulas into cells. I have attached a sample workbook.

View 2 Replies


ADVERTISEMENT

Dropdown List - Automatic Data Convert

Feb 20, 2007

i am working on a long drop-down list which consists of a series of numbers, such as 1,2,3.... When users select 2 from the drop down list, the cell value will be automatically converted to the value "movie" that "2" is corresponding to.

The list behind the drop-down list is like this:

column A column B
1 music
2 movies
3 books
4 games
5 travel

View 9 Replies View Related

Excel 2010 :: Convert Matrix Data To A List?

Oct 16, 2013

I have been using Excel to record the routine daily issue of items to different groups in a matrix layout, I use a different workbook for each month with worksheets for each group. The matrix takes the form of the item issued being the left hand column and the date issued the top row of the matrix, the quantity issued is recorded at the intersection. Each item can have a different quantity issued on different days. I'm using Excel 2011 for Mac but could use PC Excel 2010. Is there a way to convert the data held in this way to a list? What I'd like to achieve is a list showing the Item, the Quantities Issued and the the Issue dates

View 9 Replies View Related

Convert Data Into A List Format By Copying And Pasting

Jun 6, 2006

I have a consolidation workbook and source files.I would like to convert the data from the source files into a list format in the consolidation workbook.

I have attached a sample of the sheet format of the source files in the attached file, called 'Page 5'. The other 2 sheets are 'Template' and 'Instructions'. The 'Template' sheet is what I imagined would be the list format of the data copied from the 'Page 5' sheet. Instructions is where the lookup table for currency is.

So basically starting from row 8 in 'Template' sheet, I would like to copy and paste from 'Page 5' sheet to 'Template' sheet:
- H2 to A8 & B8
- B2 to C8
- According to the list of currency in 'Instructions' sheet, lookup the currency according to operating unit in C8 and paste to D8
- D5-I5 to E8
- row A8-A23 to column F-N

I actually have had a similar problem before, which Derk has helped me here - link: Use Access or XL? (I've decided to start a new thread because this is a more relevant forum).

I have tried to modify the code but I am rather lost as to which part I am supposed to modify.. Note that in this code, the source data is in separate file instead.

Sub add()

Dim wb As Workbook, f As Worksheet, t As Worksheet, j As Integer, k As Integer, n As Integer
Dim mty As String, yr As Integer, d As Date, bu As String, cur As String, sTodo As Variant

sTodo = Array("Page 5") 'finish adding the names
Application. ScreenUpdating = False
Set t = Workbooks("Example1.xls").Worksheets("Template")
i = t.Cells(65536, 2).End(xlUp).Row

View 9 Replies View Related

Convert Horizontal Data Into Cumulative (one-column) Vertical List

Feb 15, 2012

I have data (400 rows) that looks like this: (23 columns in total): (for this example I am using only 4 rows and 7 columns = 28 rows)

IN_0168 IN_0164 MH_0007 IN_0172 WCD3_03 WCD3_04 #N/A
IN_0176 IN_0172 WCD3_03 WCD3_04 #N/A #N/A #N/A
IN_0185 MH_0006 IN_0164 MH_0007 IN_0172 WCD3_03 WCD3_04
IN_0191 IN_0193 IN_0195 IN_0199 WAT10 #N/A #N/A

and I want it to look like this:

IN_0168
IN_0164
MH_0007
IN_0172
WCD3_03
WCD3_04
#N/A
IN_0176
IN_0172
WCD3_03

[code]....

This is what I was trying to do:

For m = 2 To 5
For n = 1 To 23
For b = 2 To 100
Sheets("Hierarchy").Select
Cells(m, n).Select
Selection.Copy
Sheets("HierN_H2V").Select
Cells(b, 1).Select

[code]....

View 2 Replies View Related

How To Convert A List Into List Of Consecutive Numbers

May 15, 2013

Let me see if I can explain my question in an understandable fashion....

I have a table containing data for about 2000 ID numbers. Some of these numbers are unique and some are duplicates. I would like to convert the ID numbers into a consecutive list of integers while preserving the unique numbers. For example, if the first column of my table is currently:

ID#
18578
19644
19644
20247
20974
21361
21361
21419

I would like to change that to something like:

ID#
1
2
2
3
4
5
5
6

I need to know which records (i.e. which rows of data) are from the same ID# but want to remove the actual ID#.

View 6 Replies View Related

Convert Array To List

Sep 26, 2008

I have a data array which i would like to convert to a list. Sort of the reverse of a Pivot Table

See example below
I would like to turn this

Account Jan Feb Mar April etc..
001 59 30 25 40
002 12 20 32 29
003 5 13 27 39
004 10 11 12 13

Into This

Account Month Amount
001 Jan 59
001 Feb 30
001 Mar 25
001 April 40
002 Jan 12
002 Feb 20
002 Mar 32
002 April 29
003 etc...

There is a sample of the data file attached.

View 3 Replies View Related

Convert List To Table?

Jun 14, 2012

I have three columns of data starting in row 5, the headers of these columns show Origin, Destination and mileage. Is it possible to have a macro that converts the data into a table?

View 2 Replies View Related

Convert Table Into A List

Jun 3, 2014

I am trying to convert a table into a list, please see the example, I want to convert this table

10547
aaa
140x200

160x230

300x400

10549
bbb
140x200
150x260

[Code] ........

View 1 Replies View Related

Convert From Table To A List

Sep 18, 2008

I need to convert this kind of table to a list (like in below example)
Can someone give me an instruction or macro to do this ?

Table
X Y Z
A 3 5 7
B 2 4 6
C 8 9 10

List
Column1 Column2 Column3
A X 3
A Y 5
A Z 7
B X 2
B Y 4
B Z 6
C X 8
C Y 9
C Z 10

View 9 Replies View Related

Convert List To Matrix

Jun 24, 2007

I want to take information from a list and put into a matrix using VBA. So my problem is to find the correct cell in the matrix.

View 5 Replies View Related

Convert List (vector) To Matrix

Dec 18, 2007

I'm looking for a way to automatically convert a list of values into a matrix.

For example,

A1A11000
A1A2998
A1A3468
A1A4491
A2A1998

[Code] .......

should be converted to

A1A2A3A4
A11000998468491
A29981000464488
A34684641000992
A44914889921000

In this case it could still easily be done manually, but if the matrix has more dimensions it will get harder.

View 5 Replies View Related

Convert List To Label Generator

Nov 8, 2012

I have a wedding list in rows in an excel sheet IE Name, Address, City, State, Zip

I want to transfer it to a text deliminated file in notepad, where it will appear as follows:

Name
Address
City, State Zip

how to accomplish this.

View 1 Replies View Related

Convert Table To Concatenated List

Oct 9, 2007

I would like to convert the data by VBA macro from a table format into a list format. The convention of the TABLE data is as follows:

First row is Header Titles
[TABLE]
[SITE],[LOC],[PROD], [MTH1], [MTH2], to ->[MTH12]
North, Office, Cooling, 100, 125, 85
[/TABLE]

I would like the data to be provided into a list format for each month.
For example:

[TABLE]
Row 1: North, Office, Cooling, Month 1, Value
Row 2: North, Office, Heating, Month 1, Value
Row 3: North, Office, Electricity, Month 1, Value
Row 4: North, Retail, Cooling, Month 1, Value
Row 5: North, Retail, Heating, Month 1, Value
Row 6: North, Retail, Electricity, Month 1, Value
etc
[/TABLE]

View 7 Replies View Related

Convert Event List To Calendar Format

Jul 10, 2012

I am trying to find a efficient solution to convert 3 lists (in the same column layouts) to a calender format. I have different lists that are maintained but want to consolidate them into one calender. So rather than looking at 3 individual lists, someone can view this one master calender with all the events/meetings.

The events from each list would automatically populate one master calender.

List 1: Abe
Event Date__Discription
1/20/2012__Lunch meeting
3/2/2012__Convention meeting
5/11/2012__Dinner meeting

List 2: Bill
Event Date__Discription
1/4/2012__Office Meeting
6/2/2012__Golf meeeting

[code]....

Is there an existing program or file out that can accomplish?

View 1 Replies View Related

Convert Address List To Multiple Columns

Apr 10, 2009

I'm looking for a way to convert an old church address list that is formatted in a single column. There are no blank rows, but the amount of rows for each entry can vary. For instance, there could be as little as 3 rows of data (church name, address, city/state/zip) or more if email addresses and websites are provided.

The data is currently in the format below (notice how one entry has a website while the other does not).

First Church
102 Main Street
Dallas, TX 12345
email@whatever.com
Second Church
500 Second Street
Austin, TX 12376
email2@whatever.com
http://www.boguswebsite.com

So I'm looking for the data to be formatted like the following:

First Church 102 Main Street Dallas, TX 12345 email@whatever.com
Second Church 500 Second Street Austin, TX 12376 email2@whatever.com http://www.boguswebsite.com

I was able to find the following code from a Google search, but it can't dynamically adjust the range.

Sub x()
Dim rng As Range

Set rng = Range("A1").Resize(5)
Do Until IsEmpty(rng.Cells(1, 1))
rng.Copy
Cells(Rows.Count, "B").End(xlUp).Offset(1).PasteSpecial Transpose:=True
Set rng = rng.Offset(5)
Loop

End Sub

I think what I need to make this code work is a way to dynamically adjust the range so that it can determine when to move to the next row of data. Static ranges break the process due to the amount of data being provided not being uniform. What I was thinking is that I could use the word "church" as a start point and end point in a loop so the script knows when to jump to the next row and begin copying the proper number of columns. I'm just not sure how to accomplish this in vba.

View 9 Replies View Related

Macro To Convert File Names According To List

Jul 25, 2009

I need to rename some jpg's in the c: emp directory ( about 600 ! )

In Col A starting at A1 I have the following:-
DFCF0156
DFCF0157
DFCF0159
DFCF0161
DFCF0164
etc

In Col B starting at B1 I have the following:-
ID3425
ID5823
ID427
ID7272
ID8875
etc

In c: emp is have:-

DFCF0156.JPG
DFCF0157.JPG
DFCF0159.JPG
DFCF0161.JPG
DFCF0164.JPG
etc

What I want to end with in C:TEMP is:-

ID3425.JPG
ID5823.JPG
ID427.JPG
ID7272.JPG
ID8875.JPG

View 9 Replies View Related

Convert A Column Into Comma Delimited List

Oct 27, 2006

I have a list of terms in a spreadsheet. Assume they start in cell A1 and they descend down for the next 300 cells. Basically I need to pull those terms into a single text string where the terms are comma delimited.

What I have been doing is concatenating them so they all end with a comma, copy them 25 at a time, pasting values and transposing then running a concatenate formula for the 25 terms. Do this 10-15 times to create that many comma delimited lists then concatenate those lists to create one all in one list.

Example:

The list (starting in A1) looks like this:
Dog
Cat
House
Car
Boat
Mom
Dad

but I need:
Dog,Cat,House,Car,Boat,Mom,Dad

If possible to do this with a formula please do so as my knowledge of using VBA modules is limited but if this must be done using VBA please realize that I'm in the thrid grade compared to your knowledge so please explain how to implement the module as clearly as possible.

View 4 Replies View Related

Convert List To Table And Stay Updated Dynamically?

Aug 21, 2014

I have a list or log that is updated by a number of people on a sharepoint file. The list consists essentially of 2 columns - lets call them Location and Date.

The Locations are populated from a pulldown list but can be repeated a number of times throughout the list. I have the list set up using Table Formatting so the range updates dynamically

Example:
Location Date
Site1 8/1
Site2 8/2
Site3 8/3
Site4 8/5
Site2 8/6
Site2 8/7
Site3 8/8

As this list gets items added to it I want to populate a summary table on another sheet showing the dates each site was visited like this...

____8/1 8/2 8/3 8/4 8/5 8/6 8/7 8/8 8/9
Site1 X
Site2 -----X-------------X---X
Site3 -------X
Site4 --------------X

(Had to add dashes above to get the X's spaced out properly)

I'm competent with lookups and such but I imagine this needs an array formula or some index/match combination which I'm a little weak on.

The solution should also not require any updating as the source list is updated periodically.

View 4 Replies View Related

Convert Table Into List With Column & Row Headings Appended

Sep 29, 2006

I have a table with unsorted Time Data and Headings for each Row and Column (See attachment). I need to display this data in another worksheet as a scrollable list.

Then when I click on any list item, it displays only that data in the following format:

A1 = Time. A2 = Row Heading. A3 = Column Heading.

Easier to understand if you view the simple spreadsheet attached.

View 4 Replies View Related

Convert Long Address List To Multiple Columns

Nov 22, 2007

I've been given a long list of mailing addresses in Excel in formatted as a single column, each address using three rows with no blank rows. Example:

John Doe
123 Maple St. #2
Cambridge, MA 02139
Jane Smith
321 Elm St. Apt 24
Austin, TX 34557
etc.
etc.

I need to get this data into the form ...

John Doe 123 Maple St. #2 Cambridge MA 02139
Jane Smith 321 Elem St. Apt. 24 Austin TX 34557

I would think this has been done, but I've searched the web and this forum without success.

View 3 Replies View Related

Convert 2 Column List To Multiple Related Columns

Nov 28, 2007

I have a long list of 2 columns containing data as follows:

col A col B
country1 date1-1
country1 date1-2
country1 date1-3
country2 date2-1
country2 date2-2
country3 date3-1
country4 date4-1
country4 date4-2
country4 date4-3

which I would need to move to get one row per country in column A with all related values from col B in multiple columns on a single Row, e.g....

View 9 Replies View Related

Using VBA Code To Generate List Of Consecutive Numbers And Convert Into String

Jan 10, 2013

If n = 5, then I want to generate a string like this: "1+2+3+4+5". Similarly, if n = 7, I want the string "1+2+3+4+5+6+7".

I can generate the consecutive numbers, but have not figured out how to generate the required string.

View 2 Replies View Related

Convert A List Of Downloaded Zipcodes That Preceed With Zeroes Into 5 Digits

Jun 7, 2006

How do I convert a list of downloaded zipcodes that preceed with zeroes into 5 digits?

i.e.

501 into 00501

and

1601 into 01601

View 9 Replies View Related

Convert Raw Data Matrix To Multiple Column Data?

Sep 6, 2012

Here's a sample of the document I have, the original has several thousand entries, so figured for the sample I'd limit it. The raw data is on sheet 1, and sheet 2 is what I want to have to more easily manipulate the data. I started doing it manually, but I'm sure there's a far better method that I just don't know about yet. sample.xlsx

For those that don't want to download the document:

My data is like this:

ID1 Field1
ID1 Field2
ID1 Field3
ID2 Field1
ID2 Field2
ID2 Field3
ID3 Field1
etc.

What I want is this:

ID1 ID2
Field1 Field1
Field2 Field2
Field3 Field3
etc.

View 2 Replies View Related

Formula To Convert Monthly Data To Weekly Data

May 8, 2014

I have 12 observations per variable over 2013. At the end of each month I gathered the average value of X of said month. What I want to do is convert these observations to a list of weekly observations, where each week in January gets the value of the January observation

Example:

Month123456789101112
Value 2345678910111213

And get it like:

Week Value
1 2
2 2
3 2
4 2
5 2
6 3
7 3

and so on.

Since I've got a lot of variables I'd like to use some kind of formula.

View 11 Replies View Related

Transpose Or Convert Rows Of Data Into Columns Of Data:

Feb 12, 2009

When I was using Excel 2000, there was an Excel add-in where I could highlight rows of information and then transpose these into columns of information. Since we have upgraded to Excel 2003, the same Excel add-in does not work and I have not been able to find a simple solution to transpose my information from a horizontal view to a vertical view or the reverse.

Or do I just have to move 53 columns (weeks) of 4 rows one cell at a time to 4 columns of 53 rows (weeks)?

View 3 Replies View Related

Convert Vertical Data To Horizontal For Varying Data?

Dec 11, 2012

I have a data which contains:

A B
1 Name: A
2 Address: NY
3 Gender:Male
4 Cell Numbers: 123

[Code].....

I know that this has been asked a million times, but I need the new table in a new sheet (which is sheet 2 and also I skip the Cell Phone numbers data).

View 2 Replies View Related

Convert Data From Table Format Into One Long Row Of Data?

Jun 17, 2013

I have a sheet with data 7 columns wide and up to 1500 rows long. Below are a few lines from the sheet. The data from the sheet is grouped into "months" as shown in the header down the first column, "Show June, 2013..." and "Show July, 2013...", and so on. Is there a way I can make Excel re-align the data into ONE long row of data for each month? Each new month row must be "triggered" by the text (like the word "Show") because the actual cell number of where the new month begins may change with new updates. I want to do this because I plan to refresh the data once at the end of each day from the web and apply the new data to the "next" row of data. So eventually, I can have a history of "Last" values I can chart for each "strike" for each month.

CALLS
PUTS

Show June, 2013 Options Hide June, 2013 Options

Symbol
StrikePrice
Vol
Last
Last
Vol
Symbol

quote
15.00
2.00
14.25
0.02
22.00
quote

[Code] ........

View 9 Replies View Related

Excel 2013 :: Drop Raw Data In And Convert To Useful Data?

Nov 27, 2013

I'm trying to figure out how to copy raw data from one file(emailed to me) and paste it to my existing file "File b" into a table "tbl a"(to make it dynamic). From another table "tbl b" on another sheet within in "File b" I want to auto populate "tbl b" with all the records from "tbl a" but not all columns from the records. To make it more difficult, I want to edit some of the data and the headings between the two tables are not the same. Example below.

Ship-to-name
Product Name
Date Shipped
Customer Group

ABC-Atlanta
Advil (Ibuprofen) 800MG
11-15-2013
Wholesaler

[code].....

Notice column b has different heading and the data need to be modified. Column d is not needed at all.

Also this need to happen when the raw data is copied into "tbl a" and again all records need to be copied over with changes.

This also needs to be done outside of VBA if possible using just formulas and possibly filtering.

I'm using MS Excel 2013

View 3 Replies View Related







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