Delete Data From Particular Column
Mar 30, 2007
i wrote the below which deletes few data from a particular column, but then its not working when the data increases, i mean yesterday i had data upto 12000 columns and today i had more than this....still macro deleted the same as it did yesterday........is there way where its the last filled row and deletes the data present in the column P.
Sub Deleteddata()
'
' Deleteddata Macro
' Macro recorded 3/30/2007 by kaliappk
'
Selection.End(xlDown).Select
Range("O65536").Select
Selection.End(xlUp).Select
Range("P14842").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.ClearContents
Range("P14841").Select
Selection.End(xlUp).Select
Columns("O:O").Select
Selection.Copy
Columns("P:P").Select
Selection.PasteSpecial Paste:=xlPasteFormats, Operation:=xlNone, _
SkipBlanks:=False, Transpose:=False
Application.CutCopyMode = False
Range("O1").Select
End Sub
View 9 Replies
ADVERTISEMENT
May 29, 2014
I have set of data Pasted in 4th row, in the top row 44 columns values assigned i want move data from set of data to different column among these 44 columns
Like "Service Order ID" is 1 column in set of data ,it move to second column of top row
Some of column need to delete. (Service Order Type,Service Order Description,Created By,Status,Contact,Expected Delivery Date,
Creation Date,Priority,Net Value,Currency,External Reference,Reference Date)
I want Get output result in same sheet (Actual).
View 3 Replies
View Related
Mar 28, 2014
I need to find the data in the sheet SKU & match it to the data in import_215 column F if it matches then delete the entire row (see Attachment SKU3)
View 12 Replies
View Related
Jun 10, 2009
I have 1000's of columns of data to go through, I just need to visually inspect the data and then delete any column containing irregular data. At the moment; I select a section of the first column of data and insert a column chart for that data. I then need to change the source of the chart data to that of the next column, to do this I click on the data within the chart and it will show the data on the worksheet that I have selected by surrounding it in a blue box, I then click on this box and drag it to the next column of data. Clicking on the blue box (which sometimes I miss, and I then have to go back to the chart to activate it again) and dragging it to the next column is getting annoying, especially as I have sooooo much data to go through. Does anyone know if there is a shortcut key for this, or how I could write a macro to do this?
View 9 Replies
View Related
Nov 7, 2008
What im trying to do is to be able to delete the row and shift cells up if there is data in column E.
I.E lets say e45 has data in it I then need row 45 deleted and rows shifted up.
Also is there anyway I can create a macro that can do this but password protect it.
View 9 Replies
View Related
Jul 28, 2013
with deleting duplicate entries in a spreadsheet that contains two names, a code number and a date. All rows with a duplicate number in column “B” should be deleted. Write a micro code? I have a few thousand of entries that need to be knocked out.
A sample file is attached : Example.xls
View 5 Replies
View Related
Nov 12, 2013
I have a spreadhseet that has rows with headers, blanks & total lines throughout that need to be deleted. There are also about 48 rows of data at the bottom that are not needed.
The row numbers will be variable each time the report is run. I need the macro to find the last row of data in column A, use this as the last row in the range and delete all rows above this unless there is numbers 1 to 12 in column J.
View 9 Replies
View Related
Jul 23, 2007
We have a client that provided us with a text file that we imported into
Excel. Rather than have the entire record in one row, they have the record
in 4 rows.
What I need a macro or something to do is move award 2 award 3 and award 4 into the same row and after doing this delete the other rows.
Below is an idea how this looks.
1JohnSmithstreetcitystateZIPaward 1
2JohnSmithstreetcitystateZIPaward 2
3JohnSmithstreetcitystateZIPaward 3
4JohnSmithstreetcitystateZIPaward 4
5BillJonesstreet2city2state2ZIP2award 1
6BillJonesstreet2city2state2ZIP2award 2
7BillJonesstreet2city2state2ZIP2award 3
8BillJonesstreet2city2state2ZIP2award 4
What we need for our data to work is:
1JohnSmithstreetcitystateZIPaward 1award 2award 3award 4
2BillJonesstreet2city2state2ZIP2award 1award 2award 3award 4
View 9 Replies
View Related
Mar 20, 2014
Is there a way to delete any text or formula from an entire row, based on column A? In my spread sheet I have multiple rows where column A is blank, but column's F, G, and H have formulas in them. I would like to use VB or any other method that would be best to clear the contents of all the rows where column A is blank.
View 6 Replies
View Related
Nov 17, 2006
I've got this macro which works well, but I have to edit it to change the column I want to check for dupes. I don't mind doing that, but now I have to share the macro with someone who is not comfortable changing the references in the code every time they run it.
As it is it checks column G:G (7) for dupes and deletes the row. Good.
I'd like for it to do the same thing, but for whatever column the active cell is in.
I can use this:
Col = ActiveCell.Column
in place of the "7" in the With Range part
but I don't know how to replace the "G1:G".
Sub DeleteDuplicatesColumnG()
With Application
.ScreenUpdating = False
.EnableEvents = False
View 9 Replies
View Related
Jan 13, 2009
I have a spreadsheet that has thousands of rows of data with maybe 6 columns.
I would like to remove the duplicate rows but the problem I am facing is that I would like to use column A as the criteria.
There are some duplicates in column A but the issue is that the data in column B, C, D, etc may not be the same for each duplicate.
Easier to see in this image:
http://img127.imageshack.us/img127/6364/datajv6.jpg
So A1 is the same as A6
A1 has data in B1 and C1, no data in D1
A6 has data in B1, C1 and D1
I need to delete either row A1 or row A6, it is irrelevant which row it is but one of them has to go.
View 2 Replies
View Related
Nov 29, 2006
How can I delete an entire row based on seperate column data? Example: I want Excel to look at cell A2 and cell E2. If the values are the same I want Excel to delete row 2.
View 4 Replies
View Related
Nov 7, 2012
I would like to delete a column using data validation list. for example :
i have a data validation INPUT list in cell A1 (Part No., Supplier 1, Supplier 2, Supplier 3) the heading start from B2,C2,D2,E2,F2. If user select Supplier 1 from data validation list in cell A1, the column Supplier 1 [c2] should be deleted.
And/or also if in cell B1 have a data validation INPUT row list (Part no.) & if user select part no.,
the selected part no. row should be deleted.
View 1 Replies
View Related
Jun 24, 2009
I would like a macro to find the columns named "apple" and "peach" and delete them. These would always be in row 1 but would always be in different column letters which is why I want the macro to simply find these columns by their name and not by their column letter.
And yes, I do mean the entire column altogether, shifting entire columns to the left. Wipe it off the face of the earth
View 4 Replies
View Related
Mar 18, 2009
I'd like a macro that does 3 things..
1. Find the last row (cell) of data in the "Customer Number" column. This search should be by the name "Customer Number" rather than by column letter because the column that "Customer Number" will be in can change.
2. Find the column named "Purple" (also by name for same reason)
3. If the "Purple" column has no blank cells in those same number of rows as the "Customer Number" column, delete the whole "Purple" column.
View 11 Replies
View Related
Dec 8, 2009
I have a sheet where i want to delete duplicate rows where column A and column B combined are equal, i.e. range(Ax:Bx) where x is the current row. I am using the macro below but cant seem to get it working as I keep getting a type mismatch error and Im not sure why.
View 2 Replies
View Related
Jan 20, 2013
How would you set up a macro to delete numbers in a spreadsheet in one column that appear in another column or worksheet?
In other words, if I have the numbers 1,2,3,4,5,6,7,8,9, 10 in one column and in the same column, or another column or worksheet I have the numbers 1,2,3,4,5 - I need a way to delete 1,2,3,4,5. I know how to delete duplicates via the advanced filter but I want to have the duplicate and original deleted.
View 3 Replies
View Related
Jul 30, 2014
Have have a excel spreadsheets with 2 columns. One with the employees name and one with the date that their warning expires. I would like the employees name to be automatically removed after the date expires. How do I do this.
View 1 Replies
View Related
Apr 29, 2009
I have a spreadsheet with several columns (all column names are in row 1).
I have 2 of column names. Note that their actual column# might change so the macro would have to look for the column name and NOT the column position ...
View 11 Replies
View Related
Aug 18, 2009
Does anyone have a macro that will delete entire row if column a matches column d
View 6 Replies
View Related
Feb 4, 2009
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.
View 9 Replies
View Related
Dec 8, 2007
What would be the macro or other shortcut to delete every other row in a column? The rows I want to delete happen to be blank, but I don't want to delete EVERY blank row. If that is incredibly easier, I guess I could fairly quickly put something easily found in the few currently blank rows that I want to preserve later then go back and delete that type...
View 9 Replies
View Related
Mar 13, 2009
I have a large table of data, but it will always have some data in the last column that basically I want to remove. The last column is not always the same exact one, so something that looks from the end for the last used column then deletes the entirity of it. The attached file shows exactly what I'm after.
View 3 Replies
View Related
Mar 28, 2013
Macro to delete the specific cell which contains less than -5 and 0.
View 2 Replies
View Related
Sep 23, 2008
I have a master list of employees, which is pulled from another workbook using a formula like this: ='S:PII ProductionP2 crew listscrew pII[1st shift PII staffing.xls]4310'!B9
If a position is currently empty, then the column (J) that lists the employee number will show a zero. I would like this spreadsheet to show only the positions which are currently filled. Is there an easy way to do this?
View 9 Replies
View Related
Sep 18, 2009
I have two sheets, a data sheet with all our customers by ref, name and spend; and a presentation sheet.
In the presentation sheet I want to display the ref, name and spend of the Top 50 customers by spend, price high to low.
The workaround:
Copy all data from data sheet, sequence top down by spend, manually delete all after 50.
My only issue is that each month the data sheet will update and I want the Top 50 to auto update, without performing the workaround above.
Is there a way to do this without VBA i.e. pivot tables etc
View 10 Replies
View Related
Aug 30, 2012
I have 4 values in column A (Let's say A1:A4)
These values are also contained in column Q among/with many other values. I am looking for a script that will find these 4 values in column Q and delete them by shifting the cells up. I need something like:
Look A1, If the same value exist in Q column Then delete the same value cell in Q and shift cells up
Look A2, If the same value exist in Q column Then delete the same value cell in Q and shift cells up
Look A3, If the same value exist in Q column Then delete the same value cell in Q and shift cells up
Look A3, If the same value exist in Q column Then delete the same value cell in Q and shift cells up
View 2 Replies
View Related
Jun 19, 2013
I have a column with text values, I would like to remove all the duplicates. How can I do that??
View 4 Replies
View Related
Feb 15, 2009
I have attached a pdf of part of my data. I wish to delete those cells in column 2 containing values between 9044795 and 9372402; then have the column below move up (into the cell deleted). Its a large data set so doing it manually is not an option.
After doing this the data across the rows should line up. I have tried using the replace and filter functions but I can't make it work. I've tried some VBA but my knowledge is wanting.
View 4 Replies
View Related
Mar 12, 2013
Why is it when I open a worksheet, or try to delete " extra" columns in a saved document, highlighting the column and going to Edit>Delete does not erase the column? Is there a "locked" function somewhere?
View 9 Replies
View Related