Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Dom Dom is offline
external usenet poster
 
Posts: 46
Default Struggling to understand IF and conditional formatting

Two questions:

1) I want a cell to change colour to red if it does not match the value of
another cell. I can not seem to work out how this happens.

2) I want two cells to add together but only if one of the has a value of
over 100.
For this i was thinking if would be =IF(c2100, [=SUM(c2+c1)], [c1])
Basically I want c3 to show the value in c1 unless c2 is over 100 in which
case I want it to show the sum of the two.
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,118
Default Struggling to understand IF and conditional formatting

Try this:

1) Conditional formatting
If cell A2 should change color when its value does not match cell B2

Select the cell (assuming cell A2)
Then....From the Excel main menu:
<format<conditional formatting
Click the dropdown and select:
Formula is: =A2<B2
Click the [formatting] button and set the format
Click the [OK] buttons to finish

2) Conditional summing
C3: =C1+(C2100)*C2
or
C3: =C1+IF(C2100,C2,0)

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Dom" wrote:

Two questions:

1) I want a cell to change colour to red if it does not match the value of
another cell. I can not seem to work out how this happens.

2) I want two cells to add together but only if one of the has a value of
over 100.
For this i was thinking if would be =IF(c2100, [=SUM(c2+c1)], [c1])
Basically I want c3 to show the value in c1 unless c2 is over 100 in which
case I want it to show the sum of the two.

  #3   Report Post  
Posted to microsoft.public.excel.misc
Dom Dom is offline
external usenet poster
 
Posts: 46
Default Struggling to understand IF and conditional formatting

Thanks RC.

I've got the conditional summing to work however I am still struggling with
the conditional formatting. I'm using excel 2007 so the menu structure is a
little different to how you describe.

"Ron Coderre" wrote:

Try this:

1) Conditional formatting
If cell A2 should change color when its value does not match cell B2

Select the cell (assuming cell A2)
Then....From the Excel main menu:
<format<conditional formatting
Click the dropdown and select:
Formula is: =A2<B2
Click the [formatting] button and set the format
Click the [OK] buttons to finish

2) Conditional summing
C3: =C1+(C2100)*C2
or
C3: =C1+IF(C2100,C2,0)

Does that help?
***********
Regards,
Ron

XL2002, WinXP


"Dom" wrote:

Two questions:

1) I want a cell to change colour to red if it does not match the value of
another cell. I can not seem to work out how this happens.

2) I want two cells to add together but only if one of the has a value of
over 100.
For this i was thinking if would be =IF(c2100, [=SUM(c2+c1)], [c1])
Basically I want c3 to show the value in c1 unless c2 is over 100 in which
case I want it to show the sum of the two.

  #4   Report Post  
Posted to microsoft.public.excel.misc
dlw dlw is offline
external usenet poster
 
Posts: 510
Default Struggling to understand IF and conditional formatting

1.) Format/Conditional Formatting should work. If you pick red as the text
color, nothing will happen if the cell is blank, you need to make the
background red.

2.)that formula will work

"Dom" wrote:

Two questions:

1) I want a cell to change colour to red if it does not match the value of
another cell. I can not seem to work out how this happens.

2) I want two cells to add together but only if one of the has a value of
over 100.
For this i was thinking if would be =IF(c2100, [=SUM(c2+c1)], [c1])
Basically I want c3 to show the value in c1 unless c2 is over 100 in which
case I want it to show the sum of the two.

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,624
Default Struggling to understand IF and conditional formatting

1)
Assume the two cells are A1 and B1. With cell A1 active, choose
Format/Conditional formatting and set the dropdowns and input box to

CF1: Cell Value is not equal to =B1
Format1: <patterns/<red

2)

C3: =C1+IF(C2100,C2,0)


In article ,
Dom wrote:

Two questions:

1) I want a cell to change colour to red if it does not match the value of
another cell. I can not seem to work out how this happens.

2) I want two cells to add together but only if one of the has a value of
over 100.
For this i was thinking if would be =IF(c2100, [=SUM(c2+c1)], [c1])
Basically I want c3 to show the value in c1 unless c2 is over 100 in which
case I want it to show the sum of the two.



  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 620
Default Struggling to understand IF and conditional formatting

1) Conditional formatting:
Either
Cell value: not equal to: your other cell
or
Formula is: =A1<B1

2) =IF(C2100,C2+C1,C1)
Excel has help facilities for all functions (with the strange exception of
DATEDIF), and includes examples. It's worth looking at this when you are
trying to use functions with which you are unfamiliar.

One minor point is that you don't need SUM and + together. Either
SUM(C2,C1) or C2+C1 will do.
--
David Biddulph

"Dom" wrote in message
...
Two questions:

1) I want a cell to change colour to red if it does not match the value of
another cell. I can not seem to work out how this happens.

2) I want two cells to add together but only if one of the has a value of
over 100.
For this i was thinking if would be =IF(c2100, [=SUM(c2+c1)], [c1])
Basically I want c3 to show the value in c1 unless c2 is over 100 in which
case I want it to show the sum of the two.



  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 22,906
Default Struggling to understand IF and conditional formatting

Dom

1. FormatCFFormula is: =A1<A2

Note you can use $ signs to "fix" the cell references like =$A$1<$A$2

2. =IF(C2100,SUM(C2+C1),C1)


Gord Dibben MS Excel MVP


On Tue, 13 Feb 2007 09:46:00 -0800, Dom wrote:

Two questions:

1) I want a cell to change colour to red if it does not match the value of
another cell. I can not seem to work out how this happens.

2) I want two cells to add together but only if one of the has a value of
over 100.
For this i was thinking if would be =IF(c2100, [=SUM(c2+c1)], [c1])
Basically I want c3 to show the value in c1 unless c2 is over 100 in which
case I want it to show the sum of the two.


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
Struggling to plot where I want Scooby Jones Charts and Charting in Excel 3 October 31st 06 12:46 PM
Struggling IF value Rebecca Excel Discussion (Misc queries) 5 April 6th 06 09:52 PM
Please help, I've been struggling for weeks! Squeaker1066 Excel Worksheet Functions 11 March 21st 06 02:24 PM
Struggling Again With A VLOOKUP JohnK Excel Worksheet Functions 3 August 23rd 05 07:41 AM
Help, I'm Struggling! Fybo New Users to Excel 1 March 4th 05 07:57 PM


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