Aggregate Data / Remove Empty Columns
Apr 16, 2014
I have a worksheet in which rows have empty column values, e.g.
Name,Column1,Column2,Column3
Bob,Apples,<blank>,Peaches
Joan,<blank>,Oranges,<blank>
Ted,Apples,Oranges,Peaches
Note: The commas above indicate separate columns.
I'd like a formula to evaluate these results and strip out the blanks. Results should look like this:
Bob,Apples,Peaches
Joan,Oranges
Ted,Apples,Oranges,Peaches.
View 3 Replies
ADVERTISEMENT
Oct 24, 2012
Using the following code to remove empty rows based on whether a specific range of columns is empty. The code works if the cell has a zero, but not when the cell is blank. An example of the data is attached.
VB:
Public Sub DelRows2()
Dim Cel As Range, searchStr, FirstCell As String
Dim searchRange As Range, DeleteRange As Range
[Code].....
View 1 Replies
View Related
Jan 31, 2014
I have a table into which I paste values to ColumnA. The other columns have formulas. The number of values to be pasted varies. When the number being pasted this time is less than the number pasted last time, empty rows remain above the valid data after sorting, which is undesirable. I want to get rid of those rows just before (or after?) pasting the new values. The way I see it is I want to delete all but the first data row of the table so the formulas remain untouched in the first row. Then, as new values are pasted the formulas replicate automatically.
Sample file is attached : Sample.xlsm‎
View 14 Replies
View Related
Jan 30, 2014
Just wondering the better way to 'get' a score for some data.
For example, I have a data set where there are a number of records are interrogated for validity across X rules. The returned count of errors of course could include one record for all X tests.....
what is the better way of weighting these to get one score
Please see attached example : XL4M.xlsx‎
View 1 Replies
View Related
Mar 2, 2012
I am using Excel 2010.
I have a large spreadsheet with brands and volumes.
Many of the brands run the same processes, so I can consider them as one.
For example:
Brands - Volumes
A--------10
B--------16
C--------18
D--------20
E--------16
Imagine that A and C are basically the same. So the value that I really care about it (10 + 18) = 28
B and D are the same, so I care about (16+20) = 36
The output I need is:
A&C - 28
B&D - 36
E --- 16
Can I use SUMIF to basically say: Sum this IF =A OR or =B ?
Can I apply an IF function with concatenate to merge the A's with C's and B'd with D's?
The spreadsheet is large and this process will apply to many different groups of brands.
View 2 Replies
View Related
Mar 6, 2014
I've created an excel workbook to automatically create a report for my work. All you have to do is enter the data into the "DATA" worksheet. Easy. Only problem is that someone can easily ruin it if they try to run it when the "DATA" sheet is empty. I figure that if I can get two columns hide when it's empty and that would solve my problem. I've tried several VBA codes, but they don't work. Also, everything except the "DATA" sheet is protected to prevent accidently changes. This is the latest code I've tried:
VB:
Private Sub Worksheet_Change(ByVal Target As Range)
If Target.Address = "DATA!$P$5" And Target.Value = 0 Then
ActiveSheet.Unprotect ("password")
[Code].....
View 4 Replies
View Related
Mar 25, 2014
I am trying to populate the 2 tables from excel to word. I will be getting the excel file with tables in various sheets. One sheet consist of 2 tables that will be inserted to one word document. So if there are 2 sheets then I will have the tables inserted in the 2 word document. In the excel sheet I have attached, there are 2 sheets with tables in each of them. I have written the code to copy and paste the table to word doc from (general) range A1:G4 (Table 1) and A9:H18 (Table 2) that has empty rows and columns selected. But there are empty rows and columns inserted since the table range is not same sheetwise. I would like get the empty rows and columns deleted in the word table.
Find the attached sample excel sheet and the word documents.
DeleteEmptyRows(Sample).xlsx‎
Sheet1.doc‎
Sheet2.doc‎
View 2 Replies
View Related
Apr 4, 2013
This is a very SMALL sample of the data I need to sort through. We have been using filters but the data is growning and becoming far too time consuming using the filter method.
The output I am looking to achieve is something like this, (any format is fine; whether in rows or columns)
SVR1
1.99.99.254
(2) CAT I (display how many CAT I for SVR1)
CAT I: 2011-B-44
CAT I: ST-5546
(2) CAT II (display how many CAT II for SVR1)
CAT II: 2011-B-52
CAT II: 2011-A-21
SVR2
2.5.2.333
(1) CAT I
CAT I: 2012-E-55
(1) CAT II
CAT II: 2011-A-21
COLUMN A, varies from SVR1-SVR1400 (cointains duplicates)
COLUMN B, IP matches SVR name (contains duplicates)
COLUMN C, will be either CAT I, CAT II, CATIII
COLUMN D, will contain duplicates
I have some history of using formulas and nested formulas but this one is really throwing me for a loop. It feels like Inception to me and I'm not really sure where to start!
A
B
C
D
SVR1
1.99.99.254
[Code] .....
View 9 Replies
View Related
Jan 26, 2013
How would the attached file code be ammended to remove a blank row and then move all remaining rows below up one ?
Example: Open the attached file (Transport Log version 1). If you double-click in cell "X10" (for patient Abe Lincoln), the data for row 10 will be removed and written to Sheet #2. Closing the file and reopening, row 10 is empty with other rows below remaining. The goal is to move the data in rows 11 and 12 (and any subsequent rows that may be entered below those) up one row.
The above method would be an indication to users making subsequent entries to always use the first empty row below all existing data.
View 1 Replies
View Related
Oct 2, 2013
I'm needing to import a .csv into another software and it needs the fields formatted a specific way.
The spreadsheet I've been given has columns for different departments and an X to denote if they fall under it. As an example.
Name
Sales
OHS
HR
Joe Bloggs
X
X
Bob Smith
X
John Doe
X
X
For the import into this software it needs the fields like this, the name in the cell has to be exactly the same as the column header.
Joe Bloggs
Sales
HR
Bob Smith
OHS
John Doe
OHS
HR
Is there an easy formula to scan the row, if an X is found substitute the X for the column header text and if no X in a cell delete it and shift all cells to the left within the row ?
The substitution is quite easy and I've played around with lookup or if statements to quite easily do that but the bit I'm having trouble sorting is removing any unnecessary cells in that row so only cells with data are listed in the row.
View 1 Replies
View Related
Nov 9, 2009
I have an array MyArr() in excel.
Its length is from 1 to i where i takes dynamic value from varibable.
Now the problem is MyArr(1 to i) has some empty values.
Like say: if i = 5 then
MyArr(1) = "a"
MyArr(2) = ""
MyArr(3) = "b"
MyArr(4) = ""
MyArr(5) = "c"
How can I get rid of those empty elements so that MyArr() becomes only three elements long and then display them in a range of three cells.
View 9 Replies
View Related
Nov 9, 2009
I'm stuck with an array problem in excel. I have an array MyArr() in excel.
Its length is from 1 to i where i takes dynamic value from varibable.
Now the problem is MyArr(1 to i) has some empty values.
Like say: if i = 5 then
MyArr(1) = "a"
MyArr(2) = ""
MyArr(3) = "b"
MyArr(4) = ""
MyArr(5) = "c"
How can I get rid of those empty elements so that MyArr() becomes only three elements long and then display them in a range of three cells.
View 9 Replies
View Related
Oct 5, 2011
Is there a way of removing empty cells from a range whilst preserving the top row? As an example, I want to change this spreadsheet...
a b c d r
rrr
rrr
[Code]....
View 3 Replies
View Related
Oct 1, 2003
it is possible to hide empty cells when using a ComboBox in a UserForm?
I have named the range from where I select my data and used the RowSource (ComboBox Properties window) to determine the selection. This works perfectly but I have many lines that are empty and I would like to know if they can be hide, or not selected, in the combobox.
View 4 Replies
View Related
Jan 14, 2013
how too remove empty cell from excel sheet
View 9 Replies
View Related
Oct 24, 2008
Is there way i can have a macro attatched to a button that when clicked, will copy BX:BX on sheet1, remove all the blank cells and put it on D:D on sheet2. Next time it is clicked, it will put BX:BX on to the next available column after removing the blanks and so on, filling a column at a time on sheet2?
If the above is easy, it would be really good if it could paste into columns until it reaches column H and then go back to D again but paste below the data already there, then E, but below, etc. I think though that the last bit is asking a bit much and is just cosmetic and easier to print, so dont worry too much.
View 9 Replies
View Related
Mar 12, 2008
i have 10 columns, the last one is an amount. What i'm looking for is to aggregate the rows with the same key(columns 1 to 9) just into one and get the summation of the related amounts in the column 10.
Example:
row1: a b c d e f g h i j 100
row2: x x x x x x x x x x 100
row3: a b c d e f g h i j 100
row4: a b c d e f g h i j 100
the desired output is:
row1: a b c d e f g h i j 300
row2: x x x x x x x x x x 100
View 5 Replies
View Related
Jul 2, 2009
To go through all the database files (.txt format) in a designated folder in order to update an Excel Sheet with the required information from those database text files. Then to summarise the information in a simple table.
The text files are individual Market Exports from a game I play, and are titled as "Region-ItemType-YYYY.MM.DD HHMMSS.txt"
eg. "Heimatar-Tritanium-2009.07.02 133353.txt".
I need to know how to sift through the text files to find the most recent one with matching "Region-ItemType" parts in the file name, and refresh the Excel Sheet with the updated data.
After that, I need to be able to combine all of the cheapest sale prices for each item, with a minimum amount for sale (differs per item), while also being limited to location the item is being sold at, into a single sheet of the important information I wanted to extract in the first place.
At the end of the whole process, I need to have a single Excel Sheet with every different item's lowest price for each different place, displayed in a table I can use to make formulas from.
So if I have an export from a place called "place1" and one from "place2", looking at the same item called "item1", I should have two rows of tabulated data, one for each place's lowest price. And this should update at the touch of the "Refresh All" button, or... However you'd have to do it
I have attached a copy of one of the database text files.
View 11 Replies
View Related
Jan 10, 2008
Aggre ABC1Brand Sales 2A5 3B 2 4C7 5A1 6D1 7 8Above are my data 9 10Brand Sales 11A6 12B 2 13C7 14 15Above is the result I want. 16 17 Excel tables to the web >> Excel Jeanie HTML 4
View 9 Replies
View Related
Jan 31, 2014
I run a golf society and need to set up a golf aggregate sheet that will allow me to enter the players weekly scores and the sheet will then look for the lowest score entered for each player and replace it with their score of this week.
View 13 Replies
View Related
Dec 8, 2008
I have column E listing all of the favorites and column G the underdogs, each row represents one game, there are 34 all together. I want a formula to pick the team based on a random generation. That part i have....
=choose(randbetween(1,2),e7,g7)
but here is the rub.
I only want the total number of underdogs to be 20% and the favorites to be 80% of all of the picks.
I am not sure it can be done as each formula must look to what the other formulas are doing...aside from it being circular i think it just impossible or i am not as advance as some of you.
View 14 Replies
View Related
Jun 16, 2013
I have a list of employees and their e-mail addresses. There is also a column denoting whether they should be part of an email distribution list or not (if yes, denoted by an asterisk).
I need to aggregate all of the asterisked e-mail addresses in one cell. It also needs to be "active", i.e. having an IF statement for whether or not it has the asterisk and therefore should be included. Last requirement: the addresses need to be separated by a semi-column, then space (for easy copy and paste into Excel) like this:
name@email.com; name@email.com, etc.
View 1 Replies
View Related
Oct 17, 2009
I am trying to create a single cell formula that returns the min value of an array returned from a vlookup function. This is part of a more complex solution that I am trying to implement, but I think I have narrowed my problem down to this issue, so I have created a very simple example to demonstrate.
Cells A1 to B5 contain a lookup table:
table.tableizer-table {border: 1px solid #CCC; font-family: Arial, Helvetica, sans-serif; font-size: 12px;} .tableizer-table td {padding: 4px; margin: 3px; border: 1px solid #ccc;}
.tableizer-table th {background-color: #104E8B; color: #FFF; font-weight: bold;}
LetterNumber D4 C3 B2 A1
Cells A7 to C8 contain the input values:
table.tableizer-table {border: 1px solid #CCC; font-family: Arial, Helvetica, sans-serif; font-size: 12px;} .tableizer-table td {padding: 4px; margin: 3px; border: 1px solid #ccc;}
.tableizer-table th {background-color: #104E8B; color: #FFF; font-weight: bold;}..................
View 9 Replies
View Related
Aug 5, 2009
I have a book with 250 worksheets, with one cell of data per sheet. It is the same cell in every sheet (C7). I need to somehow aggregate all of this into one column on the first sheet, 250 rows.
View 5 Replies
View Related
Jul 4, 2014
I have a database file where users name can be located in 2 neighbor columns. Against each user name (in next 2 cells on the right) there is a evaluation (good or bad).That database will be growing and new additions will be added each month. That means one user can appear several times on a different row with different evaluation.
In the same file I have a separate sheet where I need after running a macros to have aggregated list of users (in one column) and against each user I would like to see how many how many good and bad score he have. It will be good if users are sorted in alphabetical order.
I am providing an attachment with example file.
View 2 Replies
View Related
Sep 26, 2013
I need to write a VBA code to remove the value of the cells in column B if the value in column A is empty. In my excel sheet, the user will paste hyperlinks in column B. If any link does not meet certain conditions, the cell in the same row in column A will be empty.
I want to have a change event so that after pasting links, it automatically deletes the links from the cells in column B if the cell in column A is empty
View 5 Replies
View Related
Jan 14, 2013
I am using the following code to find an emtyRow, but I actually need to find an emptyRow and test all the cells of the rows from A thru O to insure that there is nothing in any of the next emptyRow. How would I change the code?
VB:
Private Sub SubmitButton_Click()
Dim emptyrow As Long
'Make sheet1 active
Sheets(1).Activate
[Code] ......
View 5 Replies
View Related
Apr 15, 2014
I have code which will hide columns L to AA if cells are empty. It works fine.
I want to modify it to consider rows 3 onward down. It means even if rows 1 & 2 are populated and row 3 onwards down are empty, then it will hide it.
I tried but it is not working .....
View 3 Replies
View Related
Jul 3, 2014
I am trying to hide columns in a range, "P8:ET1087" but it isn't working. After I autofilter a value, every row will be hidden except for the rows where the value is found. This is always 6 rows, won't be more or less.
The 6 cells in every column are the same and contain from 1 to 6:
Text
Text
Date
Number
Text
Date
What I am trying to do is to hide the column if all cells in that column are blank/empty after it's autofiltered. That for the 135 columns, from P to ET.
I was messing around with the following code:
[Code] .....
But it doesn't seem to work.
View 4 Replies
View Related
Mar 23, 2014
I have this code to look into the "find" match in Column A, and then search to the right for the next columns empty cell and update data. but it seem like the code can only manage to offset 1 and update data to Col B, instead of find the next empty cell to update data.
Code:
Dim vFind1 As String, vFind2 As String, rFound As RangeDim bFound As Boolean
vFind1 = Me.CBSupplier.Value
vFind2 = Me.CBProducts1.Value
Set rFound = Sheets("Main").Range("A:A").Find(Me.CBSupplier.Value, LookIn:=xlValues)
[Code]...
View 2 Replies
View Related