Macro Or Formula To Condense Or Consolidate Ranges

Apr 9, 2007

I have a spreadsheet with over 1000 rows of information.

There are two columns FROM_ACCT_NO and THRU_ACCT_NO.

I need to create a macro that will give me a condensed account ranges.

Example the first range would be 2000000 to 2000003.

The next range would be 2000005 to 2000298.

And so on, and so on etc....

View 9 Replies


ADVERTISEMENT

Condense SUM Of VLOOKUP Formula

Dec 22, 2009

Is there a way to make this a bit shorter without altering the result.

IF(OR(AI10="",ISERR(VLOOKUP(AI10,'Q:5yr Branch reviewBalance Sheet[SC2 Apr09 - Mar 10 Actuals.XLS]bze'!$A$8:$CE$79,F8,FALSE))),0,VLOOKUP(AI10,'Q:5yr Branch reviewBalance Sheet[SC2 Apr09 - Mar 10 Actuals.XLS]bze'!$A$8:$CE$79,F8,FALSE))
+IF(OR(AK10="",ISERR(VLOOKUP(AK10,'Q:5yr Branch reviewBalance Sheet[SC2 Apr09 - Mar 10 Actuals.XLS]bze'!$A$8:$CE$79,F8,FALSE))),0,VLOOKUP(AK10,'Q:5yr Branch reviewBalance Sheet[SC2 Apr09 - Mar 10 Actuals.XLS]bze'!$A$8:$CE$79,F8,FALSE))
+IF(OR(AM10="",ISERR(VLOOKUP(AM10,'Q:5yr Branch reviewBalance Sheet[SC2 Apr09 - Mar 10 Actuals.XLS]bze'!$A$8:$CE$79,F8,FALSE))),0,VLOOKUP(AM10,'Q:5yr Branch reviewBalance Sheet[SC2 Apr09 - Mar 10 Actuals.XLS]bze'!$A$8:$CE$79,F8,FALSE))

I initially had a SUMPRODUCT formula that looked like this:
=SUMPRODUCT(--(ISNUMBER(MATCH('Q:5yr Branch reviewBalance Sheet[SC2 Apr09 - Mar 10 Actuals.XLS]bze'!$A$8:$A$79,F1:F5,0))),'Q:5yr Branch reviewBalance Sheet[SC2 Apr09 - Mar 10 Actuals.XLS]bze'!$Z$8:$Z$79)

However, I turned the page into a dynamic page where the month can be selected from a drop down menu and changes the column index number in Cell F8. And because VLOOKUP can give me an error result if there is a mismatch, I used that combination of Blank cells or ISERR. In the range AI10:AM10 there should be three lookup values (sometimes only one or two), and empty columns between the three values columns. I also will use this formula like a 1,000 times so, arrays is not advisable.

View 3 Replies View Related

Consolidate Ranges From Multiple Worksheets

Jan 4, 2008

What I am attempting to do is take data from two columns on multiple sheets within the same workbook file and consolidate them using a macro. (End result would be a sum of the numbers associated with the adjacent name calculated using all the sheets data--as some names would appear on other sheets as well).

The first column is a list of names and the second is a list of numbers. I have titled the columns the same on each sheet and placed them in the same location. However, the number of rows of data each sheet contains will vary per sheet. (For example: one sheet might have 10 rows of names while the next might have 15 or so). Also, each time this file is to be used, there might be a differing number of sheets, as users add or remove a sheet.

Is it possible to create a macro that can scan the all the varying sheets's data and output a consolidation?

I have been able to create both a pivot table and use the consolidation feature by selecting the date ranges manually, but I am lost on how to automate this for other users that have very little excel knowledge.

I've uploaded an example file in case my explanation isn't clear.

View 7 Replies View Related

Consolidate Different Ranges Into Pivot Table

Feb 24, 2008

find the data Attached. I have 3 work books which contain logged, issued and cancelled data stored in different work book. There are two common fields like Location & segment in all the work books whcih are common. I want the data in a sequence by which consolidation should happen for location and the segemnt should be a page field and datas are arranged accordingly. I am attaching a work book.
how to do this in multiple consolidation of ranges in pivot or any other way.

View 7 Replies View Related

Consolidate Ranges From Several Worksheets Into A Summary Worksheet

Sep 23, 2006

I need the correct syntax to consolidate ranges from several worksheets into a summary worksheet - all in the same workbook. I am building the Array on the fly, and I keep getting errors. (Subscript out of range being the most recent).

The code now is opening only one workbook so I can keep it simple. It iterates through the sheets collection, and builds the array.

Private Sub cbConsolidateToRollups_Click()
Dim MyArray() As Variant
Dim Source As Variant
Dim SheetNames As Variant
Dim SingleQuote, DoubleQuote
SingleQuote = Chr(39)
DoubleQuote = Chr(34)
'set the directory to Rollups
ToPath = Application.DefaultFilePath & "Cost Tracking" & "Rollups"
ChDir ToPath ....................

View 9 Replies View Related

Consolidate Ranges From Several Worksheets Into A Master Sheet

Jan 29, 2008

I am trying to consolidate a specific range on 8 similar worksheets into a master list through the use of a macro, and the workbook has a total of 26 worksheets. Details:

The worksheets to be consolidated are named: AR, CM, JR, Trader1, Trader2, Trader3, Trader4, and Trader5. The range to be consolidated are: A6:F26, of each of the above worksheets. Currently, A6:D21 are linked through an array from the worksheet "Index". This is because there are often changes to the names listed under "Trader/Backup Trader", or there may be additions/deletions of a row.

Right now, I have set up a sheet called "Traders List", using arrays to link the data on the 8 different sheets. The only problem is, if there were a change in the "Index" worksheet, I would have to manually drag out each array, for these 8 different worksheets in the "Traders List" sheet. Is there a way a macro can be written such that it is automatically linked to each range (A6:F26) on those 8 worksheets? Is it possible to only show rows that are non-zero?

View 2 Replies View Related

Programming A Macro To Select Row Ranges Based On A Formula

May 2, 2009

I'm building a macro thats copying 4 rows of data at a time from a spreadsheet (has 1500 rows of data total) and transposing it to a master spread sheet. There are blank rows in between each entry (the data source I'm using isn't clean), so how can I either have the macro jump to the first row it finds with a value, copy rows until it stops finding a value, paste+transpose into a new document and then repeat the process throughout the document.

If thats too complicated, a macro that finds rows based on a formula would work as well. E.g. Start at row 5, copy+paste+transpose 5-8, start at row 11 (5+6), copy + paste+transpose 11-14, start at row 17 (x+6) ...etc... Here's the code I have developed thus far:

View 4 Replies View Related

Consolidate Multiple Spreadsheets (consolidate All The Data)

Oct 17, 2008

I have a workbook that has multiple tabs and need help trying to figure out how to consolidate all the data. I find myself spending hours doing this manually each day.

Here is what I have:

Workbook has tabs labeled....Wk1_Mon, Wk1_Tues, Wk1_Wed, Wk1_Thurs, Wk1_Friday, Wk1_Summary......and repeats all the tabs through Wk5....then I have a Month_Summary tab.

I have 25 users with 25 seperate workbooks each with individual information on each workbook.

I am trying to get a sum of all the data on the Month_Summary tab for each month for each user and as well as a sum of the Month_Summary tab for all 25 users.

The end result I am looking for is to get a Yearly Sum of all the Month_Summary Tabs for all 25 users as well as individual yearly summaries for each users.

I have one main Folder which contains 25 folders (one for each user). Under each user folder there is a seperate Workbook for each month.

View 2 Replies View Related

Looking To Condense Rows

May 29, 2009

I've got a worksheet with a 1-row gap in between every two rows, and I'm hoping to delete those gaps. In the attached spreadsheet, worksheet 1 (Initial) is what I'm starting with, and worksheet 2 (What's wanted) is what I hope to achieve.

Now obviously, if it were only 10 lines of actual info, I'd just cut/paste. But, I've got ~950 rows of info.

View 2 Replies View Related

Formula To Consolidate Marks

May 22, 2012

I have three worksheets in which the marks are entered.Now i want to consolidate the marks like

1 in sheet1 2 in sheet2 3 in sheet3 now i want to omit the min(1) marks and add/average of remaining two((2+3)/2)*100.

Is there any formula for this!

View 2 Replies View Related

Consolidate And Sum Macro

Sep 14, 2006

I have a Spreadsheet that has about 150 rows filled with information. Column A (Part Description) Column B (quantity). Certain parts are repeated multiple times. I am trying to come up with a Macro to assign to a button that will do the following.

1.Grab every part on the sheet that has a Quantity in Column B and insert it in Sheet 4 starting in row 15.

2. Instead of having duplicate parts i want it to sum the quantities of all the matching parts.

Right now i am just using a "Hide 0 Quantity" Macro but it is still a pain.

View 4 Replies View Related

How Do I Condense A List To Have No Blanks

Dec 27, 2006

I think this must be fairly easy to do. I've found various posts here and tips elsewhere that indicate ways to do this, but I've not found one I could get to work.

I have a column with numbers in it. These numbers are formatted as TEXT (because they are 001, 002, etc). This list is generated by pulling the unique values from another column where these numbers are repeated.

In the following example, B has the original data. H has the same data with just the unique values. That is how far I have got. What I now want is what you see in Column I (the unique values with NO BLANKS in it).

B | H | I |
-------------------------------------------
001 001 001
001 002
001 003
002 002
002
002
003 003
003
003

I am aware that I can use an Advanced Filter (not that I manage to get that to work without it generate an erro). But this is not what I want, as I'd like the data in I to be dynamically generated such that if more unique values are added to B then H will reflect this (it does that at present) and then I will also reflect this.

View 9 Replies View Related

Condense 11 Rows Of Data Into 4

Oct 20, 2006

I have attached a workbook where the data in columns D:N is collected from another source using Vlookup. In Row 5 There are three numbers 60, 74 & 93. I need a way of condensing those 11 rows down and getting those numbers to appear in a summary for the week (the yellow box) on the right.

View 6 Replies View Related

Formula To Consolidate 2 Column List?

Aug 14, 2014

I have 2 columns, I need to consolidate one of the columns separated by a character.

For example, I need to turn this.........

Part# Part #2
1AMAC330221132609
1AMAC330222724908
1AMAC330222724977
1AMAC3303419188468
1AMAC33034F6ZZ-19C836A
1AMAC3305107-0442A
1AMAC330511911006
1AMAC3305119188473
1AMAC33051F0TZ-19C836-A
1AMAC33051FOTZ-19C836-C

into this..........

Part# Part #2
1AMAC330221132609*2724908*2724977
1AMAC3303419188468*F6ZZ-19C836A
1AMAC3305107-0442A*1911006*19188473*F0TZ-19C836-A*FOTZ-19C836-C

View 8 Replies View Related

Macro To Consolidate Workbooks?

Nov 13, 2013

I need to create a macro that pull in data from various spreadsheets, all with the same layouts, but with different file names and different worksheet names, into on master worksheet. The data should drop in after the title line and then continue on after each data set has copied.

View 3 Replies View Related

Formula To Consolidate Multiple Values From Different Sheets?

Feb 9, 2014

I have attached an example of a Trail Balance workbook that shows monthly tabs and a summary tab. Column A&B is just a small sample of the Account #'s and Account description for each month. Obviously i can just Sum the different sheets on the summary page. However, the issue i have is that on the complete detailed sheet (over 200 rows/accounts down) that i have to complete columns A&B don't match up exactly and have added accounts in them or removed. So i need a way to consolidate all sheets in to a summary page making sure all accounts are listed on the summary page along with values summed into the various columns.

View 3 Replies View Related

Macro: Consolidate Data From 10 Worksheets To 1

Aug 20, 2009

I am trying to take a workbook with 10 worksheets and have the contents copied and pasted into a new worksheet without any extra blank rows onto a new spreadsheet. Does anyone know how to achieve this? The purpose is to copy the information off each of the 10 worksheets and be able to use the consolidated information for pivot tables.

Important Facts:

- Each worksheet starts with data in cell A7 and ends at BL7

- The number of rows on each worksheet is inconsistent (e.g. one sheet ends at row 12 another at row 101)

- The columns have uniform titles and data below

View 9 Replies View Related

Macro To Consolidate Various Workbooks Into Onesheet

Oct 12, 2009

I have to maintain a weekly tracker for my team. 13 team members will send me thir trackers every trackers every week and I need to consolidate all of them into 4 weekly and 1 monthly tracker. is there a macro which can facilitate this compilation of 13 excel workbooks into one new worksheet? all worksheets will be similar i.e will have same # of columns but can have different # of rows.

View 9 Replies View Related

VBA Macro To Consolidate Several Worksheets Into One & Print

Apr 11, 2009

I used a Macro from here that creates one worksheet from several then prints and deletes it. However the Macro doesn't carry over my column/row size formats. Is there a fix?

View 2 Replies View Related

Consolidate Rows That Have Formulas In Them But Blank With Macro

Apr 3, 2014

I am looking for some VBA programming that will allow me to use 1 button to consolidate rows (delete them). The problem I am running into is that the rows I want to delete have formulas in them so I can use "find all blank cells & delete" type of macro.

Capture.PNGCapture1.PNG

Attached are a couple of brief images on a small scale what I am looking to do.

I want a user to be able to have this sporadic list of choices, consolidate them so the are all one right after each other, then export to a word file for editing later on.

View 1 Replies View Related

Macro To Consolidate Data From Multiple Sheets To One

Feb 11, 2014

I have the following macro, however I am struggling to make it work on my file:

[Code] .....

I have attached my sample. essentially i have the dec, jan etc month tabs to consolidate into the summary sheet. i would like the data to be dumped from both sheets into the summary sheets. i will be adding a feb, march, april etc tabs as the year progresses.

I would also like column A in the summary sheet to repeat the name of the sheet the data is being retrieved from.

Attached File : sample macro_issue01.xlsm

View 4 Replies View Related

Macro To Consolidate Data And Paste It Into Another Sheet

Feb 20, 2014

I Need to write a macro for the following example.

In sheet 1.

It has data as below

HTML Code: 

Sl.no Name Task week hoursworked
1 SAM Teaching 1 2
2SAM Teaching 1 2
3 SAM Teaching 1 3
4 SAM Teaching 1 1
5 SAM Teaching 1 5

I want to consolidate the data as like below and to paste it in sheet2.

HTML Code: 

Sl.no Name Task week hoursworked
1 SAM Teaching 1 13

If the Name, Task and Week columns are same then macro should do sum the hours and make it into a single line as mentioned above.

View 5 Replies View Related

Macro To Oepn Multiple Txt Files And Then Consolidate

Jun 18, 2009

I have twenty individual txt files. I want excel to open each, sort them according to certain parameteres, and then i want excel to populate all 20 of these into 1 workbook with 20different worksheets. Each worksheet tab to be called by either the same name as the txt file or a name established using a form. The twenty files can always be called the same name, and rarely will i will add a new file or will I remove a file. But sometimes, i may only want to run a couple files....

View 9 Replies View Related

Consolidate Macro Elimination Duplicate Statements

Dec 21, 2009

how this code can be condensed getting rid of some of the duplicate coding?

Everything is duplicate except for the For i = 1 To x part as the formula that is added is changed from sheet to sheet.

View 10 Replies View Related

Macro To Consolidate 20 Workbook Sheets Into One Sheet

May 12, 2011

I have 20 excel files each having more that 1000 records, the format and header for all the files are same.

I need to consolidate all these 20 different files into one excel sheet, having only one header row at the top. Since I need to perform this step frequently, I am planning to automate it.

View 9 Replies View Related

Condense Code To Make More Efficient And Run Until Blank Cell

Apr 10, 2014

Any way of shortening the attached code. The first part 'Sub Loop1()' works great but I can't figure out how to shorten the second part. As you can see the distance between columns is always consistent i.e. add 5 columns to find the next outcome to work out the next result. Ideally I wanted to somehow loop through the next 5 columns again and again until the cell is blank.

[Code] ......

View 2 Replies View Related

Macro To Find Duplicates And Consolidate Certain Relative Cells?

Feb 5, 2014

I am currently working on a project where i am given a sheet that typically has several hundred rows of data and not seemingly organized in any manner. This document has 6 columns, and my main focus is a range of dates (in MMM-YYYY form) from around early 2000 to now that can have duplicates. The dates(Column C), have corresponding Usages (Column D), and Costs (Column F) and I need to add these values together and remove the duplicate months so I only have one Usage and one cost Per month.

My spreadsheet has 6 Columns of data, and varying number of rows. Currently, since I receive the numbers in an unorganized fashion, my macro organizes the data into a table and then sorts the table be date so I have the oldest dates first and the duplicates are adjacent. There may be varying numbers of duplicates, though typically 0 to 4.

View 4 Replies View Related

Excel 2007 :: Macro To Consolidate Multiple Worksheets?

Jul 6, 2012

I have a workbook with 4 sheets and with sheet 5 as a "consolidated" sheet. I have to create the macro, which will on a daily basis copy the populated data from those 4 sheets and paste into the sheet 5 (same workbook). The data in the Sheet 5 should be pasted from row 2 below each other.. Row 1 will be the headings and shouldn't be replaced. The data in all 4 sheets should be copied from row starting 37, columns C to BA but it will end with different row numbers. note that columns A & B are populated but shouldn't be copied.

View 7 Replies View Related

3-D Formula Syntax: Consolidate Certains Cells In 30 Identical Worksheets In A Workbook

Jun 7, 2006

I want to consolidate certains cells in 30 identical worksheets in a workbook. I understood that if I use the 3-D formula method, that I could insert new identical worksheets into the range of worksheets and the consolidated totals would update. Is that correct?

I cannot seem to get the syntax to work. When I read the Excel Help file it gives an example of =sum(sheet2:sheet7!B3) but I don't understand how Excel could answer this ( if the worksheets were named Sheet2,sheet3,sheet4 etc up to sheet7)
In my example, the formula is clearly wrong. Why does it not use the single quotation marks '? I cannot find references to the proper syntax anywhere. I have your training program but this does not spell it out for me either. If I use Data>Consolidate then I have to labouriously do this for each cell that I want to consolidate.

View 2 Replies View Related

Finding Macro That Will Combine / Consolidate Rows When Cells From 2 Separate Columns Match

Sep 26, 2013

I need a macro that will combine/consolidate rows when cells from 2 separate columns match. example...

beginning:

Column A column B column C column D column E
row 1 Seminole 80 unleaded 1064 100100
row 2 Seminole 36 clear dsl 825 100100
row 3 Seminole 80 unleaded 1101 100100
row 4 Seminole 30 dyed dsl 3421 100100

This is what I need the macro to do:

Column A column B column C column D column E
row 1 Seminole 80 unleaded 2165 100100
row 2 Seminole 36 clear dsl 825 100100
row 3 Seminole 30 dyed dsl 3421 100100

View 2 Replies View Related







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