I have seen many threads on how to delete rows with no data in them (empty rows).. but I have a spreadsheet that has large "chunks" of column data separated by random empty cells. (It is like this from earlier manipulation of summing similar cells...)
Some columns do not have any empty cells and some have a many empty cells. I only want to shift the cell directly beneath it up, and only concentrate on a single column at a time.
So my main questions is: How do you delete single cells, in a single column, and shift the data below up?
see attachment below for easier comprehension of what I need to be done. Note that I have around 20 subjects (2 in example) and about 15000 values per subject (5 per subject shown) Basically, I want matching rows to be aligned (see grey) and non-matching rows to be deleted, throughout the 20 or so subjects.
My current project involves sorting a spreadsheet, selecting specific qualifying data from the sheet, storing it into a variable, the pasting the individual values from the list into individual cells on a different sheet within the same workbook. Here is the code I have so far...
Code: Sub Test() '' freeze screen updating to remain on main worksheet Application.ScreenUpdating = False '' move to Avaliable worksheet [Code] ..
When this code runs the first item in the list pastes into Sheet10 A1, but no other values from the list are placed into Sheet10. Previous to this I had been using a variation of this code to push the list into a combobox list within a userform. In that case instead of
Code: ThisWorkbook.Worksheets("Sheet10").Range("A1") = x
Code: Combobox1.list = x
And this worked perfectly; creating a list within the combobox (in fact I can use this modification to interrogate my code to determine if the list is being properly generated, and it is).
I need a macro that if value in column b matches with value in column a, delete it both the value in column b and a and put the deleted value into column c. now my value in my columns is a combination of numbers and letters and it can have this characteristic too: `2076 or `FI7890
I have an issue with being able to process my data i have a text file in notepad that lists a massive amount of values (enough for excel to process if they are listed down a column but not across a row) each separated by a space. As an example here is a small portion of the data.
I know how to import this as text but i can only wither get it all in one cell or across the 1st row. The first row can only display about 16000 values and that isn't enough for my end product to be accurate enough.
So is there any way to import the text file and have it formatted so a each new value has its own row? For example... 81768102 191193210 386225426 110858190 393958997 21773704
Or is there anyway to get the data from my already imported giant A1 cell into the above format?
Added an example of how it looks and how i want it to look. This is how it looks when i open the txt file containing my data in a way that all values stay in the excel sheet. As well as this there is an example of how i want it or rather need it to look.
I've got two workbooks, Workbook1 with a list in column a and Workbook2 with a list in column F. I want to compare the cells in these columns and delete the entire row in Workbook2 if there is a match.
I am trying to come up with the most efficient way to copy data to multiple sheets within the same Excel workbook. The original data exists within one column on a summary sheet (could have up to 500 individual entries). I want to copy each individual entry to a unique sheet (that already exists), but in the exact same cell location within each sheet. I would only want to copy the original data value and not any formatting. Is there an efficient way to do this?
In my example spreadsheet, the original data is on the SUMMARY sheet. Sheets A through J would be the target sheets, with cell B2 as the target location for each of those sheets. My example shows the result of a manual copy paste value process, but I am hoping to automate that.
In the attached example I paste in a report from another system into Sheet2 (rough data layout in example).
In column B in Sheet1 I have tried using Match and Index formulas to try and return only the Local Shipment figures from on Sheet2 for each staff member.
The issue i'm having is that the data in Sheet2 can change based on how long the report is run. There is also no way I can change the way the raw data is set out in Sheet2 as it's an external system.
Basically i'm looking for a formula that isn't locked down to certain cells and can work with data moving up and down columns at different stages. The key data never changes from column A and F in sheet2. But what does change is whether each person has one or both of Sales & Local Shipment data in the reporting. This obviously changes based on what is completed each day.
So I need a formula that matches the persons name in column A in Sheet1 with Column A in Sheet2, then looks for the first mention of 'Local Shipment' below it and returns the cloumn F value which is in the same row as 'Local Shipment'.
I am using Excel 2003. I have attached a data file here. getting the values in Q3, R3 and S3.
Q1 has the number = 1. So I want the cell Q3 to return 2/11/2013 as that is the cell corresponding to the Item1 (value specified in P3) with the value 1(value specified in Q1) in the cell. Basically, I need the date corresponding to cell which has the value of Q1 for the value of P3.
Similarly, R2 must have the value 2/12/2013 and S3 must have the value 2/14/2013 returned.
I am looking for a formula that will satisfy the following:
1) find all the values in column "A" that match 2) In column "G", sum up all the values in "F" that go with the matching values in column "A" 3) For example, in rows 14-16, the values in column "A" match. Cell G16 sums up F14:F16
Excel 2010: I'm working with a sheet where I would like to get accurate results on the make and model of cars sold in a given week. The workbook contains several worksheets each representing weekly sales numbers for different vehicles.
The Make-Models tab has the lists used to create the drop-down selections.
The Sales tab allows one to create an ad hoc report on the total number of vehicles sold, by Make and Model. Cell B2 is named 'SelectedModel' and used in the formula found in column E, Total Sold.
Problem: When I select Honda, for example in B2 of the Sales worksheet then select Accord in cell B3 of the same. The results returned in E2, E3 and E4 are 2, 3 and 4, respectively, instead of 8, 3 and 7.
2 Honda Accords were sold on Monday and 6 on Tuesday of the same week. My formula is only returning the first matched value of 2 whereas I would like it to return 2+6, 8 for week 1. Same goes for other weeks.
Select any other make and model and notice the problem follows. I believe the error is due to incorrect usage of the formula or incorrect formula altogether.
I was after a bit of code to delete the range names on a particular worksheet I thought it couldn't be that hard but have only been able to find this in the archives, unfortunately I get an error when trying to execute it:
Sub Delete_My_Named_Ranges() Dim n As Name Dim Sht As String ' Put in name of sheet where the range is located Sht = "Org Lookups" For Each n In ThisWorkbook.Names If n.RefersToRange.Worksheet.Name = Sht Then n.Delete End If Next n The error I'm getting is Run-Time error 1004, Application defined or object defined error.
I have the following issue. I have a file, which contains about 7 000 columns, each with 8000 rows, mostly filled with numbers (with decimals). But sometimes, numbers will be replaced by "N/A" where a value was not available. What I want to do, is delete columns, where all the rows are just "N/A" to reduce the size my file.
I have a column of data where duplicate records appear, can I get a macro to review the column and delete the duplicate record, I need the line item number to still show although the serial number has been deleted, please see example below-
line_number Serial_number 14FM12A1QWINC-1A 14FM12A1QWINC-1B 14FM12A1QWINC-1C 14FM12A1QWINC-1D 14FM12A1QWINC-1E 14FM12A1QWINC-1F 14FM12A1QWINC-1G 14FM12A1QWINC-1H 14FM12A1QWINC-1I 14FM12A1QWINC-1J 14FM12A1QWINC-1Jdelete serial number in column B, keep line number 1 in column A 24FM12A1QWINC-2A 24FM12A1QWINC-2B 24FM12A1QWINC-2C 24FM12A1QWINC-2D 24FM12A1QWINC-2E 24FM12A1QWINC-2Edelete serial number in column B, keep line number 2 in column A 34FM12A1QWINC-3A 34FM12A1QWINC-3Adelete serial number in column B, keep line number 3 in column A 44FM12A1QWINC-4A 44FM12A1QWINC-4Adelete serial number in column B, keep line number 4 in column A
I'm about to start doing it manually, just wondering if there is a way to use functions in excel to do this automatically:
Here's my situation:
I have one column A, and it has 25 000 email addresses, 1 per each row, so 25 000 rows.
Then i have in another column ''B'' with 3000 email addresses. I need to delete these 3000 email addresses from the master 25 000 list. Is there a way to do it automaticaly?
I imagine if there was a way to set a script to delete values in Column A found in Column ''B''.
Least, I was going to try to copy the delete list and paste to master list, so I would end up duplicates of the emails that are to be deleted and they would appear highlighter with conditional highlighting.
What I need to do is hide the value in an individual cell, dependent on whether a value (any value) has been entered in another cell. I know this must be possible somewhere in conditional formatting but I can't seem to figure it out no matter how much I try!
The table below should hopefully explain exactly what I'm after. I want to hide the value in the balance column (automatically calculated)when no transaction has taken place (ie, there is no date entered in the date column). At the moment this value appears all the time.
I have a excel file which contains dublicate rows. The duplicate rows can be identified based on few cell/column values. I need a macro to delete the duplicate rows when the below condition is satisfied: let us consider row 5 and row 6:
If column 7,12,13,16,17,18,19,23,24,27,28,29,30 in row 5 = row 6 then row 6 has to be deleted. This condition has to be followed for all other rows in the excel used range. Have attached the sample workbook.