Deleting Groups Of Rows When Specific Text Data Is Populating Row?

Feb 14, 2013

I have a complex report with thousands of lines I am trying to clean up. In order to do this, I need VBA that recognizes specific text data starting after row 9. When it sees this, it will need to select and delete the 2 rows above it, the row it is in, and the 6 rows below it. 9 rows in total, some of which are blank. The text will repeat every 47-50 rows, but I cannot say exactly when it will repeat again. When it is repeated, I need the 9 rows deleted. At this time, there is only 1 column in the report because I need to split out the data in the cell into adjoining cells. Since I have not solved that yet, I need to just delete the entire row.

The text is written with spaces between each letter and a double space between words. It reads, "B I L L I N G M A S T E R I N V O I C E S E T U P L I S T I N G"

View 8 Replies


ADVERTISEMENT

Deleting Blank Rows (without Any Text Or Data)

Jun 17, 2009

In a rage of rows I have some rows that are blank - without any text or data. Is there a macro I might enter that will look at the range of rows, determine which are blank and then delete the blank rows?

View 9 Replies View Related

Auto-Populating Empty Cells With Specific Text?

Dec 13, 2011

Is there a way to auto-populate all of the empty cells with the word "Need to Review" in a cell range (A1:A250)? Once any of the cells in this range is populated, whatever is inputted should house the cell.

View 9 Replies View Related

Deleting Specific Rows..

Feb 21, 2009

Here's my problem. I have the following table:

View 5 Replies View Related

Deleting Specific Rows ....

Nov 9, 2008

I have created a worksheet (through an import into MS Excel 2007) which contains 287,281 rows. However, the data I need is located in rows: 4, 67, 130, ... (or n+63) rows.

View 10 Replies View Related

Auto Populating Based On Specific Data

Jan 7, 2014

I have a unique task i am trying to achieve (when i say unique i mean i am out of my depth). I am trying to take specific data from a couple of different sheets to populate other sheets whether it be copying the text of fill cell (color)

Excel Automation Test.pdf

I have Attached a PDF detailing.

View 2 Replies View Related

Populating Specific Cells With SQL Server Data?

Dec 11, 2012

A user has an excel document and there are 5 specific cells they need to populate. The data is in one of our SQL databases. Is it possible to create a new copy of that excel doc with those fields populated for each record? There are around 2000 records they don't want to manually populate each one.

View 1 Replies View Related

Deleting Entire Rows Containing A Specific Value

Aug 29, 2007

I've been tasked with developing a macro that will generate schedules. For background, we're taking a QuickBooks Customer file and exporting it to be picked up by the macro. I've got that part working, but now I need to delete various rows based on certain criteria.

The spreadsheet has a field for Job Status which we use to define whether an account is under contract (2 in QuickBooks), or some other status. Basically what I need to do is delete the entire row of data where JobStatus (Column R) is anything but 2.

View 9 Replies View Related

Deleting Specific Rows That Are Identical

Mar 8, 2012

I want to delete some rows that are identical. Aside from creating a macros to do this, is there a way to find a row with a specific criteria and delete it if value returns TRUE?

View 1 Replies View Related

Finding And Deleting Specific Rows

Jul 31, 2013

I was wondering if there is a formula or command to find and delet specific rows. I want to remove people from an excel email list.

On Sheet 1, I have 500 rows with columns for first name, last name, and email.
On Sheet 2, I have 30 rows with columns for first name, last name, and email that appear on Sheet 1 but need to be removed.

Is there a way to do this without manually searching for each email and then deleting the row?

View 4 Replies View Related

Deleting Specific Rows In Worksheet

Nov 28, 2006

i need to create a macro that will delete entire rows based on certain criteria. here is an example of some of the worksheet:

US0017651060AMR_CORP CM 12C
US0017658669AMR_CORP PR 8C

US00211H1077ATC_ONLANE_INC CM 92M
US00211H2067ATC_ONLANE_INC PR 100N

US0038813079ACACIA_RESH CM 12C
US0038812089ACACIA_RESH CM 16C

CA00440P2017ACE_AVIATION CM 7C
CA00440P1027ACE_AVIATION CM 7C
US00440P3001ACE_AVIATION CM 100S

CA00756J1049ADVANTEX_MARK CM 43C
CA00756J3029ADVANTEX_MARK PR 100N

i want to create a macro that, when searching the third column of data (containing "CM" and "PR"), if a group of rows (between blank rows) do not contain at least one "PR", delete entire group of rows.

Therefore, the rows with "ACACIA_RESH" and "ACE_AVIATION" would be deleted from the worksheet.

View 9 Replies View Related

Sort Groups Of Data And Maintain Rows?

Jan 3, 2014

I need to sort groups of data by a single cell in the group, compared to other single cells in other groups of data. The groups are always the same number of rows but vary in the number of rows. There is an example file below. The red is the company name and the green is what I need to sort the group by, as compared to the other groups. This example only has a few, the real file has thousands of groups. I want to sort the companies by the totals in green...they are currently in alphabetical order. There must be a way to do this without going the VBA option.

View 4 Replies View Related

Deleting Form Option Button Groups

Mar 28, 2007

I have developed a 'Work In Progress' (WIP) worksheet containing space for several jobs. Each job has a group of option buttons in it which are NOT acting as triggers or code dependent (just for selection purposes).

Users are able to delete the entire job (12 rows) but the option buttons just move 'up'. I know how to delete these items by use of code if I could determine their name. But - can I programmatically determine the group name for the specific job/range that is going to be deleted.

Worksheet automatically is protected - there is no password.

View 6 Replies View Related

Sorting Multi-rows & Columns Of Data In Groups

Mar 30, 2007

I realize that the easier resolve to this request is to use Access & we are moving to that application.

I have included a worksheet as an example.

We have a 'work in progress' (WIP) worksheet that contains 12 rows of data per job. Need to know how (or if) you can sort by the "Job #:" value while maintaining the group of information necessary for each individual job.

Not a normal sort because the values aren't entered in typical side-by-side row & column format.

View 10 Replies View Related

Deleting Rows That Contain Certain Text

Aug 1, 2014

I have a sheet where individual actions are listed and then subtotaled.

ElementError Code
Action NAC-01
Action NAC-02
Action NAC-07
Action NAC-08
Action NAC-14

[Code] .......

I need to remove all the subtotal rows.

View 2 Replies View Related

Deleting Rows That Contain Certain Text

Aug 23, 2007

I have a spreadsheet nearing 10000 various products with columns A-M.
I need to do the following:

Delete the entire row and shift up
If column H contains "this text" or "File Server Manager" or "ABT". Column H being the product description.

Basically, I have customers that are authorized only to sell certain products. So instead of filtering threw and saying, ok he cant sell "File Server Manager" delete that entire row. OR he cant sell these 10 products cause it says oracle in the product description then delete that row.

I was researching the fourms and saw something on AutoFilter. Will that work?

It was something along the lines of:

.AutoFilter field:=1, Criteria1:="ENTER TEXT HERE"
rng.SpecialCells(xlCellTypeVisible).EntireRow.Delete

I appreciate all your help!

Sincerely,
James

View 9 Replies View Related

Deleting Rows With Certain Text

Feb 21, 2008

I have downloaded my pay pal transactions and need to go through and delete rows of debits that are not debits for my business, but do not know how to do this automatically. I know very little about excel so I hope this can be fairly easy.

View 9 Replies View Related

Suppressing Blank Rows When Populating One Worksheet With Data From Another

Sep 11, 2009

Column M of Sheet 1 contains either "y" or "n". I'd like Sheet 2 to populate with data in cells A-D but only for rows where column H = "y". I can figure out the condition easily enough: =IF('Sheet 1'!M2="Y",'Sheet1'!A2,"")

Repeat for each column to display. But I'd like to suppress the blank rows for both display purposes and the possibility of using in a Word mail merge.

View 2 Replies View Related

Inserting Variable Number Of Rows And Populating Data

Jan 25, 2010

Inserting Variable Number Of Rows and Populating Data

View 10 Replies View Related

Deleting Rows With Text Or Blanks

Sep 19, 2006

Id like to thank ByTheCringe2 for getting me to this point. Now I need just a little bit more help before I can take over and work on it on my own. I have attached a sample sheet of the current problem im having. I messed up in the previous post by not giving an example of text underneath invoice.

This is what I need.

1) I looked in to this and I think the best way to go about this would be to say that if a cell in Column H does not have a numeric value, then to erase the entire row. The reason for this is that Column H is the only column that remains constant in that it is the total balance of the invoice therefore if it doesn't have a balance or there are letters in the cell, it is not a valid cell and not a valid row. I highlighted the example of my problem. This is the formula im using...

=IF(ISERROR(MATCH($E20,'Imported Data'!$E$6:$E$30,0)),"",IF(INDEX('Imported Data'!K$6:K$30,MATCH($E20,'Imported Data'!$E$6:$E$30,0))=0,"",INDEX('Imported Data'!K$6:K$30,MATCH($E20,'Imported Data'!$E$6:$E$30,0))))

View 9 Replies View Related

Create A Function That Numbers Rows With Respect To Data Groups In A Column

Dec 1, 2007

I need to create a function that numbers rows with respect to data groups in a column (column labeled "Type" in this example). The result would be that shown in column A in this table.

How do I write the function?
#TypeName Date
1CarsJohn1/12/2008
2CarsJane11/10/2007
3CarsMary11/2/2004
4CarsBob12/7/2003
1TrucksMike12/12/2007
2TrucksSandy1/3/2007
3TrucksDale12/14/2006
4TrucksVince4/8/2005

*

View 10 Replies View Related

Coding For Populating Data From A Pull-down Menu - A Text Box By (Clicking)

Aug 28, 2008

In excel, I have created a table containing macro pull-down menus and text boxes.

The question I have is this:

In the properties table for my pull-down menu, I have the “ListFillRange” filled with the correct range of cells containing the data that I wanted stored in it.

The problem/solution I am having/wanting is to have not just one selection present, but many (to show up in the text box directly below it) since there will be some data that have many sub-data that need to be visible for the person who will be testing whatever…

All in all, I would like to know if there is a code that I can write in the Visual Basic window or the macro “view code” window that will allow the text box below to be filled with the information that is clicked on from its corresponding pull-down menu. Is this possible?

View 9 Replies View Related

Macro To Only Show Rows That Contain Specific Text/Chinese Text Issue In Visual Basic ( 2007)

Jun 23, 2009

I want to create 3 command buttons (active X) on a worksheet to toggle between showing rows which only contain the below text in column L (range L9:L30) and showing all rows containg the options (However, I also have some blank rows in this range and i always want them to remain hidden.)

My text options are:

High Ť‚
Medium ՠҪ
Low ’á

The text arrives in the cells via a VLOOKUP

Is the chinese text a problem? i can't type it into VB.

I've been using the following macro to hide and unhide rows with a command button in the same sheet:

Private Sub CommandButton1_Click()
Toggle_Hide_Unhide
End Sub

Sub Toggle_Hide_Unhide()
Dim rngCell As Range
Dim TakeAction As Boolean

If ActiveSheet.CommandButton1.Caption = "Hide" Then
TakeAction = True
ActiveSheet.CommandButton1.Caption = "UnHide"
Else
TakeAction = False
ActiveSheet.CommandButton1.Caption = "Hide"
End If

For Each rngCell In ActiveSheet.Range("I9:I30")
With rngCell
If .Value = 2 Then .EntireRow.Hidden = TakeAction
End With
Next rngCell
End Sub

View 9 Replies View Related

Resample Data: Total Number Of Points Reduced By Averaging The Data Not By Simply Deleting One Of Every Four Rows

May 16, 2006

I have several files of data that are from a data logger. The data is broken up by day. Each day has roughly 43000 rows of data, at its sample rate. This has made charting the data a nuisance. Is there a way to resample the data so it fits in the 32000 points excel can chart? In the future I will set a sample rate that will keep the number of points below the 32K per series. I would like to be able to have the total number of points reduced by averaging the data not by simply deleting one of every four rows.

View 5 Replies View Related

Formula To Move Data On Same Row And Deleting Empty Rows Between Data

Jul 17, 2014

formula to make data on same line.On converting data2 is above data 1. I insert a column on left . Need to use mouse right click shortcut delete manually shift cells left and then delete shift cells upto have both data on same line but should be in different cells and same sequence per attached ALSO TO REMOVE "/ -DASH HYPENS.

What I need is formula to move the data2 on same alignment and to delete the two empty rows between both data.

See annexed file for expected results.I have preference to have a formula much more.

View 7 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

Deleting Rows And Moving Data..

Jul 26, 2009

I have created a spreadsheet with 4820 rows of data (4821 for computational purposes, the last row being blank) with 5 columns.

1. every third row is blank and it needs to be removed (3, 6, 9,...4818, 4821). Once this is accomplished,

2. I need to move the data that is now found in the even rows, column E moved to the above, current odd row, column F. (ie. E2 to F1, E4 to F3, E6 to F5,...E4808 to F4807...,E4820 to F4819 (however it won't go this high). then

3. I need to delete all the current even rows, as the data I need will be in the odd rows.

View 4 Replies View Related

Deleting Rows Of Invalid Data

Dec 24, 2007

I have a database in excel format containg 20,000 + rows with multiple columns, one of the columns contains web addresses in the format [url].

I have a list of around 3.500 web addresses that are no longer valid ie thay dont work, I want to filter the original list to delete all the rows that contain an invalid web address including all the other data in the row, does anyont know a way to do this without having to do it manually one at a time?

View 9 Replies View Related

Deleting Rows Of Data The With Use Of Boolean Logic

Feb 6, 2009

I've got a worksheet with five columns of data. The headings run from a1:e1

The number of rows can be anything up to 200,000 rows (I'm using Excel 2007).....

View 6 Replies View Related

Moving Data And Deleting Rows, Part 2

Jan 7, 2010

This is similar to a previous post, in July, which was masterfully solved. I have tried to adapt the previous script, without success. Therefore,

I have copied data from a screen and entered it into Excel 2007, which is attached as 'snohomish sample.xlsx The data starts out (sheet 1) in 8 columns (A-H), and only in the odd rows (1, 3, 5, ...) What I wish to do is the following:

Move 'sheet 1 column B' to 'sheet 2 column A'. This is a date which needs to be in mm/dd/yyyy form.

Move the last 14 digits in 'sheet 1 column F' to 'sheet 2 column B'. This needs to be text so that I don't loose any of the zeros.

Move 'sheet 1 column E' to 'sheet 2 column C'.

Leave 'sheet 2 column D' blank as I will be entering a currency amount after running the module.

Move 'sheet 1 column A' to 'sheet 2 column E'. This also needs to be text as I can't loose any zeros or have it in scientific format.

The rest of the data on sheet 1 is not needed on sheet 2.

I will be entering data in 'sheet 2 columns F-K' after running the module.

I am attaching 'snohomish results.xlsx' which shows what I hope the results to look like (note the sample results are on sheet 1 of a different file).

View 6 Replies View Related







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