View Single Post
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JE McGimpsey JE McGimpsey is offline
external usenet poster
 
Posts: 4,624
Default formula using several colums

I can't tell with your linewrap what you're subtracting 50,000 or
100,000 from.

Assuming it's the values in A:D (e.g., SUM(A1:D1) for row 1), one way:


=MAX(SUM(A1:D1)-50000*(1+(COUNTIF(A1:D1,"*SX*")0)),0)

In article ,
jv wrote:

The formula would look in colums a b c d and if SX is present them the
formula would subtract $100,000 is result isd a minus it would put zero in
the cell, If SX is not present the formula would subtract $50,000 and if the
result is a minus it would put zero in the cell

A B C D E
F
HX WR VX SX $100,000 SX HX WR VX $150,000 HX VX SX
$75,000 WR VX HX SX $175,000
HX WR VX $200,000
HX SX VX HX WR VX
HX WX 11




"JE McGimpsey" wrote:

One way:

a) =MAX(A1-200000,0)


b) Not sure what you mean.

In article ,
jv wrote:

I need a formula that would subtract 200,000 from a cell and if the
result is
a minus, zero would be put in the cell.

I also need a formula that check coulme a, b, c, d and if a could exists
it
subtracts an amount from column f

Thanks in advance