Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 5
Default IF THEN formula

I need 2 cells to multiply each other IF another
cell is greater than 0. I need the entire column drafted for such a IF THEN
formula. So for example column "A" from A1 through A40 if any cell
in that range (lets use A12 for example) is greater than 0 then B12 x C12.
As each cell in column A is filled with a number greater than 0 I need the
corresponding cells (B & C) to be multiplied and added to the total. Any help
is sincerely appreciated
  #2   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 2,722
Default IF THEN formula

Is the total you mention in column A?

Are you wanting this in VBA, or just a worksheet function like:
=IF(A140,B1*C1+A1,"Column A is not greater than 40")
--
Best Regards,

Luke M


"pyrenees" wrote:

I need 2 cells to multiply each other IF another
cell is greater than 0. I need the entire column drafted for such a IF THEN
formula. So for example column "A" from A1 through A40 if any cell
in that range (lets use A12 for example) is greater than 0 then B12 x C12.
As each cell in column A is filled with a number greater than 0 I need the
corresponding cells (B & C) to be multiplied and added to the total. Any help
is sincerely appreciated

  #3   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 5
Default IF THEN formula

Hi Luke,

No the total can be anywhere really but for the sake of the argument column
D will have the total. Basically each time I enter a value in any cell in
column A I want the corresponding cells (ie IF A18 is 0 then B18*C18) and
added to the overall total. I can create a single formula for 1 cell in
column A but I do not know how to create a formula for all cells in column A
with respect to cells in B & C. Am I making any sense here or confusing the
matter more?

"Luke M" wrote:

Is the total you mention in column A?

Are you wanting this in VBA, or just a worksheet function like:
=IF(A140,B1*C1+A1,"Column A is not greater than 40")
--
Best Regards,

Luke M


"pyrenees" wrote:

I need 2 cells to multiply each other IF another
cell is greater than 0. I need the entire column drafted for such a IF THEN
formula. So for example column "A" from A1 through A40 if any cell
in that range (lets use A12 for example) is greater than 0 then B12 x C12.
As each cell in column A is filled with a number greater than 0 I need the
corresponding cells (B & C) to be multiplied and added to the total. Any help
is sincerely appreciated

  #4   Report Post  
Posted to microsoft.public.excel.newusers
external usenet poster
 
Posts: 5
Default IF THEN formula

Just to add the entire column in "A" does not have to be 0 at once but
randomly as cell in "A" is added a value greater than 0 then the
corresponding cells B & C will be multiplied.

"Luke M" wrote:

Is the total you mention in column A?

Are you wanting this in VBA, or just a worksheet function like:
=IF(A140,B1*C1+A1,"Column A is not greater than 40")
--
Best Regards,

Luke M


"pyrenees" wrote:

I need 2 cells to multiply each other IF another
cell is greater than 0. I need the entire column drafted for such a IF THEN
formula. So for example column "A" from A1 through A40 if any cell
in that range (lets use A12 for example) is greater than 0 then B12 x C12.
As each cell in column A is filled with a number greater than 0 I need the
corresponding cells (B & C) to be multiplied and added to the total. Any help
is sincerely appreciated

  #5   Report Post  
Posted to microsoft.public.excel.newusers
Max Max is offline
external usenet poster
 
Posts: 9,221
Default IF THEN formula

Think this might do it, placed in say, C1:
=SUMPRODUCT((ISNUMBER(A1:A40))*(A1:A400),B1:B40*C 1:C40)

If you have numbers in cols B and C, with col A initially blank, then
randomly entering any number greater than zero within col A will return the
product of the corresponding numbers in cols B and C. Eg if you enter: 1 in
say A13, then C1 returns: B13*C13.
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
"pyrenees" wrote:
Just to add the entire column in "A" does not have to be 0 at once but
randomly as cell in "A" is added a value greater than 0 then the
corresponding cells B & C will be multiplied.


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



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