A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Conditional statements



 
 
Thread Tools Display Modes
  #1  
Old January 7th, 2008, 10:48 AM posted to microsoft.public.excel.worksheet.functions
james[_4_]
external usenet poster
 
Posts: 17
Default Conditional statements

I have three cells a1, b1 and c1 that should indicate green, yellow and red
respectively when values and range of values are given in say cell e1. The
values corresponding to the cells a1, b1 and c1 could be 100, 90 =X=95 and
90 respectively. What formula should I use for each cell.
Thanks in advance

James
  #2  
Old January 7th, 2008, 11:43 AM posted to microsoft.public.excel.worksheet.functions
Bob Phillips
external usenet poster
 
Posts: 5,994
Default Conditional statements

Don't start a new thread on the same topic, you will confuse and others will
get incomplete info.

--
---
HTH

Bob


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



"james" wrote in message
...
I have three cells a1, b1 and c1 that should indicate green, yellow and red
respectively when values and range of values are given in say cell e1. The
values corresponding to the cells a1, b1 and c1 could be 100, 90 =X=95
and
90 respectively. What formula should I use for each cell.
Thanks in advance

James



  #3  
Old January 7th, 2008, 11:43 AM posted to microsoft.public.excel.worksheet.functions
Pete_UK
external usenet poster
 
Posts: 8,780
Default Conditional statements

Do you mean that E1 contains a value that you want to colour-code
according to the values in A1 to C1 ? Or do you want the values in
A1:C1 to be colour coded? What do you want to happen if you have a
value between 95 and 100 ?

Pete

On Jan 7, 10:48*am, james wrote:
I have three cells a1, b1 and c1 that should indicate green, yellow and red
respectively when values and range of values are given in say cell e1. The
values corresponding to the cells a1, b1 and c1 could be 100, 90 =X=95 and
90 respectively. What formula should I use for each cell.
Thanks in advance

James


  #4  
Old January 7th, 2008, 12:22 PM posted to microsoft.public.excel.worksheet.functions
james[_4_]
external usenet poster
 
Posts: 17
Default Conditional statements

Hi Pete
E1 contains a value that will return green for a1 or yellow for b1 or red
for c1 depending on the e1 value. I would have b1 to be yellow and all the
others blank if the value in e1 is between 95 and 100.


"Pete_UK" wrote:

Do you mean that E1 contains a value that you want to colour-code
according to the values in A1 to C1 ? Or do you want the values in
A1:C1 to be colour coded? What do you want to happen if you have a
value between 95 and 100 ?

Pete

On Jan 7, 10:48 am, james wrote:
I have three cells a1, b1 and c1 that should indicate green, yellow and red
respectively when values and range of values are given in say cell e1. The
values corresponding to the cells a1, b1 and c1 could be 100, 90 =X=95 and
90 respectively. What formula should I use for each cell.
Thanks in advance

James



  #5  
Old January 7th, 2008, 12:25 PM posted to microsoft.public.excel.worksheet.functions
james[_4_]
external usenet poster
 
Posts: 17
Default Conditional statements

I am sorry david but its because I thought I hadnt made myself clear moreover
I am quiet new to excel and the these process. I hope you can help.


"Bob Phillips" wrote:

Don't start a new thread on the same topic, you will confuse and others will
get incomplete info.

--
---
HTH

Bob


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



"james" wrote in message
...
I have three cells a1, b1 and c1 that should indicate green, yellow and red
respectively when values and range of values are given in say cell e1. The
values corresponding to the cells a1, b1 and c1 could be 100, 90 =X=95
and
90 respectively. What formula should I use for each cell.
Thanks in advance

James




  #6  
Old January 7th, 2008, 01:00 PM posted to microsoft.public.excel.worksheet.functions
David Biddulph
external usenet poster
 
Posts: 8,714
Default Conditional statements

If you want B1 to turn yellow if E1 is between 95 and 100, then in B1 use
Format/ Conditional Formatting/ Formula Is
=AND(E195,E1100) then set your yellow pattern in the format options.
--
David Biddulph

"james" wrote in message
...
Hi Pete
E1 contains a value that will return green for a1 or yellow for b1 or red
for c1 depending on the e1 value. I would have b1 to be yellow and all the
others blank if the value in e1 is between 95 and 100.


"Pete_UK" wrote:

Do you mean that E1 contains a value that you want to colour-code
according to the values in A1 to C1 ? Or do you want the values in
A1:C1 to be colour coded? What do you want to happen if you have a
value between 95 and 100 ?

Pete

On Jan 7, 10:48 am, james wrote:
I have three cells a1, b1 and c1 that should indicate green, yellow and
red
respectively when values and range of values are given in say cell e1.
The
values corresponding to the cells a1, b1 and c1 could be 100, 90
=X=95 and
90 respectively. What formula should I use for each cell.
Thanks in advance

James





  #7  
Old January 7th, 2008, 01:51 PM posted to microsoft.public.excel.worksheet.functions
james[_4_]
external usenet poster
 
Posts: 17
Default Conditional statements

David thanks for your help but I dont understand what you mean by setting the
yellow pattern in the format options.

"David Biddulph" wrote:

If you want B1 to turn yellow if E1 is between 95 and 100, then in B1 use
Format/ Conditional Formatting/ Formula Is
=AND(E195,E1100) then set your yellow pattern in the format options.
--
David Biddulph

"james" wrote in message
...
Hi Pete
E1 contains a value that will return green for a1 or yellow for b1 or red
for c1 depending on the e1 value. I would have b1 to be yellow and all the
others blank if the value in e1 is between 95 and 100.


"Pete_UK" wrote:

Do you mean that E1 contains a value that you want to colour-code
according to the values in A1 to C1 ? Or do you want the values in
A1:C1 to be colour coded? What do you want to happen if you have a
value between 95 and 100 ?

Pete

On Jan 7, 10:48 am, james wrote:
I have three cells a1, b1 and c1 that should indicate green, yellow and
red
respectively when values and range of values are given in say cell e1.
The
values corresponding to the cells a1, b1 and c1 could be 100, 90
=X=95 and
90 respectively. What formula should I use for each cell.
Thanks in advance

James





  #8  
Old January 7th, 2008, 02:07 PM posted to microsoft.public.excel.worksheet.functions
james[_4_]
external usenet poster
 
Posts: 17
Default Conditional statements

Sorry David but I am not getting any results

"David Biddulph" wrote:

If you want B1 to turn yellow if E1 is between 95 and 100, then in B1 use
Format/ Conditional Formatting/ Formula Is
=AND(E195,E1100) then set your yellow pattern in the format options.
--
David Biddulph

"james" wrote in message
...
Hi Pete
E1 contains a value that will return green for a1 or yellow for b1 or red
for c1 depending on the e1 value. I would have b1 to be yellow and all the
others blank if the value in e1 is between 95 and 100.


"Pete_UK" wrote:

Do you mean that E1 contains a value that you want to colour-code
according to the values in A1 to C1 ? Or do you want the values in
A1:C1 to be colour coded? What do you want to happen if you have a
value between 95 and 100 ?

Pete

On Jan 7, 10:48 am, james wrote:
I have three cells a1, b1 and c1 that should indicate green, yellow and
red
respectively when values and range of values are given in say cell e1.
The
values corresponding to the cells a1, b1 and c1 could be 100, 90
=X=95 and
90 respectively. What formula should I use for each cell.
Thanks in advance

James





  #9  
Old January 7th, 2008, 02:16 PM posted to microsoft.public.excel.worksheet.functions
David Biddulph
external usenet poster
 
Posts: 8,714
Default Conditional statements

If you are using Format/ Conditional Formatting ..., you'll see a button
labelled Format... (on Excel 2003 it's at the right hand side of the
Conditional Formatting dialogue box for "Cell Value Is" or "Formula Is").
In there is a tab labelled "Patterns", and that will let you set the
background coulour of the cell to Yellow, or whatever other colour you
select, if the Conditions you specified are satisfied.

Your other thread (entitled "Formula" which is likely to make it difficult
to trace and follow - next time please use a more specific thread title) now
seems to be talking not of colouring the cell, but of putting the word
Yellow into the cell, in which case you don't want Conditional Formatting
but you merely need to enter a formula in cell B1:
=IF(AND(E195,E1100),"yellow","")

You can, if you wish, use both approaches in parallel, and put the word
yellow and change the colour of the cell.

[As you have ben struggling to ask your question in such as way as to get
the reply you are looking for, try reading the advice at
http://www.cpearson.com/excel/newposte.htm]
--
David Biddulph

"james" wrote in message
...
David thanks for your help but I dont understand what you mean by setting
the
yellow pattern in the format options.

"David Biddulph" wrote:

If you want B1 to turn yellow if E1 is between 95 and 100, then in B1 use
Format/ Conditional Formatting/ Formula Is
=AND(E195,E1100) then set your yellow pattern in the format options.
--
David Biddulph

"james" wrote in message
...
Hi Pete
E1 contains a value that will return green for a1 or yellow for b1 or
red
for c1 depending on the e1 value. I would have b1 to be yellow and all
the
others blank if the value in e1 is between 95 and 100.


"Pete_UK" wrote:

Do you mean that E1 contains a value that you want to colour-code
according to the values in A1 to C1 ? Or do you want the values in
A1:C1 to be colour coded? What do you want to happen if you have a
value between 95 and 100 ?

Pete

On Jan 7, 10:48 am, james wrote:
I have three cells a1, b1 and c1 that should indicate green, yellow
and
red
respectively when values and range of values are given in say cell
e1.
The
values corresponding to the cells a1, b1 and c1 could be 100, 90
=X=95 and
90 respectively. What formula should I use for each cell.
Thanks in advance

James







  #10  
Old January 7th, 2008, 03:07 PM posted to microsoft.public.excel.worksheet.functions
james[_4_]
external usenet poster
 
Posts: 17
Default Conditional statements

Thanks David it worked. Its been great knowing you

"james" wrote:

Sorry David but I am not getting any results

"David Biddulph" wrote:

If you want B1 to turn yellow if E1 is between 95 and 100, then in B1 use
Format/ Conditional Formatting/ Formula Is
=AND(E195,E1100) then set your yellow pattern in the format options.
--
David Biddulph

"james" wrote in message
...
Hi Pete
E1 contains a value that will return green for a1 or yellow for b1 or red
for c1 depending on the e1 value. I would have b1 to be yellow and all the
others blank if the value in e1 is between 95 and 100.


"Pete_UK" wrote:

Do you mean that E1 contains a value that you want to colour-code
according to the values in A1 to C1 ? Or do you want the values in
A1:C1 to be colour coded? What do you want to happen if you have a
value between 95 and 100 ?

Pete

On Jan 7, 10:48 am, james wrote:
I have three cells a1, b1 and c1 that should indicate green, yellow and
red
respectively when values and range of values are given in say cell e1.
The
values corresponding to the cells a1, b1 and c1 could be 100, 90
=X=95 and
90 respectively. What formula should I use for each cell.
Thanks in advance

James





 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 06:33 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.