Convert Tree Structure SAP Data Dump Into Database Format

Jul 28, 2009

I have an organizational hierarchy dump in excel from an SAP ERP system. The format of that file is less than user friendly and I need to convert it to a flat file format so I can do pivots against it or possibly dump it into access database. The background is as follows (I am also attaching a file).

The organizational structure is multinoded/layered. Top most node is a company second from the top are divisions designated by 02DivName each 02DivName has multiple nodes assigned to it. The lowest level of the hierarchy is a department, always a numeric, always same length.

That's where it gets interesting. Each node/layer under 02DivName has a technical description and text description they get broken up into two different columns when SAP dumps them. Technical descriptions can be used to identify where in hierarchy the node falls(parent/child). For example 02A is a child of 02DivName 02B is a child of 02A 02C is a child of 02B and of course all of them roll up to 02DivName. There could be multiple 02A's under Div Name and their respective 02B's, C's D's would roll under them. So on export file it would be graphically represented 02A1 blank blank blank blank in that column and then change to 02A2 their respective 02B's would be in different columns works the same for C's and D's.

Here is another wrinkle the department is not always assigned to the lowest level grouping. I could have 02DivName dept, dept, dept, and then 02A group assigned to 02DivName. The department numbers end up on export file in the same column as fre form text descriptions for the nodes. It is staggered format.

The object of what I'm trying to do is basically convert the gibberish described above into flat file format via a vba script. I need to have node1 node1 desc node2, node2 desc, etc etc in columns the last column being a department number. So if for example I have a dept assigned directly to 02DivName directly all the other node descriptions will be blank if it's node 02A then the node1 and node2 will be populated. Any help will be appreciated. And here is the file with excel spreadsheet

View 5 Replies


ADVERTISEMENT

Group / Ungroup - Tree Structure

Mar 6, 2014

I am trying to create a sheet to resemble tree structure of rows. That is by default all the parent rows must be visible and click of + sign, the row should expand to show its child rows which in turn can have child rows but appear collapsed. When I choose two rows and click on Group and select rows, I see a grouping but when I try to collapse using - sign, both 2 rows gets disabled. I want to make the first row as parent and second row as child. How do I do it?

View 1 Replies View Related

How To Create (Tree) BOM Structure (Excel Sheet Attached)

Jun 19, 2014

I was sent this file and I want to replicate the bill of material tree structure on the left. I'm not sure how it is done.

Image: BOM_example.png

View 1 Replies View Related

Display A Tree-like Structure From Parent-child Nodes

Oct 1, 2008

I encounter the following problem which has been bugging me for weeks.

I am doing up an engineering spreadsheet which calculate the electrical cable size from node A to node B.

Col A and B goes like this:

From|To
Transformer|MSB_A
MSB_A|SSB_A1
Transformer|MSB_B
MSB_B|SSB_B1
SSB_A1|DB_A1
SSB_B1|DB_B1

So Transformer is the parent of MSB_A and MSB_A is in turn the parent of SSB_A1 and so on.

What I would like to achieve is to put these data into the following configuration:

Transformer----->MSB_A
............................|-> SSB_A1
.....................................|----->DB_A1

Transformer----->MSB_B
...........................|-> SSB_B1
....................................|-----.>DB_B1

NB: Please ignore the "dots" above.

This will give the user an overview of the parents and node relationship.

I can't seem to find a solution how to achieve this.

View 9 Replies View Related

Convert Data In Invalid Format Into Correct Format

May 1, 2014

I have around 30k data. which is in invalid format.

Ex: 12987654321vinay kk 876543219
32567456789 kkccjhg fo 345678921

I want to convert this into correct format as below with start letter from

MOD, 987654321,, vinay, kk,87654219
MOD,567456789, , kkccjhg, fo,345678921

I want to know which are formulas I have to use to get this info in correct format.

View 1 Replies View Related

Copy & Transpose Table Data Into Database Format

Sep 14, 2009

I have a sheet with products down the side, and dates across the top. Numbers will be entered at an intersection between dates and products to represent quantity. Whenever there is a non-blank value for the quantity, I need to copy the products, dates, and quantity into a traditional database format. I have attached the original data format I get from suppliers on when they will deliver, and then show a separate tab for "Desired Result"

View 2 Replies View Related

Lookup Any Cells Within Data Dump?

May 7, 2014

Any way to look up any cells with in a data dump (example: PR1420829-V2) but not having to include the 'V2' but still picking up the cell.

Im currently using the fomula;

=IF(ISNA(LOOKUP($D$5:$D$1000,Test!$C:$C,Test!$L$1:$L$381)),"",LOOKUP($D$5:$D$1000,Test!$C:$C,Test!$L$1:$L$381))

View 2 Replies View Related

Macro Data Dump Of The Date When I Hit 'update'

Jul 14, 2009

I have a model which I have created a macro for that will do a data dump of the date when I hit 'update' (on BBG Raw Data Tab) to Column A in the 'Data for Pivot' Tab.

This works fine and all of the data comes over, except the last two data points in BBG Raw data (Cell A5055 and A5056) do not come across into the 'Data for Pivot' Tab (these should be going into Cell A5054 and A5055 of the 'Data for Pivot' tab).

View 3 Replies View Related

Daily Data Dump - Using VBA To Define The Range?

Dec 21, 2013

I have a daily data dump that starts at the beginning of 2012 up to the current date. I have an executive view that allows the user to see metrics(in a data graph) from the current date back to a date selected from a drop down menu. I would like to have it so they can choose what the end date will be as well as the start date. I have tired using offset with very little luck. Is there a way I can accomplish this task with VBA? Everyday a new row of data (for the previous date) is added to the front sheet. So row 1 is a header row and then row 2 is 01/01/2012, row three 01/02/2013, etc.

View 7 Replies View Related

Data Dump Query When Workbook Opens

Aug 26, 2006

I am trying to find a way to automatically do a query and dump the data into a sheet when a previously created workbook is open. I know how to get the data (use the Tools, Import External Data option to retrieve data from Access) but what I don't know is how to make it do it automatically when the workbook is open.

View 2 Replies View Related

Convert Data To Different Format

May 5, 2009

See the attached file. In the RawData tab, I have the Type, The Date, and total for that date and type. Using a macro, i would like to redesign the output(onto another sheet) so it can be updated to a database table(i already have the code to export to database). The output should look like what is in the "OutputExample" tab. Figures in the OutputExample tab are only for the first three dates. So currently, I have the output as:

View 4 Replies View Related

Data Validation Lists: Tree Style

Oct 7, 2006

I have a data validation list in B31 "material type" that has 4 options (Adhesives, Metals, Backer Board, & Grout). Based on that selection F31 needs to display a list of "descriptions" that match that "material type". The list is in book "database.xls!sheet3". Material type list is Column A, Description is in Column E. I know that you can't link to an unopened workbook in data validation, & I've been trying to code it, but again the lack of expierence & knowledge has frustrated me again :P This code to get the info for the file to open

Private Function GetValue(path, file, sheet, ref)
Dim arg As String
If Right(path, 1) <> "" Then path = path & ""
If Dir(path & file) = "" Then
GetValue = "File Not Found"
Exit Function
End If
arg = "'" & path & "[" & file & "]" & sheet & "'!" & _
Range(ref).Range("A1").Address(, , xlR1C1)
GetValue = ExecuteExcel4Macro(arg)
End Function....................

View 9 Replies View Related

Convert Data Into Reportable Format

Aug 2, 2008

I'm trying to convert the attached data into having 1 row per record to enable the creation of a database or a pivot table. I have 1300 records and don't know how to do it systemically. The top set is each of the field names, and below it are 3 example records.

View 5 Replies View Related

Data Dump Of Charted Data Needed

Jun 22, 2009

I have an interactive moving average model (which has an adjustable moving average feature) which successfully charts the moving averages of the data on the chart. I have coded this with VBA. However, I would like to get a data dump of the individual moving average data points. That is, I would like to see the individual data points (that are plotted on the chart). Would anyone be able to help me with this?

View 14 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

Data Extraction: Convert The Date Format

Mar 4, 2009

I have several large excel spreadsheets with thousands of entries (autocad drawing numbers). In one column it lists the date the drawing was created. Unfortunatley most of the entries were input as text. Even though I have formated the column to a date format (01/01/2009) most entries are not converting. Below is an example of some of the cells:

Jan. 12/02
JAN12/02

How can I correct his?

View 5 Replies View Related

Populate 12 Sheets With Data From Dynamic Dump Of Entire Year - Use A Macro?

May 9, 2014

I have a sheet with a data dump containing data on several railcars, taking up approximately 500 rows. Some railcars take up multiple rows, one row for each unique customer, and one railcar can have up to 5 customers' goods on it. What I need to do is get this information separated out onto monthly sheets, based on the departure date of the railcar. Every row of data in the dump has a column with the departure month I need in it, so that would make it seem easy. I have 12 sheets created one for each month, with the same headers as in the dump.

The two tricky parts:

1. The data in the dump is not sorted by railcar number, but the results in the monthly sheets need to be.

2. I don't believe LOOKUPS will work because rows in the dump repeat railcar numbers because of the multiple customers, and each of those rows has to be brought over to the monthly sheets, sorted and subtotaled by railcar number.

Finally, every week or so, I'm going to want to drop a new data dump in the dump sheet and need the monthly sheets to update dynamically. The new dump won't simply be rows added on to the same data as before, all the rows could be different. If this is solved most easily with a macro (i.e. drop the new data in the dump sheet, press a macro button and it populates the monthly sheets)

View 12 Replies View Related

VBA Code Or Formula To Convert Format Of Extracted Data

Apr 3, 2014

I have VBA code the extracts data from a source and puts it into excel. I need to change the format of some of the extracted data so i can use it for a VLookup formula. Reference the attached example. Columns A AND B have the extraced data which are dates. In Columns C and D or E and F I have typed what I would like the data to look like so I can use in a Vloolup formula. Is there VBA or a formula that word change the format of the dates in Columns A and B to look like C and D or E and F. The changed format could be moved to any new cells or rows.

View 1 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

How To Convert Data On Multiple Sheets Into Excel Table Format

Jan 12, 2014

I have a workbook that contains something like 50 worksheets and they all contain data with the same columns, for example column A is Project, column B is Project Name, etc. I need to convert data in each worksheet into an Excel Table. There has to be an easier way than manually converting each worksheet into a Table. However, when I group all of the sheets, the option to Insert a Table is not available even though the data starts in the same row and contains the same number of active columns in each worksheet. Is there an easier waty to insert a table in all of the worksheet simultaneously?

View 2 Replies View Related

Automatically Convert Table To Database

Feb 1, 2006

I've posted an example workbook that has sheet1 as how the data comes and sheet2 as what I need it to look like (through some kind of automatic process). I really don't have a clue as to how to get this done, and I'm guessing some VBA is going to be required.

View 3 Replies View Related

Convert Text To Number - Large Database

Aug 30, 2009

The format of the numbers are:

####-##-###-####

I have 2000+ numbers is coloumn B.

There are a lot of sets of numbers that are still text! It's highly annoying and I need to analyze the data in Access.

I tried the paste special advice and the 3 ways microsoft suggests. I have a feeling its not working because of the required format that I need.

I need to do this project tonight!

Background: these are imported numbers, I had to combine other excel databases... By the way, is their an easier way to combine excel sheets into 1?

View 12 Replies View Related

Reorganizing Large Sets Of Data Composed Of Same Structure?

Jan 3, 2012

I have a spreadsheet that consists of 981 rows and 1152 columns (192 * 6). It is essentially 981 rows by 192 columns rectangles (if we think of it as a range) side by side. What I want to be able to do is cut 981 rows by 192 columns at a time and paste at the bottom of the first rectangle so forth so on.

Essentially currently data sets look like 1 2 3 4 5 6 - I want the cut paste process to move these rectangles to:

1
2
3
4
5
6

View 1 Replies View Related

Grouping Data From Two Tables (different Structure) Based On Common Criteria?

Dec 1, 2013

The attached file shows what I'm trying to do - I'd like to fill in the data in the top left corner table (blue-shaded) with the data combined from the two other tables. Think of the Greek letters as names that are grouped into the groups named {A,B,C,D,E} (the names have no significance, it's just an example).

I was able to do so using an array formula and an extra column (yellow shaded) as you can see in B2 - however, this solution doesn't suite my case because the actual tables will be coming from automated processes and cannot be easily manually altered.

I tried inserting the array formula into the sumproduct formula - see B3 - but for some reason this doesn't behave the same as when the array is outside the formula. I should also mention that I came across a user defined function solution - this too is not so suitable for me right now.

View 9 Replies View Related

Convert Cells With Percentage Format To 'same' Decimal In A Column With Mixed Format

Jun 7, 2006

I have a column of cells with values - 0.2%, 0.32%, 0.22, 0.5 etc. The cells with % symbol are in ' Percentage, 2 decimal' format while the plain numbers are in 'General' format i.e. column contains cells in either of these formats. I need a macro where I can specify the column and it will select the cells with the % format, convert it to 'General' and multiply the result by 100 eg. 0.2% converted to 'General' becomes 0.002. When multiplied by 100, result is 0.2 i.e. is displayed without the % symbol.

View 7 Replies View Related

Macro Or VBA - Search General Format Convert To Date Format

Oct 26, 2012

Every month, I have an import a report to a spreadsheet. At my column A, it supposed to be a date format.

For some reasons, I have a combination of a few cells of date format and a few cells of general format with no order at all.

What I need is: Search in the A column, if date format leave it , if not change from general to date format.

View 2 Replies View Related

Format Of Cells From Database

May 11, 2009

-I have an excel export from a database.
-The export has multiple columns of data.
-The column I am interested consists of numbers and some text.
-The numbers are preceeded by "zeros", e.g. "00054" or "0021"
-The text is usually "N/A"

Problem:
-The column cells are formatted as "General".
-I need to get the "00054" to just "54"
-I am looking for a solution other than re-writing the column by hand (hundreds of column entries)

I've Tried:
-Changing column format to "Number", but the "00054" format remains.
-Played around with other cell format types
-If I double click the cell, the entry then goes to the format I need!!! e.g. "00054" -- double click-- "54". Wallaaaaa... I will get carpal tunnel if I have to double click all these columns entries!!

View 3 Replies View Related

How To Format Exported Database

Jan 30, 2012

I'm trying to format an exported excel database.

I'm currently running into difficulties with a text field full of user comments.

At present, there are cells with the #NAME error on them, and the only way I've been able to get rid of them is by double-clicking on them and pressing ENTER. This is also the only way I've found to remove excess white space in each cell.

Double-clicking each entry in the database would take far too long, and I'm assuming that there must be an easier way.

View 6 Replies View Related

Convert Number Format To Time Format

Nov 28, 2013

How do I convert 11.20.00 in A1 to 11:20:00 in B1?

I've tried =TEXT(A1,"hh:mm:ss") to no avail.

View 3 Replies View Related

Convert A Date Format To A Text Format

Oct 6, 2008

Example......

In D2 I have: =B2
In D3 I have manually input: (space)3-08

As you can see the CONCATENATE puts the "39569" date in A2 But the second line puts the text date as I prefer. What I would like to do is put in a formula or macro in D2 and down that will change the "Mar-08" to "3-08" so it CONCATENATEs correctly to column A. Simply: I'm trying to avoid manually inputing the text version "3-08" (or whatever M-Y) into D2 down a hundred or so rows!

View 3 Replies View Related







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