#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default IF Statement

I'm trying to setup a transaction report that keeps track of the total
transaction cost plus/minus fees. In my excel sheet I have quantity, price,
type (buy/sell), status (executed) and a total column.

In the total column, the formula I'm looking for is "if E5="executed" then
quantity*price + buy or quantity*price-sell)

The TRUE argument is "executed", if "executed" then buy or sell is true. The
argument is FALSE if "executed" is not in the parameter.

Any suggestions?


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 4,393
Default IF Statement

Not very clear:

Is this the scenario:
IF E5 = "executed" then
F5 gets price*quantity
ELSE
F5 gets nothing
END if
Then use =IF(D5="executed",, A5*B5 ,"")
-----------------------------
But if buy and sell come into play
IF E5 = "executed" then
IF c5 = "buy: then
F5 gets price*quantity
ELSE
F5 gets price*quality ' but here is
only one price field !
END IF
ELSE
F5 gets nothing
END if

=IF(D5="executed",IF(C5="buy",A5*B5,A5*B5),"") ' same answer no
matter what is in C5 !

best wishes
--
Bernard Liengme
Microsoft Excel MVP
http://people.stfx.ca/bliengme

"Kingdom" wrote in message
...
I'm trying to setup a transaction report that keeps track of the total
transaction cost plus/minus fees. In my excel sheet I have quantity,
price,
type (buy/sell), status (executed) and a total column.

In the total column, the formula I'm looking for is "if E5="executed" then
quantity*price + buy or quantity*price-sell)

The TRUE argument is "executed", if "executed" then buy or sell is true.
The
argument is FALSE if "executed" is not in the parameter.

Any suggestions?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,942
Default IF Statement

hi
can we see examples of the data.
also what results are you expecting if true and what results are you
expecting if false.
i may be confused but there may be a problem with this part...
if (E5="executed" then quantity*price + buy or quantity*price-sell)

regards
FSt1

"Kingdom" wrote:

I'm trying to setup a transaction report that keeps track of the total
transaction cost plus/minus fees. In my excel sheet I have quantity, price,
type (buy/sell), status (executed) and a total column.

In the total column, the formula I'm looking for is "if E5="executed" then
quantity*price + buy or quantity*price-sell)

The TRUE argument is "executed", if "executed" then buy or sell is true. The
argument is FALSE if "executed" is not in the parameter.

Any suggestions?


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
Can an If statement answer an If statement? M.A.Tyler Excel Discussion (Misc queries) 2 June 24th 07 04:14 AM
appending and IF statement to an existing IF statement spence Excel Worksheet Functions 1 February 28th 06 11:00 PM
if then statement DG Excel Worksheet Functions 6 September 24th 05 03:02 AM
If statement and Isblank statement Rodney C. Excel Worksheet Functions 0 January 18th 05 08:39 PM
Help please, IF statement/SUMIF statement Brad_A Excel Worksheet Functions 23 January 11th 05 02:24 PM


All times are GMT +1. The time now is 04:08 PM.

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"