Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2
Default Conditional format SUMPRODUCT

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,389
Default Conditional format SUMPRODUCT

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,520
Default Conditional format SUMPRODUCT

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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,069
Default Conditional format SUMPRODUCT

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
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
Conditional SUMPRODUCT or SUMPRODUCT with Filters Ted M H Excel Worksheet Functions 4 August 14th 08 07:50 PM
How best to use sumproduct instead of conditional sum: Gina[_2_] Excel Worksheet Functions 6 July 22nd 08 07:06 PM
New Conditional Format Overriding Previous Conditional Format Rene Excel Discussion (Misc queries) 3 February 27th 08 06:08 PM
VBA FOR USE OF CONDITIONAL SUMPRODUCT() FARAZ QURESHI Excel Discussion (Misc queries) 0 November 30th 07 12:10 PM
Sumproduct conditional Carl Excel Discussion (Misc queries) 5 August 10th 06 11:10 PM


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

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"