Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Linda Hudock
 
Posts: n/a
Default How do I delete all rows that contain no red highlighted data?

I have a LARGE spreadsheet in which have highlighted erroneous data in red.
I would like to know how to quickly and easily delete any row in the sheet
that does not have red highlighted data in it so that I can count the number
of records that have erroneous data using subtotals. Or, is there is a
better way to do this than deleting the rows w/o red highlighted data?
  #2   Report Post  
Posted to microsoft.public.excel.misc
Stefi
 
Posts: n/a
Default How do I delete all rows that contain no red highlighted data?

Hi Linda,

The way depends on HOW are the erroneous cells highlighted: is their font or
background color manually set to red or is a conditional formatting applied
to them?
The font or the background color is red?
Are the erroneous cells in the same column or are they in different columns?

Regards,
Stefi

€˛Linda Hudock€¯ ezt Ć*rta:

I have a LARGE spreadsheet in which have highlighted erroneous data in red.
I would like to know how to quickly and easily delete any row in the sheet
that does not have red highlighted data in it so that I can count the number
of records that have erroneous data using subtotals. Or, is there is a
better way to do this than deleting the rows w/o red highlighted data?

  #3   Report Post  
Posted to microsoft.public.excel.misc
Linda Hudock
 
Posts: n/a
Default How do I delete all rows that contain no red highlighted data?

The cells are MANUALLY set (not conditionally set). The FONT is colored red
(not the background). There are several columns. The row can have red
colored errors in any of the columns. If there is one or more red colored
errors in the row (ie, in any column), I want to keep the row. If there are
no red colored cells in any column in the row, I want to delete the entire
row.

"Stefi" wrote:

Hi Linda,

The way depends on HOW are the erroneous cells highlighted: is their font or
background color manually set to red or is a conditional formatting applied
to them?
The font or the background color is red?
Are the erroneous cells in the same column or are they in different columns?

Regards,
Stefi

€˛Linda Hudock€¯ ezt Ć*rta:

I have a LARGE spreadsheet in which have highlighted erroneous data in red.
I would like to know how to quickly and easily delete any row in the sheet
that does not have red highlighted data in it so that I can count the number
of records that have erroneous data using subtotals. Or, is there is a
better way to do this than deleting the rows w/o red highlighted data?

  #4   Report Post  
Posted to microsoft.public.excel.misc
Stefi
 
Posts: n/a
Default How do I delete all rows that contain no red highlighted data?

Install this UDF (post if you need assistance in installing), enter
=ColoredRow(ROW(),3) in all rows in an unused column! Autofilter the TRUE
values in this column, and copy them into a separate sheet!

Function ColoredRow(rownum, colorcode)
ColoredRow = False
For Each cella In Range(rownum & ":" & rownum)
If cella.Font.ColorIndex = colorcode Then
ColoredRow = True
Exit Function
End If
Next cella
End Function

Regards,
Stefi


€˛Linda Hudock€¯ ezt Ć*rta:

The cells are MANUALLY set (not conditionally set). The FONT is colored red
(not the background). There are several columns. The row can have red
colored errors in any of the columns. If there is one or more red colored
errors in the row (ie, in any column), I want to keep the row. If there are
no red colored cells in any column in the row, I want to delete the entire
row.

"Stefi" wrote:

Hi Linda,

The way depends on HOW are the erroneous cells highlighted: is their font or
background color manually set to red or is a conditional formatting applied
to them?
The font or the background color is red?
Are the erroneous cells in the same column or are they in different columns?

Regards,
Stefi

€˛Linda Hudock€¯ ezt Ć*rta:

I have a LARGE spreadsheet in which have highlighted erroneous data in red.
I would like to know how to quickly and easily delete any row in the sheet
that does not have red highlighted data in it so that I can count the number
of records that have erroneous data using subtotals. Or, is there is a
better way to do this than deleting the rows w/o red highlighted data?

  #5   Report Post  
Posted to microsoft.public.excel.misc
Linda Hudock
 
Posts: n/a
Default How do I delete all rows that contain no red highlighted data?

This is just too wonderful for words! It saved me hours of work!!! I can't
thank you enough!


"Stefi" wrote:

Install this UDF (post if you need assistance in installing), enter
=ColoredRow(ROW(),3) in all rows in an unused column! Autofilter the TRUE
values in this column, and copy them into a separate sheet!

Function ColoredRow(rownum, colorcode)
ColoredRow = False
For Each cella In Range(rownum & ":" & rownum)
If cella.Font.ColorIndex = colorcode Then
ColoredRow = True
Exit Function
End If
Next cella
End Function

Regards,
Stefi


€˛Linda Hudock€¯ ezt Ć*rta:

The cells are MANUALLY set (not conditionally set). The FONT is colored red
(not the background). There are several columns. The row can have red
colored errors in any of the columns. If there is one or more red colored
errors in the row (ie, in any column), I want to keep the row. If there are
no red colored cells in any column in the row, I want to delete the entire
row.

"Stefi" wrote:

Hi Linda,

The way depends on HOW are the erroneous cells highlighted: is their font or
background color manually set to red or is a conditional formatting applied
to them?
The font or the background color is red?
Are the erroneous cells in the same column or are they in different columns?

Regards,
Stefi

€˛Linda Hudock€¯ ezt Ć*rta:

I have a LARGE spreadsheet in which have highlighted erroneous data in red.
I would like to know how to quickly and easily delete any row in the sheet
that does not have red highlighted data in it so that I can count the number
of records that have erroneous data using subtotals. Or, is there is a
better way to do this than deleting the rows w/o red highlighted data?



  #6   Report Post  
Posted to microsoft.public.excel.misc
Stefi
 
Posts: n/a
Default How do I delete all rows that contain no red highlighted data?

You are welcome, Linda! Thanks for the feedback!
Stefi


€˛Linda Hudock€¯ ezt Ć*rta:

This is just too wonderful for words! It saved me hours of work!!! I can't
thank you enough!


"Stefi" wrote:

Install this UDF (post if you need assistance in installing), enter
=ColoredRow(ROW(),3) in all rows in an unused column! Autofilter the TRUE
values in this column, and copy them into a separate sheet!

Function ColoredRow(rownum, colorcode)
ColoredRow = False
For Each cella In Range(rownum & ":" & rownum)
If cella.Font.ColorIndex = colorcode Then
ColoredRow = True
Exit Function
End If
Next cella
End Function

Regards,
Stefi


€˛Linda Hudock€¯ ezt Ć*rta:

The cells are MANUALLY set (not conditionally set). The FONT is colored red
(not the background). There are several columns. The row can have red
colored errors in any of the columns. If there is one or more red colored
errors in the row (ie, in any column), I want to keep the row. If there are
no red colored cells in any column in the row, I want to delete the entire
row.

"Stefi" wrote:

Hi Linda,

The way depends on HOW are the erroneous cells highlighted: is their font or
background color manually set to red or is a conditional formatting applied
to them?
The font or the background color is red?
Are the erroneous cells in the same column or are they in different columns?

Regards,
Stefi

€˛Linda Hudock€¯ ezt Ć*rta:

I have a LARGE spreadsheet in which have highlighted erroneous data in red.
I would like to know how to quickly and easily delete any row in the sheet
that does not have red highlighted data in it so that I can count the number
of records that have erroneous data using subtotals. Or, is there is a
better way to do this than deleting the rows w/o red highlighted data?

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Import data and keep duplicate rows of data mrdata Excel Discussion (Misc queries) 0 March 23rd 06 12:24 AM
Add or Delete Rows in Protected worksheets NH Excel Discussion (Misc queries) 0 March 16th 06 05:15 PM
Protect Worksheet but allow to insert or delete rows Bob L Hilliard Excel Discussion (Misc queries) 2 June 9th 05 02:08 PM
How to delete rows when List toolbar's "delete" isnt highlighted? Linda Excel Worksheet Functions 1 May 26th 05 08:39 PM
Pivot Table for survey data w/ questions as Rows & poss answrs as pfwebadmin Excel Discussion (Misc queries) 0 May 17th 05 02:31 PM


All times are GMT +1. The time now is 09:32 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"