Consolidating Many Rows Into One
Aug 8, 2009
I have data that looks like this.
A1 B1 C1
1 2 100
2 3 100
3 4 100
My result should look like '1' in column A1, '4' in column B1 and '100' in column C1. I have hundreds of rows this way and any help will speed up my process. I tried writing a macro, but have no idea on how to delete the rows in between. Even if we can copy the result to the next column (i.e. have '1' in column D1, '4' in column E1, and '100' in column F1, that will solve the problem.
View 3 Replies
ADVERTISEMENT
May 1, 2008
way to combine multiple rows into a single row using vba?
I have large amount of data approximately 5000 rows. I would like to combine all of the rows by DOB.
The reason why they are listed multiple times if they have multiple Benefit #'s.
Here is an example of the multiple rows of data: ....
View 12 Replies
View Related
Dec 3, 2013
I have a large patient data set consisting of one column that includes their zip codes and one column that includes the number of times they were seen at a hospital over a period of time. I want to try to consolidate the data so I just have the number of total cases (for all patients) in a certain zip code over that time period. There are several thousand patients and it would be great to avoid doing it manually.
View 1 Replies
View Related
Apr 17, 2009
I have a zipcode file I am trying to consolidated that has zipcodes and customers. how to consolidate the customers into a single row by zipcode as outlined below
Current Data
Zipcode Customer
00001 Customer 1
00001 Customer 2
00001 Customer 3
00002 Customer 4
00002 Customer 5
Desired output
00001 Customer1, Customer2, Customer3
00002 Customer4, Customer5
etc etc
View 6 Replies
View Related
Feb 3, 2010
I am working with an excel file that shows daily whether an individual is checked into a shelter. The dates are often consecutive. I am trying to merge rows to reflect a true length of stay, not daily. here is what my data looks like:
First Last SSN DOBEntry Date Exit Date
JaneDoe1111111111/11/11114/1/20094/1/2009
JaneDoe1111111111/11/11114/2/20094/2/2009
JaneDoe1111111111/11/11114/3/20094/3/2009
JaneDoe1111111111/11/11114/4/20094/4/2009
JaneDoe1111111111/11/11114/5/20094/5/2009
JaneDoe1111111111/11/11114/6/20094/6/2009
JaneDoe1111111111/11/11114/7/20094/7/2009
JaneDoe1111111111/11/11114/8/20094/8/2009
JaneDoe1111111111/11/11114/9/20094/9/2009
JaneDoe1111111111/11/11114/10/20094/10/2009
JaneDoe1111111111/11/11114/12/20094/12/2009
JaneDoe1111111111/11/11114/13/20094/13/2009
JaneDoe1111111111/11/11114/14/20094/14/2009
JaneDoe1111111111/11/11114/15/20094/15/2009
JaneDoe1111111111/11/11114/16/20094/19/2009
JaneDoe1111111111/11/11114/21/20094/22/2009
Here is what I would like it to look like:
First Last SSN DOB Entry Date Exit Date
JaneDoe1111111111/11/11114/1/20094/10/2009
JaneDoe1111111111/11/11114/12/20094/19/2009
JaneDoe1111111111/11/11114/21/20094/22/2009
Does anyone have any suggestions on how I can accomplish this with a macro or otherwise so I don't have to manually go through a year's worth of data? Thanks for your help and time.
View 9 Replies
View Related
Nov 21, 2012
I am trying to consolidate rows of data in to a single row at Cust Ref level (column A) but I need to ensure the numbers in each monthly column are added up accordingly so I have one total per month by Cust Ref. I hope what I have said makes sense. I have attached the spreadsheet so you can see what I am talking about.
View 6 Replies
View Related
May 29, 2007
I am trying to compile a spreadsheet for my job that will find an average of all the break times and meal times that all the employees take. I have the employee list and their respective timeclock punches for the week, so I took that and found their meal and break times for each individual day, but I'm having trouble when it comes to consolidating and averaging the data. The first column lists the employees, but their names are repeated depending on how many times they punched the clock that week, and since not every punch was a meal or break, my time columns contain a lot of zeroes that aren't needed. I need a way to just average each employees' meal and break times.
View 9 Replies
View Related
Oct 13, 2009
I have a sheet with the following information in rows:
PO# Acct# Item# QTY
There are multiple lines that share the same acct#.
How can I create the sheet so that each row combines the records for the same acct#.
For example:
PO# Acct# Item# Qty PO# Item# Qty PO# Item#
There are never more than 6 rows that share the same acct#.
View 23 Replies
View Related
Nov 12, 2009
I have written a macro to consolidate multiple sheets into one sheet. I have two sheets which are to be copied one below the other.I am attaching the code for this here.
ub Bingo()
Dim ws As Worksheet, n As Long, flg As Boolean, last As Long
On Error Resume Next
Application.DisplayAlerts = False
Sheets("Consolidated-Input").Delete
Application.DisplayAlerts = True
On Error GoTo 0
Sheets.Add(before:=Sheets(1)).Name = "Consolidated-Input"
n = 3
For Each ws In Worksheets
If ws.Name "Consolidated-Input" And ws.Visible And ws.Name "DCS-User" And ws.Name "Cal" And ws.Name "DCS" = True Then
If Not flg Then
ws.Range("a:c").copy
Sheets("Consolidated-Input").Range("a1").PasteSpecial xlPasteValues
Sheets("Consolidated-Input").Range("a1").PasteSpecial xlPasteFormats
flg = True...................................
View 9 Replies
View Related
Jan 12, 2010
I have 85 workbooks in the same folder with a sheet in each workbook called "Budgets". Its the same template in each workbook with different data. I need to create a Summary master file of all my budgets so in the end I will have 1 Workbook with the 85 copies of the "Budgets" Worksheets. Does anyone know the VBA for this?
View 9 Replies
View Related
Sep 25, 2013
consolidate data from different workbooks into a single work book.
Each workbook contains one month payment information for employees.
i want to consolidate the the workbooks into one mastersheet such that i will have twelve columns (One for each month). On the consolidated sheet, i want each contributors monthly contribution displayed under the months to which the cointribution relates.
*find attached a dummy data illustrating the request*
i will like the results displayed as illustrated in the consolidate tab.
View 1 Replies
View Related
Jan 14, 2014
I have a clock machine report weekly which generates a spreadsheet very similar to the example attached.
The number of sheets can vary, the number of rows per employee can vary all of which makes me think that I can't use a formula to collate the data. how I can do this?
View 1 Replies
View Related
May 29, 2014
Tried the consolidate feature, however not sure that it is what I am looking for.I am basically trying to condense several calendars ( one calendar per department in a company) into one Calendar..Each calendar has its own tab and looks exactly the same. (tab names: Clubhouse, spa, and final calendar... possibly more departments added later) Hard to explaing so I will attach the file. All I would like to do is combine all calendars into the "final calendar" and in time order if possible... example below
{Clubhouse Tab} A3 will have the time (10 am) , B3 will have the item "Meeting"
{Clubhouse Tab} A4 will have the time (5 pm) , B4 will have the item "Dinner"
[code]....
View 14 Replies
View Related
Jul 18, 2012
I have two spreadsheets of part numbers, one with a full list of parts approx 3500 lines and another with the same part numbers (but only approx 1000 lines) but this file also contains sales history. columns shown below
PART NUMBER, PART DESCRIPTION, RETAIL, COST, UNIT OF ISSUE, CURRENT STOCK, YTD SALES, MTD SALES
What i want to do is merge the two files together so the 1000 parts i have sales history for correspond with the same 3500 lines on the other master spreadsheet, so i can then sort them in which ever order i need at the time.
View 5 Replies
View Related
Oct 21, 2006
I have 4 worksheets where the structure is exactly the same except the figures differ
The worksheet have text and values in columns A to S. I need to write VBA code that will combine the data and show the descritions in a consolidated woorksheet.
View 9 Replies
View Related
Jan 21, 2008
I have a workbook with multiple tabs (sheets) I would like to make another tab to consolidate all the data, rows and columns into one master sheet.
View 9 Replies
View Related
Jul 14, 2008
I have several workbooks (around 15) in one folder which all contain the same worksheets but with different data. The worksheets all have the same columns. What I would like is a way to consolidate each of the worksheets of the workbooks into one new workbook by running the code whenever I want it.
In other words I have workbook 1 till 9 which all have worksheet 1 till 3. And I would like to consolidate them into a new workbook with sheet 1 till showing all of the data.
View 9 Replies
View Related
Sep 27, 2008
I have a 2 worksheets (IJOFTD3D(1) and IJOFTD3D(2)) that I need to filter using criteria in 2 columns and combine to one worksheet (GKA Data). These are not the only worksheets in the workbook.
Here is the criteria: Column A (sortcode) = GKA
Column D (Cust_Code) does not begin with I
I am able to get the first worksheet into GKA Data, but I don't know how to get the second worksheet to append to the first using VBA. This is a daily report that I am trying to make as automated as possible.
View 9 Replies
View Related
Nov 26, 2008
I have two tables that pull data from two different SQL tables via an ODBC connection and refresh every 5 minutes. The table headers etc are all identical (it is support call information FYI) but what I want to do is display those tables as one as opposed to two seperate tables - can this be done relatively easily and hopefully without the use of VBA? (Unless anyone is willing to provide the code of course!!)
View 9 Replies
View Related
May 28, 2009
I am trying to automatically copy and paste data from multiple source workbooks into one master file, and could use some assistance with building a macro to do so. Specifically, I'm trying to accomplish the following:
1. Open source file.
2. Within the source file, find any worksheets whose name begins with a 5-digit number.
3. For these worksheets only, copy values from a specified range (B15:B64, J15:J64, and V15:V64), and paste these values into the master workbook (into worksheets already existing in the master workbook, whose names match those in the source workbook).
4. Close the source file and repeat this process for the next one.
In total, I'll have ~20 source files to process in this manner. I have the file names listed in Column C of the "Import" sheet on my master workbook.
So far, I have been successful in taking care of the step 1 (opening the external files). I'm a macro newbie, though, and am not sure how to tackle the conditional cutting and pasting outlined above.
View 9 Replies
View Related
Jun 15, 2006
I am trying to make a program that opens a file from my hardrive, adds to a list box and allows me to send to a second box. I then want to be able to open the selected files in box 2. I have done the above except being able to open the files in the box. Below is my code can anyone help. I want all the selected files to open in one workbook, so want all files sheets to be copied into one new workbook.
Private Sub CommandButton1_Click()
If Lb1.ListIndex >= 0 Then
Lb2.AddItem Lb1.Text
Lb1.RemoveItem Lb1.ListIndex
End If
End Sub
Private Sub CommandButton2_Click()
Do While Lb1.ListCount > 0 .........
View 6 Replies
View Related
Sep 21, 2006
I am creating a consolidation worksheet. It contains a macro that automatically copy data from other sources and paste it into my DB sheet. It already works, but I want to improve it. The source worksheet databases has been defined with the name “SOURCE”. Is there any way that I can make my macro look for this dynamic ranges directly, copy and paste it into my DB sheet. I am attaching an example of what my current macro is doing.
View 2 Replies
View Related
Aug 15, 2012
I have a folder that contains around 45 excel files, each of these files contain a tab called "corp val". (these files change name month to month e.g. Report June, Report July etc)
I am finding on a monthly basis i need to go into each of these excel files and copy the data from the "corp val" tab into a summarized spreadsheet - which i then use the data for various things.
Just wondered if there was a solution to this or will it always be difficult to copy and pasting all the data i need. I am not in anyway an advanced excel user, I am guessing this might be some form of macro in which case I am maybe better to keep doing it the way I was as I am not literate in macros.
View 1 Replies
View Related
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
Nov 25, 2008
I'll be as succinct as I can, and I'm sorry if this question has been answered already. I've had a look at past posts and can't seem to find anything.
My service has an Excel workbook of patient details. These details are separated across three sheets called 'Generic', 'Heart Failure' and 'Falls and Fracture Management'.
The columns in each sheet are the same. Every month I produce a single report of data from columns A, B, L, Q and R in each sheet.
I've been doing this by copying/pasting each of those columns from 'Generic' individually into a new sheet, then putting the same data from 'Heart Failure' underneath, etc., then manually deleting all rows that contain a blank in any cell.
Is it possible that VBA code can be written to do this? I don't know anything about codes; I know I could achieve the same effect with linking, but it seems that this would be unreliable.
View 12 Replies
View Related
Jan 5, 2009
I have data that looks like this
A-----B
300 TEXT1
300 TEXT2
300 TEXT3
300 TEXT4
300 TEXT5
300 TEXT6
300 TEXT7
I'm looking for a formula, procedure or vb code I can use to keep only 5 of these records based on whats in column A. So if there's 50 lines that have 300 in column A, I want to delete all rows but the first 5.
View 3 Replies
View Related
Apr 11, 2008
I'm trying to consolidate inventory for my department. I have Part#s in (column E) of all the worksheets and the amount of the product in (column C). I need a formula that finds the specific part# (in column E) and adds up the total amounts (in column C) in another worksheet has the part#s and amounts in same column.
View 14 Replies
View Related
May 7, 2012
I have 3 sets of textboxes. The user inputs information and all the nformation for each are consolidated to one textbox(delaycomments.value)
2 of them are controlled by a calendar input. THe user chooses a date and the date is shown in a textbox. Then they enter notes in the the each comment (delay1, delay2, delay3)
The current code below works, however the spaces I used in between still show even if the values are empty.
So, the "-" that is used to separate the dates still shows even if there aren't any dates. And the ": " still shows as well.
If there is only information in delay1, this is what shows in the consolidated box(delaycomments.value)
5/7/2012-5/7/2012: test. -: -:
Is there a way to convert these to an if then statement to make sure the text only appears if there are values in the cells?
Code:
Private Sub Delay1Comment_Change()
Me.DelayComments.Value = (Me.Reason1Start.Value & "-" & Reason1End.Value & ": " & Me.Delay1Comment.Value & " " & Me.Reason2Start.Value & "-" & Reason2End.Value & ": " & Me.Delay2Comment & " " & Me.Reason3Start.Value & "-" & Reason3End.Value & ": " & Me.Delay3Comment & " " & Me.Reason4Start.Value & "-" & Reason4End.Value & ": " & End Sub
View 2 Replies
View Related
Mar 5, 2010
I am trying to consolidate multiple worksheets in one workbook into one master worksheet in the same workbook. Problem is though that the headings in the multiple worksheets are not excatly the same. Ie. some may have one or two additional headings (other than that they should be the same).
How can this be done or is this a manual process of headings alignment before any consolidation can be done?
View 9 Replies
View Related
Jan 19, 2010
At the end of every month I receive a sales report from our ERP system setting out sales quantities by Customer ID e.g. ABC001 and Product ID e.g. FB3000. I need to collect the data for each month and gradually build a report for a 12 month period.
My problem is that each monthly report does not include every Customer ID and every Product ID, it only includes cases where sales quantity was > 0. So as each month's data arrives I need to make sure that my report has all necessary Customer ID and Product ID pairs so I am not missing any sales.
View 8 Replies
View Related