Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Need help with complicated use of count background color of Ce

Searching for applied conditional formatting is extremely difficult in VBA.
If your colors are applied with conditional formatting, then you should be
doing your count based on the underlying condition and not the color of the
cells. then you would probably be better to use formulas instead of VBA as
I originally suggested.

--
Regards,
Tom Ogilvy


"Jane" wrote in message
...
I get what you are saying. I didn't think it through. I can do

conditional
formatting on the CountSummary sheet but can you still help me with the

vba
of counting from the other sheets and that whole procedure? Thanks.

"Mike Fogleman" wrote:

Jane, perhaps your lack of Excel knowledge has caused you to seek a

method
to solve the problem in an obscure way. Excel is a powerful number

cruncher,
not a coloring book. The color is there for highlighting, emphasizing

and
visually appealing, not for basing your calculations. If you would

explain
what you have, where you have it, and where you want to go with it, in

black
& white terms, then we may be able to show you the most efficient way to

get
you there. Once you're there, you can color it 'till your heart's

content.
I don't mean to sound harsh, but I believe you came here to learn

how
Excel can work for you, and I think you took a wrong turn in how to best

use
it. So now, Jane, gather up your problem and explain it to us as if we

were
blind.

Mike F
"Jane" wrote in message
...
Need help with complicated use of count background color of Cell

I have 3 spreadsheets within a workbook:

CountSummary is sheet1
Men is sheet2
Women is sheet3

CountSummary counts the data based on the color of the background

colors
in
the Men and Women spreadsheets

Men consists of data for John and Rob. The information related to

each
are
separated by a black filled cell which I use to separate their data.

Women consists of Jane and Mary formatted the same as "men"

In the "men" worksheet ..If the current month is AUG find previous

month
(i.e. JUL) in row 3 in columns F thru Q. [note the months are text in
row3
and formatted as Jan Feb Mar Apr May etc.]. [The real "previous

month"
date
formula is located in Cell A3 and is formatted "mmm"] Then in column

A
find
"John" and count all cells in the previous month with bright green
background
and stop counting or looking for green when you hit the first black
background in that same column, then in COUNTSUMMARY sheet look for

the
row
labeled "John" in column A and place the total count in COUNTSUMMARY

in
column H in the same row as "John" and change background of that cell

to
bright green. If the count is 0 then 0 IS NOT displayed and the
background
does not change color.

Then follow that same procedure but now count red cells and follow

same
procedures as above but put in column P.

Then I need to do the same thing for "Rob".

Then I need to go to the "Women" spreadsheet and do the exact same

thing
for
"Jane" and "Mary" and have the count information placed in the correct
cell
in SHEET1.

Any ideas on how to do this without having long winded VBA code?

Thanks
in
advance. I hope I made sense.






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
Count cells in range w/specific background color? Michael[_3_] Excel Worksheet Functions 3 November 8th 08 05:51 AM
count if font and background color condition is true Ivano Excel Worksheet Functions 3 February 28th 08 06:08 AM
how to count cells with specific format (background color)? Blackheartedowl Excel Discussion (Misc queries) 1 February 8th 06 08:21 AM
Default Border, Font Color, and Cell Background Color Elijah Excel Discussion (Misc queries) 1 October 28th 05 04:10 PM
How do you count cells with background color yellow? Stephanie D Excel Discussion (Misc queries) 6 October 18th 05 04:34 AM


All times are GMT +1. The time now is 03:55 AM.

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"