Autofilter To Delete Chunks On Unwanted Data

Feb 13, 2009

I am using an autofilter to delete chunks on unwanted data, by using Range(Selection, Selection.End(xlUp)).Select however it picks up the header row. Is there anyway I can either get the selection of data to select one less line, or a way to get it to leave the header line?

View 2 Replies


ADVERTISEMENT

AutoFilter VBA - Filter And Delete Unwanted Rows

Oct 25, 2012

I'm trying to filter and delete unwanted rows as I need row where dates is within a specified range.

How can I do this using AutoFilter? or are there any other alternatives?

View 2 Replies View Related

Excel 2010 :: Macro With Autofilter With Array To Remove Unwanted Criteria With Wildcard

Apr 28, 2014

I'm having a hard time making this maro work in Excel 2010.

I need it to filter out the items "AR", "BATCH", and the line of "Total:*" where the * is a total amount of any given number dependant on the day.

Below is the coding I have that Excel is not liking.

Sub FilterAccurateRawData()
'
' FilterAccurateRawData Macro
'
'
Rows("1:1").Select
Selection.AutoFilter
ActiveSheet.Range("$A$1:$AA$45415").AutoFilter Field:=1, Criteria1:=Array("<>AR", "<>BATCH", "<>Total:*")
Operator:=xlFilterValues
Sheets("Instructions").Select
Range("A9").Select
End Sub

View 3 Replies View Related

Delete Unwanted Rows

Jul 11, 2008

1. In excel Sheet how to delete the unwanted rows in a proper way
In the following Data :

Day Date A/c Time Code Description
Tue 08/07/10 1708 02:54 E301000 > AC Loss [ri 0: Residence]
Tue 08/07/10 1708 02:55 R130006 > Reset [ri 0: Residence]
Tue 08/07/10 1708 02:56 R301000 > AC Restoral [ri 0: Residence]
Tue 08/07/10 1708 03:00 E301000 > AC Loss [ri 0: Residence]
Tue 08/07/10 1708 03:40 R301000 > AC Restoral [ri 0: Residence]
Tue 08/07/10 1708 04:08 E301000 > AC Loss [ri 0: Residence]

Tue 08/07/10 2410 04:23 E301000 > AC Loss [ri 0: Residence]
Tue 08/07/10 2410 04:47 R130006 > Reset [ri 0: Residence]
Tue 08/07/10 2410 05:56 R301000 > AC Restoral [ri 0: Residence]
Tue 08/07/10 2410 06:21 E301000 > AC Loss [ri 0: Residence]
Tue 08/07/10 2410 06:30 R130006 > Reset [ri 0: Residence]..............

View 9 Replies View Related

Delete Or Remove The Unwanted Pages

Feb 22, 2005

I have a 'document' which shows 294 pages, I have only 10 actual pages. How
can I delete or remove the unwanted pages?

View 9 Replies View Related

Delete Unwanted Row And Combine Different Cells

Apr 20, 2012

ItemNew or UsedQuantityDescriptionScrap ReasonActionitem1new1000item1 description1item1 reason1item1 action1item2new1200item2 description1item2 reason1item2 action10000item2 reason2item2 action20000item2 reason3item2 action3item3used3500item3 description1item3 reason1item3 action1000item3 description2item3 reason2item3 action2

The above was imported to Excel from another software and somehow those unwanted rows with "0" were created.

Would like to delete those unwanted row and combine the reason on those rows into their respective rows above.

Please note: this is just a small part of the file. The file is big and row with "0" doesnt occur in a prodictable patten.

View 9 Replies View Related

Filter Then Delete Unwanted Rows

Oct 8, 2007

I am using the following code to filter for data I do not want and then to delete those rows and show remaining data. It works fine except when the filter comes up empty and there is no unwanted data to delete.how to improve this code to accomodate this situation?

Selection.AutoFilter Field:=4, Criteria1:=">" & dweekend, Operator:=xlAnd
Range("A2").Select
Range(Selection, ActiveCell.SpecialCells(xlLastCell)).Select
Selection.EntireRow.Delete
ActiveSheet.ShowAllData
Thank you for reading

View 9 Replies View Related

Delete Unwanted Characters Within Certain Criterias

Jun 20, 2007

I have a spreadsheet that i manually edit each and everyday e.g.

A B C
EABGL/UD NDT254892
MRMR/RUS/ELQNS259762
LSL/UW/B LQNS267259
WWEX/UQ bbr263666
LWL/KL/B 270407
MYTCJ/UB NDT271774
LNL/SB/UB HLC - 271955
SMMQD/WT HLC - 269516
EACO/TN/UGBBR257827
NILVA/UC EUi273645

For everything that doesnt equal EM, LN, LW and TH in column A, everything should be deleted in column B.

For the remaining EM, LN, LW and TH, i would then like it to delete / (forward slash and all characters after this) so that this would make my life easier.

View 4 Replies View Related

Delete Unwanted Rows Based On Value In Cells?

Sep 28, 2011

I am aware this is probably very simple, but I haven't been able to find a usable macro yet. I would like the data in the workbook that is not "Tuesday" (column L) and is not "3" or "4" (column I) to be deleted. All rows that have "Tuesday" and either "3" or "4" should not be deleted. Each row that is not deleted must have Tuesday in column L. All other cells are blank intentionally. The workbook will remain the same titled WKBK1 (no need to put the output data in a separate workbook nor separate spreadsheet).

Do you know what the macro would be so I don't have to copy and paste a formula over a large number of cells?

WKBK1
A B C D E F G H I J K L 2
3

[Code]....

View 8 Replies View Related

Excel 2010 :: Delete Unwanted Character In VBA

May 15, 2012

I'm using excel 2010. I'm working with columns of values where most of the values are numbers - which is fine, and there are some numbers that have a "p" at the start of them.

e.g. Column has 49, 52.2, p56.7, 34

OK, I want to preserve the 56.7 but I want to delete the "p". I'm thinking I've got a mental block as to how to delete the unwanted "p"s but I can't think of how to do it at the moment! My code goes as follows:

If Left(Cells(1,1),1) = "p" then
'delete the "p" and leave the remaining number in tact
End if

View 4 Replies View Related

Excel - Delete Unwanted Rows On Closing File

Dec 30, 2011

I want to delete some unwanted rows on closing my excel file. the blank rows are between set of datas. so it has to check all the blank rows, delete it until the last one. example

data
blank rows
data
blank rows
data
blank rows
data

View 4 Replies View Related

Set Of Column Data Move To Different Column And Delete Unwanted Column VBA

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

Reset Vertical Scroll And / Or Delete Unwanted Blank Rows At The Bottom?

Mar 18, 2014

My spreadsheet has 600rows and the vertical scroll bar ends at row 459424. I have attempted to delete all of the extra rows by holding SHIFT and CTRL, striking the down arrow then right-clicking on the left margin of highlighted row numbers and choosing delete.

But the unwanted rows are still there and my vertical scroll bar is not correlated to the 600 rows.

View 1 Replies View Related

Deleting Chunks Repeatedly

Jan 16, 2008

I need some code that will keep one row, delete 5 or 6 rows keep one row and repeat the process over and over again until the end of the data.

like this:-

1 keep row
2 delete row
3 delete row
4 delete row
5 delete row
6 keep row
7 delete row
8 delete row
and on, and on......

View 9 Replies View Related

Copying Chunks Of Rows To Different Sheets

Sep 22, 2006

The problem sheet attached to this thread. I would like to extract all rows belonging to one person to another sheet named after the person and also their status.
For instance, I want a VB script which extracts all rows with Mark when his status is A/V to another sheet named as Mark and likewise for Steve.

View 9 Replies View Related

Adding 365 Text Chunks Into A Calendar Template

Jan 5, 2014

I have a calendar-template that contains entries - little text-chunks - and i also have a excel-sheet that contains 365 texts - those have to get imported into the Calendar-template. - see the attached files for more infos. Play around with the calendar-template.

Note: the attached data contain the following

a. the calendar-template (attachment a)
b. the excel-sheet - with the 365 text-chunks that have to get imported into the template (attachment b)

What is aimed - i want to have a weekly calendar for my own usage

To see what we already have - take the calendar-template.

You see the calendar-template contains the fully-fledged view of the second week in 2014.

If you jump to the filed A 2 in the calendar-template (attachment a) - here you see the date - actually the 2014-01-06
You can play around and see that the greek verses are already included for the whole year. If you choose any date of the year - the greek verses in the template already are added.

What is missing - are the additional text-chunks that are represented in the excel sheet.(b)

note. i have colored the fields in the calendar-template and the excel sheet with corresponding colors so we can see - which fileds have to get filled with which text-chunks of the excel-sheet. Additionally the calendar-template contains the fully-fledged view of the second week in 2014.

Question. can we do a automated version?

Attached files:
a. _calendar_2014_week_2_demo_excel_version - this is the calendar template
b. _words_2014_365_days_excel_version - this is the additional text sheet that contains the 365 text chunks - slogans

View 2 Replies View Related

Getting Rid Of Unwanted Data

Feb 10, 2009

Each week I import some data into my workbook (its financial-imports stock names, identiy codes and stock type). I've added a formula which calculates the credit ratings of each stock type, and then conditional formatting to highlight any credit ratings which are less than my required rating.

Further to this I need to get rid off all the rows which which have an stock type "No Asset Class". I cant use auto-filter because there are too many other stock types which I need to be included.

View 2 Replies View Related

Filtering Out Unwanted Data

Jul 25, 2014

I am working in a worksheet with 15k rows of data. I have sorted and added subtotals. Is there a way to remove data based on number of occurrences? Example, if the same account number is listed less than times in the worksheet, i would like to eliminate the account number from the data. How can i achieve this?

View 1 Replies View Related

How To Highlight Unwanted Data

Jan 28, 2014

I want codes to highlight unwanted data.

EX- B column should be CAPS, C=D, F & H & J column should not be blank

if data found other than this please highlight the data by any color.

View 1 Replies View Related

VBA Code To Extract Data And Remove Unwanted Data In Row

Dec 15, 2013

I have a workbook that has ben imported into excel and I need to extract the Cabinet sizes (red text) from ColumnC On Sheet2 leaving out the rest of the info. I have a button on the home sheet that has the code that I am running to generate this report it will do most of what I want but I am stuck at extracting the cabinet sizes.

The data is coming from the SheetComponetListing worksheet and going to Sheet2. I have manually created the end result that I am looking for on the CabinetSize worksheet. [URL]....

View 3 Replies View Related

Autofilter And Delete In VBA

Feb 15, 2007

From my data set I would like to delete all rows that show "Yes" in Column I.

I copied this piece of code a few days ago from this site and have attempted to modify it eg by altering Columns to "I" and Autofilter Field to 9 and Criteria1 to = "Yes", but without success. Can you please help?

With Columns("A")
.AutoFilter Field:=1, Criteria1:=""
.Range("A2:A" & Rows.Count).EntireRow.Delete
.AutoFilter
End With

View 9 Replies View Related

Removing Unwanted Data From Worksheet

Mar 22, 2013

I have a data sheet which I need to filter in some way with multiple criteria. For example

I have a sheet called Training which has 4000 rows of data. Column F is labelled Cost ID and under this column I have 400 different IDs of which I need to see data for 155 out of the 400.

Is there a simple way of removing the unwanted data?

View 5 Replies View Related

Deleting Rows With Unwanted Data?

Dec 6, 2013

What I need to do is under Document Number (column D) is to delete the rows that do not start with "RM", "AG" or "MA"and then move the rows up.

View 2 Replies View Related

Delete Rows After AutoFilter

Jan 5, 2008

I use Excel 2007 and need to find the best way to delete rows selected after Auto-filter. This autofilter selects multiple criteria for a particular column. The closest post to do what I am looking for is: [url]

But this doesn't really help me firstly because it pops out an input box and asks to enter 1 criteria. I have multiple criteria for each column depending on which I'd like to delete rows.

Alternately, I have been trying this code belwow but its too time consuming for my 50,000 rows.

Sub CodeCleanup()
Dim r As Long
r = 65536
For I = 1 To r
If Cells(I, 30).Value = "R" Then
Rows(I).Delete
End If
Next I
End Sub

View 3 Replies View Related

Clean Data - Removing Unwanted Characters

Feb 25, 2007

I have an excel sheet with approx 30,000 rows of data.

These are all keyword phrases.

They can be related to any subject, but for this example these are related to the root keyword phrase of "car Rent"

I have some software which basically pulls in keyword phrases from search engines and meta tags etc, including misspelled keyword phrases.

My problem;

The data is uncleaned.

In other words there might be I think it's called "Carriage return" data in there, so the row of data might be very deep (Instead of a row height of say 10.5 it could be anything, IE some could be 100 or 200 even).

There are unwanted characters, for example; ()[]{}+?!""^*

(If it could delete all unwanted characters except for letters/digits)
There is a problem I see, that if it removes _ or - between words, that it will join the words together which won't be of any use. If it deletes anything with a letter either side of it or a letter and digit, or 2 digits, 1 either side it would then need to add a space to replace the hyphen.

So for example; if there was a phrase in the list like ....

View 9 Replies View Related

Exclude Unwanted Data After Macro Filter

Sep 9, 2006

I have a sheet for addresses (Column 1 = Name, Column 2 = Address line 1, Column 3 = City, Column 4 = Postcode) and I run a macro that Filters that data based on the the city to different Tabs. This works fine except that sometimes, once the data is filtered I will find one or two addresses on my new filtered sheets that I really wanted to exclude. As my main address Tab information changes regularly, Ideally, I would like to see the Item on the City filtersheet, Double click it, and this would have the effect of deleting it from the City filtersheet but also copying it to an "Exclusions" Sheet which I could use before I run my normal filter macro to filter out these bad addresses.

View 9 Replies View Related

Delete Blank Rows With Autofilter?

Jan 14, 2012

I have created a file where I use the Subtotal function. Once I collapse the information to only give me the Total, I would like to copy the Total rows into another worksheet. However, when I do this I get blank lines in between. I am trying to find a way to delete the blank rows in between the Total rows I need. Is there a way to do this with the auto filter function?

View 1 Replies View Related

Autofilter Conditional Delete And Copy?

Oct 25, 2012

Wondering if there's a macro that can do this when i press a button.

In spreadsheet "Complete Backlog"Autofilter onShow rows where WIP Status (Column K) equals "Closed"Cut rowsPaste into next available row of "Closed Jobs" spreadsheet. No overwrites.

Or you could switch step 5 and 6 so that the rows are copied over to "Closed Jobs" and then deleted from "Complete Backlog".

View 1 Replies View Related

Delete All Rows Hidden By Autofilter

Oct 3, 2007

I'm wondering if anyone has a answer to the problem of deleting all the rows that are hidden by an autofilter. We currently have a spreadsheet used within the office that catalogues all applications received, and we want to select all the applications that are relevant to a certain month with the autofilter and use a macro to delete those that are irrelevant, before emailing the spreadsheet to a client. Manually deleting all irrelevant rows would be time-consuming.

The current code I have is:

With Worksheets("Sheet1")
If .AutoFilterMode Then
With .AutoFilter.Filters(1)
If .On Then
Else: Rows.Delete
End If
End With
Else:
End If
End With

The theory is that the code first selects the relevant worksheet, determines whether autofilters are on, selects data that is being covered by the autofilter, indentifies those that is being displayed and does nothing, and identifies those which are not displayed and deletes them - in theory!

View 7 Replies View Related

Created Chart Grabbing Unwanted Data Series (VBA)

Sep 20, 2013

My code inserts charts and then assigns them data series. The problem is that sometimes it likes to grab 5 or 6 extra sets of data series and throw them in there too. I've done some research and it seems that Excel likes to guess what data is going in to a chart when you first add it in and grab some of that, rather than just waiting for me to assign it the data. The sheet I'm doing this on has multiple sets of similar data along row 1, the code crawls row 1 and creates a new chart for each set of station data it finds.

Code:
Sub Make_Chart()
'create bar chart
'prep
Set chrt = ws.Shapes.AddChart.Chart

'add and format chart

[Code] ........

Example data set below. RefCell is set to the top left cell (4.02), n is the length of the raw data in rows.

4.02
ON
OFF

2
0:36:10
0:38:03
0:01:53

[Code] ..........

View 3 Replies View Related







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