Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
I am trying to create a simple conditional format in a cell to multiply the
cell value if it is greater than 0 by a value in another column. I have tried =IF(D10,SUMPRODUCT(D1,O1),"") and =SUMIF(C1,"0",C1)*O1. The conditional format (colour) changes in the cell but, the cell value does not multiply by the $112 which is what is in cell O1. How else could I write this? |
#2
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
You're making your life way too complicated. Try the following formulas:
=if(d10,d1*o1,"") =if(c10,o1,0) Remember, the first formula will multiply by O1 (your $112) *only if* d1 is greater than 0. Regards, Fred. "Arizona" wrote in message ... I am trying to create a simple conditional format in a cell to multiply the cell value if it is greater than 0 by a value in another column. I have tried =IF(D10,SUMPRODUCT(D1,O1),"") and =SUMIF(C1,"0",C1)*O1. The conditional format (colour) changes in the cell but, the cell value does not multiply by the $112 which is what is in cell O1. How else could I write this? |
#3
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Conditional formatting can only change the format as specified but not the
cell value. -- Jacob "Arizona" wrote: I am trying to create a simple conditional format in a cell to multiply the cell value if it is greater than 0 by a value in another column. I have tried =IF(D10,SUMPRODUCT(D1,O1),"") and =SUMIF(C1,"0",C1)*O1. The conditional format (colour) changes in the cell but, the cell value does not multiply by the $112 which is what is in cell O1. How else could I write this? |
#4
![]()
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
![]()
Conditional formatting can't change the value of a cell; it just changes the
way the cell appears. You don't need a formula to highlight a cell which has a value greater than zero. Select the target cell (C1), then in the Conditional Formatting dialog, select "Cell Value Is", "greater than", and enter 0. Choose the formatting you want to apply, then click OK. If C1 is a calculated result (contains a formula), wrap an IF function around the formula in C1 to effect the conditional multiplication: =If((A1-(B1/B2))0,C1*O1,C1) In this example the formula in C1 had been =A1-(B1/B2). If you mean you want to manually enter a number in C1 and have it instantly multiply itself by the number in O1, it's not impossible but it is probably a bad idea. I suggest you test the value of C1 and do the multiplication in another cell: =If(C10,C1*O1,"") Hope this helps, Hutch "Arizona" wrote: I am trying to create a simple conditional format in a cell to multiply the cell value if it is greater than 0 by a value in another column. I have tried =IF(D10,SUMPRODUCT(D1,O1),"") and =SUMIF(C1,"0",C1)*O1. The conditional format (colour) changes in the cell but, the cell value does not multiply by the $112 which is what is in cell O1. How else could I write this? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Conditional SUMPRODUCT or SUMPRODUCT with Filters | Excel Worksheet Functions | |||
How best to use sumproduct instead of conditional sum: | Excel Worksheet Functions | |||
New Conditional Format Overriding Previous Conditional Format | Excel Discussion (Misc queries) | |||
VBA FOR USE OF CONDITIONAL SUMPRODUCT() | Excel Discussion (Misc queries) | |||
Sumproduct conditional | Excel Discussion (Misc queries) |