#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,670
Default Formating

Hello all,
Is it possible to write into a macro a conditional format? What I want to
do is if the cell A3 is <A1 or 2 then turn A3 red and bolded. After that I
want Cell A5 to count the Red Bolded cells.

A1 A2 A3
A5
80 98 95 ~ this cell would be fine as it is 0

A1 A2 A3
A5
80 98 75 ~ this cell would be Red and Bolded 1

Hope someone can help....Thank you

Eric

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Formating

OR or AND?

I think AND, so use a CF formula of

=AND($A$1<A2,A22)

and count them with

=SUMPRODUCT(--(A2:A4$A$1),--(A2:A42))

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Eric" wrote in message
...
Hello all,
Is it possible to write into a macro a conditional format? What I want to
do is if the cell A3 is <A1 or 2 then turn A3 red and bolded. After that
I
want Cell A5 to count the Red Bolded cells.

A1 A2 A3
A5
80 98 95 ~ this cell would be fine as it is
0

A1 A2 A3
A5
80 98 75 ~ this cell would be Red and Bolded 1

Hope someone can help....Thank you

Eric



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,670
Default Formating

Bob,

What is the CF Formaula?

"Bob Phillips" wrote:

OR or AND?

I think AND, so use a CF formula of

=AND($A$1<A2,A22)

and count them with

=SUMPRODUCT(--(A2:A4$A$1),--(A2:A42))

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Eric" wrote in message
...
Hello all,
Is it possible to write into a macro a conditional format? What I want to
do is if the cell A3 is <A1 or 2 then turn A3 red and bolded. After that
I
want Cell A5 to count the Red Bolded cells.

A1 A2 A3
A5
80 98 95 ~ this cell would be fine as it is
0

A1 A2 A3
A5
80 98 75 ~ this cell would be Red and Bolded 1

Hope someone can help....Thank you

Eric




  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10,593
Default Formating

The Conditional Formatting formula.

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Eric" wrote in message
...
Bob,

What is the CF Formaula?

"Bob Phillips" wrote:

OR or AND?

I think AND, so use a CF formula of

=AND($A$1<A2,A22)

and count them with

=SUMPRODUCT(--(A2:A4$A$1),--(A2:A42))

--
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)

"Eric" wrote in message
...
Hello all,
Is it possible to write into a macro a conditional format? What I want
to
do is if the cell A3 is <A1 or 2 then turn A3 red and bolded. After
that
I
want Cell A5 to count the Red Bolded cells.

A1 A2 A3
A5
80 98 95 ~ this cell would be fine as it is
0

A1 A2 A3
A5
80 98 75 ~ this cell would be Red and Bolded 1

Hope someone can help....Thank you

Eric






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
formating WAM Excel Discussion (Misc queries) 1 November 14th 08 04:11 PM
Formating First Name and Last Name Chico Excel Discussion (Misc queries) 2 May 9th 08 03:05 PM
Install dates formating using conditional formating? Jerry Eggleston Excel Discussion (Misc queries) 2 November 9th 05 05:49 PM
Formating vdefilippo Excel Programming 5 May 4th 05 08:59 PM
Formating h:mm AM/PM Mike R Excel Discussion (Misc queries) 3 January 7th 05 02:12 AM


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