Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Melkett
 
Posts: n/a
Default Put an if statement according to cell format

I have a spreadsheet with approx. 10000 rows. And i would like to select and
copy the yellow rows and paste them to another sheet. Or delete cells which
are not yellow.

I think that i can do it by putting an if statement in each row and filter
them.
For example, excel will type 1 if the is yellow, else 0. Then it will be
easy to select and copy them. But how?

Or do you have any idea other than "if statement"
I need yor help. Thanks.


  #2   Report Post  
Gary's Student
 
Posts: n/a
Default

If you are comfortable with VBA this function:

Function clr(R As Range) As Integer
With R.Interior
clr = .ColorIndex
End With
End Function

will return a number representing the background color of a cell. For
example, if you enter =clr(A1) in a cell you will have the color of the
backgroun in call A1

Good Luck
--
Gary's Student


"Melkett" wrote:

I have a spreadsheet with approx. 10000 rows. And i would like to select and
copy the yellow rows and paste them to another sheet. Or delete cells which
are not yellow.

I think that i can do it by putting an if statement in each row and filter
them.
For example, excel will type 1 if the is yellow, else 0. Then it will be
easy to select and copy them. But how?

Or do you have any idea other than "if statement"
I need yor help. Thanks.


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
Why does my format keep changing in the cell? Denise Excel Discussion (Misc queries) 0 August 30th 05 04:23 PM
how do I format a cell reference to move as source changes KGray Excel Worksheet Functions 1 August 13th 05 12:41 AM
Show Blank is cell value=0 but count as a zero in sum. How to format this cell ? Markus Obermayer Excel Worksheet Functions 1 January 4th 05 08:01 PM
VBA Command to Look at cell in an If statement Wolf New Users to Excel 3 December 27th 04 11:27 PM
How do I unhide the cell format function in Excel 2000 Len Melcer Excel Worksheet Functions 2 December 15th 04 06:49 PM


All times are GMT +1. The time now is 08:44 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"