![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Mar 2002
Location: Manchester, UK
Posts: 95
|
If I have a cell containing a formula A1+A2+A3 which is conditionally formatted to turn blue if the resulting value is greater than (B1*0.7), how do I further expand this formula to incorporate a statement such as 'If C1 = "Turnip" then turn the cell blue only if the resulting value is greater than (B1*0.7+25) ?
I hope I have written this clearly enough to explain what I want to achieve. Oh, and this is not to be used in a turnip counting program if you were wondering. This is a purely hypothetical scenario! |
|
|
|
|
|
#2 | |
|
New Member
Join Date: Mar 2002
Location: London
Posts: 5
|
Quote:
Cell Value Is:: greater than:: =(b1*0.7)+if(c1="turnip",25,0) |
|
|
|
|
|
|
#3 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 50,317
|
Quote:
where I assume that E1 is the target cell for cond format. Aladin |
|
|
|
|
|
|
#4 |
|
Guest
Posts: n/a
|
Try this in the conditional format dialog assuming the cell you want to format is D1)
Condition 1: Select "Formula Is" and type in the formula =AND($C$1="turnip";$D$1=$B$1*0.7) Condition 2: Select "Formula Is" and type in the formula =AND($C$1<>"turnip";$D$1=$B$1*0.7+25) Choose the same formatting for both conditions. Marc |
|
|
|
#5 |
|
Board Regular
Join Date: Mar 2002
Location: Manchester, UK
Posts: 95
|
Thanks for the replies. With a crafty combination of all suggestions, the turnip counting world has been revolutionised!! Look out cabbages - here I come!
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|