Align Numbers From 2 Columns In Parent Child Manner
Apr 5, 2008
I have searched numerous times for the answer I need, but no joy yet.
I have a spread sheet that has one column (call it 1) of data with a single entry each of 100, 200, 300, 400, 500, and so on.
I have a second column (call it 2) that has multiple entries of 100, 200, 300, 400, 500, and so on, and I want to sort so that the rows wind up with the numbers in column 1 all sorted in an accending order, but I want all the same numbers in column 2 sorted to "list" next to the same number before the next number sorts. See below for a small example of what I hope to see once it sorts.
100
100
100
100
200
200
200
200
300
300
300
300
Auto Merged Post Until 24 Hrs Passes;Unfortunately the example didn't post correctly..perhaps this will work but note that the x's are in column 1 and don't exist.
100
xxx100
xxx100
xxx100
200
xxx200
xxx200
xxx200
300
xxx300
xxx300
xxx300
View 5 Replies
ADVERTISEMENT
Feb 22, 2013
[Code]......
(and about 5000 more sets with garbage page headers in between the sets of parent rows)
Basically the data spit out by machine is separated by a blank row.
Let's say I need all the data with the child row "tn" , so I would autofilter /PivotTable it for that entry, but that leaves me with a blank column A. It'd be no issue if I had the column A heading in the child rows (and the number of spaces in between is random like 2 sometimes 15+ so Vlookup/Index/Match aren't too useful). It is possible to have a function that repeats the first row until it hits a space?
Like so:
[Code] ......
Then I could autofilter/pivottable to get:
[Code] .....
View 1 Replies
View Related
Jul 19, 2014
I have the following table and i need to be able to present it an indented list of parent child relationship. The hierarchy can go 1000+ levels deep. How do i achieve this using VBA?
OName
OPackID
PPackID
PName
ParentID
Name1
556
556
Box1
389
[Code] .........
If there is a better way of presenting it, it isn't limited to an indented list.
View 5 Replies
View Related
Dec 10, 2007
I have data for , say - Cars, Company and Average.
I solve this upto 2 level i.e cars and companies.
But i want a third level also.
When i select Car from drop down list, using data - validation - list , in cells(1,1) , i should get all companies in Cells(1,2) and on selecting companies , i should get Average in cells(1,3).
If i do define name ,and then data validation list , and then use Indirect() function, i can solve it upto 2 level.
Eg. I can get company for car .. but how to get Average Also.
View 8 Replies
View Related
Feb 7, 2008
I have an excel file (see sample attached) with a hierarchy with parents and children spread across different columns and rows. However, I am trying to condense it into one column with parents and one column with children. The only way I've been able to do this is by copying and pasting parents onto children rows, which is both a manual and time-consuming process (when you have a lot of rows). I feel like there must be a way to use VBA or a formula or something to get it to work. I have attached a sample, so you can see what I am trying to do (current data and desired data).
View 6 Replies
View Related
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
Jan 29, 2010
My query is regarding internet explorer 6 automation via code in VBA (Excel 2003). I'm trying to open a page on clicking a button in main page.
I'm able to open both parent and child pages via VBA, but now want to automate events (like radio btn click etc) in child page.
below is my initial code -
'========
Sub ListLinks()
Dim IeApp As InternetExplorer
Dim sURL As String
Dim IeDoc As Object
Dim i As Long
'Create new instance of IE
Set IeApp = New InternetExplorer
View 9 Replies
View Related
May 17, 2014
I have a parent spreadsheet with raw data(with errors) and a child spreadsheet without errors. I want to merge the child into parent. (:{). I am thinking of comparing multiple columns from each sheet to ensure maximum accuracy. And when those columns match up we paste the corrected column data from child sheet to parent one. I am using windows 7 and Excel 2010.
View 1 Replies
View Related
May 9, 2014
I create a report where in I need to rearrange the columns in a particular manner as required by the client. Any macro which will will work as per following criteria.
Column headers start from A1 onwards (the last column header might vary depending on the creator, I get the report from a different team). The number of rows of data might vary.
For changing the order of columns, the macro should look for a column with the header "Close Date", cut it and insert is before a column with header "Bookings". Then, the macro should look for a column with the header "Description", cut it and insert is before a column with header "Selling BU". The macro needs to then cut two adjacent columns namely "Sector" and "Sub-Area" and insert it before the column with header "Total Bookings".
View 2 Replies
View Related
Feb 28, 2014
I have a table that has:
in column a an number 1,2,3,4,5,6
in column b I have a code against each number
in column e I have numbers , 1,1,1,1,1,2,2,2,2,3,3,3,4,4,4 etc ....
What I would like to have is the code from column c replicates in column d that's matches the code from column c
I have attached a sample of what I need : Product Detail - Copy.xls
View 14 Replies
View Related
Aug 19, 2009
Example Table A:
*ABCDEFGHIJKL1No. 1No. 2No. 3No. 4No. 5No. 6No. 7No. 8No. 9No. 10No. 10No. 10221418269124333324171165141728884321000125067775100860615906015712170712180910
Result Table B:
*ABCDEFGHIJKL1No. 1No. 2No. 3No. 4No. 5No. 6No. 7No. 8No. 9No. 10No. 10No. 10263214854241121253210609433610178011412288370151076151767788070121206015907910
What i want here is to align all the numbers considering the last used cell. In example table a; the last number is 0 (F8). Considering that, in the Result table B all the numbers are aligned in row 8 from the bottom to top giving an equal alignment to the table.
View 9 Replies
View Related
Nov 20, 2008
I have list of unique numbers on Column A and names on Column B. I have another set of unique numbers on Column C and counters on Column D. I have 100 numbers on Column A and I have 10 numbers on Column C. Every numbers on Column C exists on Column A. How do I match and align the unique numbers and have Column B and D in same row? (E.g. 100000 Jones 30). This question is very similar to the one discussed at Aligning Columns With Same Data?
View 6 Replies
View Related
Jun 3, 2014
I would like to align a group of columns against another group of columns.
Columns G-L will not be changing. They have a certain amount of info I want to align with columns A-F
There are 30000 items in G-L and only around 3000 so far in A-F
Weekly I will import and reorder A-F and then want to realign them with G-L
This is a link to a sample of the original file: [URL] .....
This a link to how I wan the order to be : [URL] .....
As you can see there are many more rows in columns G-L
I will update columns A-F weekly and then want to realign G-L
View 2 Replies
View Related
Oct 17, 2009
This is a pretty simple request, but i need a macro to Find Column M's Last Entry and to copy down the 3 following columns down to the value.
I need it to be dynamic in other words, The length of column M will vary depending on my file . If the macro knows Column M ends Here, then drags the boxes down starting from N3 to Q3 down to the last Entry in Column M.
View 4 Replies
View Related
Oct 28, 2006
I have 2 columns one with blanks one without, the data can be anything. I need the 2 columns to line up, data matching up and blanks matching up. I'm attaching a spreadsheet with an example.
View 3 Replies
View Related
Jan 16, 2012
I have to filter data in one column and have it align with data in another column. I need to do this because I have hundreds of product descriptions that I need to match up with the appropriate images. All of the image names will be like the first row (1244-?????.jpg) The problem I am running into the text data I am downloading is not matching up with the images. I usually have more images than text and sometimes I will have text that has no corresponding image.
1244-540299.jpg Golden Poinsettia Triple Candleabrum 1244-540299.jpg
http://img.auctiva.com/imgdata/1/3/2/1/0/4/0/webimg/539293145_o.jpg
1244-540300.jpg Poinsettia and Berry Triple Candleabrum 1244-540300.jpg
[Code] ...........
View 5 Replies
View Related
Jul 9, 2009
How To align (set tabs or columns) on a text string ....
View 8 Replies
View Related
May 22, 2014
I have a list similar to the one below. I need to compare four columns against each other and align matches alphabetically.
This is the data:
Nov
Dec
Jan
Feb
[Code].....
I tried using VLOOKUP but I can't figure out how to get it to return what I want in the format I want it.
View 2 Replies
View Related
Aug 21, 2013
In an Excel sheet; I am trying to match and align data in column C to data in column A, but it is essential that the data contained in the entire row (coln B thru to coln W) moves when Column C is matched and aligned with column A.
Sample workbook attached.
View 9 Replies
View Related
Jun 27, 2014
I have two sets of data from columns A:N (O is blank) & P:AC. Column A & P are account numbers. I want to compare columns A & P for exact matches, there will never be any duplicates in either of these columns by themselves. If there is a match I would like that entire row to align, if there is no match I would like a row to be inserted. I have attached a copy of a worksheet of what I am looking to have done.
View 2 Replies
View Related
Mar 27, 2014
A database spits out a 42-column (A-AP) and 3,000+ row csv sheet of raw data with column headers. Frequently (due to improperly inputted information), there is a random line break in the middle of a cell, resulting in data that should be in columns Q (or R or S) - AP winding up in columns A thru Y (or Z or AA).
The only data that is consistent is in column AC.
Basically, I need to delete any blank rows and pull the incorrectly wrapped data up to complete the row where the split occurred.
Upon examination of the csv file in Word, there are instances of improperly placed paragraph marks (^p), which can easily be searched and replaced—in Word (by replacing each column A data with a unique character and the same data, deleting all paragraph marks and then replacing the unique character with a ^p.
Firstly, I'm not sure how to accomplish this same task in Excel and secondly, doing so brings the data into the proper rows but it doesn't fix the varying number of blank cells. Simply deleting blanks and shifting left doesn't work because the split often occurs in the middle of a cell which would require concatenating. But I would be ok deleting the latter part of the data so the columns align if need be.
In the attached example sheet, I highlighted the relevant data and what needs to be aligned. There is an ideal and an acceptable version in addition to the initial way the csv imports.
Example.xlsx
View 3 Replies
View Related
Apr 25, 2013
I have a macro that converts all my PDF Purchase Orders to a text file and inserts the data/text horizontally into another document. However because the PDF's or the text within the PDF can be fomatted differently (that is on different lines etc) it therefore imports the information and it looks mis-aligned.I have attached a simple spreadsheet showing some sample text as it is imported and then below this how it should look like, all in line.
The range where the highlighted text in red is, is variable (but say nothing more than a variant of 10 columns). The text can also be Uppercase or Lowercase.So, I was wondering if there is macro code to find the "text" on various rows/columns and align it all in another column?
View 2 Replies
View Related
Nov 16, 2007
Assuming i copied a list of cells that are vertical [column format], how do i paste it such that it will become horizontal [horizontal format]
View 11 Replies
View Related
Mar 13, 2014
I have sets of data... like so:
A word text blablabla
B word text blablabla
A dog cat france
B dog cat france
B this that other
A this that other
A tiger dragon monkey
B tiger dragon monkey
My source data I can't get to sort alternating on columns A and B, and I would like the data to alternate A-B-A-B-A-B while retaining the pairings of data in the adjacent fields. Is this possible?
View 1 Replies
View Related
May 15, 2014
I would like to align the matching values in columns A and B but I want the values that correspond to b in c,d and e to go with the column b value.
C D and E don't necessarily have a value in there but if it does it needs to move with B
View 5 Replies
View Related
Apr 17, 2014
I have a 1640 line database in Excel to sort in a specific manner and create a booklet in Publisher for a Family History group.So here is the data as it appears at the moment;
SURNAME - FIRST NAME - DATE 1 - F SURNAME - F NAME - PARISH
DATE 2
Date 3
SURNAME - FIRST NAME - DATE 1 - F SURNAME - F NAME - PARISH
DATE 2
DATE 3
So A to Z sort Column A BUT retain DATE 1-3 in the finished state,and same for next 400 groups.
View 4 Replies
View Related
Apr 29, 2014
I have a string of payments and want to calculate the Net Present Value. Also, what should be used as a discount rate?
View 7 Replies
View Related
Jan 17, 2007
I have an application that uses data stored in an excel spreadsheet. Over time the amount of data has become greater, and the application more unwieldy and difficult to maintain. In order to simplify it, I am trying to create a userform that displays multiple levels of master-child table data (for example, clients-orders-items). The data is stored in separate worksheets. The lower levels must allow inserting and deleting lines, moving them up or down, and editing the data. Does anyone have an example of such a userform that I could adapt to my specific requirements?
View 3 Replies
View Related
Nov 5, 2008
Imagine this:
* Main Category #1
Sub Title #1: "Value"
Sub Title #2: "Value"
Sub Title #3: "Value"
Sub Title #4: "Value"
* Main Category #2
Sub Title #1: "Value"
Sub Title #2: "Value"
Sub Title #3: "Value"
Sub Title #4: "Value"
Sub Title #5: "Value"
Sub Title #6: "Value"
Sub Title #7: "Value"
Sub Title #8: "Value"
Sub Title #9: "Value".................
Main categories and subtitles are in the same column. "Value"s are in the column to the right.
I want to make a list in the columns to the right. This list will only show something if the "value" is not zero. It will show in the first column right from the original list, the main category to which the subtitle belongs to and the subtitle. Something like this (imagine subtitle #2 from cat #1 and #2 and #3 from cat #2 are not zero):
View 4 Replies
View Related
Feb 12, 2014
Basically, the code copy contents from 4 "Child" files to a "Mater" file.
Everything works smoothly but no data is being copied from the "Child" files.
[Code] .....
The other thing I've noticed is that if a "Child" file is open, I cannot run the code. Is there a way that even a "Child" file is open, the code can copy it's contents on the background?
View 14 Replies
View Related