Open stock postion formula question

ajr123

New Member
Joined
Apr 5, 2002
Messages
9
I have a worksheet which extracts buy and sell info that refrence a specific stock. The buys are in one column and the sells are in antoher. However they do not line up becasue of the way they extracted What I am looking to do is creat a formula that will reference the symbol in and return the sum of the buys and sells.There may be several lines of both so I would need it to sum all buys and sells that reference that symbol.
Any help on this would be great.
Thanks!
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
I have tried the Pivot tables but in order to do what I am looking to do its too slow, I was hoping their was a formula that would do the trick.

DSUM sounds good but I am not sure how to make this work any ideas.
Thanks
 
Upvote 0
Hi ajr123:
=DSUM(database,field,criteria)

database is your table reference where your data is located
field is the number of column from the left of your database which will be used for summing up
criteria is the range of cells that define the criteria that will be used to select which cells would be summed up .. this range must lie outside the table -- first row will have the field name(s), and the row(s)below will have the criteria associated with each field name
HTH!
 
Upvote 0
You could use Sumif

=SUMIF(rSym,A3,rBuy)-SUMIF(rSym,A3,rSell)
 
Upvote 0

Forum statistics

Threads
1,214,806
Messages
6,121,672
Members
449,045
Latest member
Marcus05

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top