#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22
Default Formula help

What's the correct formula to do the following:

Sum ((If A2<0, then A2(-1)+(B2*B3), A20 then (B2*B3))
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 367
Default Formula help

On Nov 8, 3:23 pm, Siper1 wrote:
What's the correct formula to do the following:

Sum ((If A2<0, then A2(-1)+(B2*B3), A20 then (B2*B3))


What exactly do you need the sum for?

=if(A2<0, abs(A2)+(B2*B3),B2*B3)

hth carlo

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,059
Default Formula help

On Nov 7, 10:23 pm, Siper1 wrote:
What's the correct formula to do the following:

Sum ((If A2<0, then A2(-1)+(B2*B3), A20 then (B2*B3))


=if(A2<0, -A2 + B2*B3, B2*B3)

Alternatively:

=B2*B3 - min(0, A2)

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:21 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"