LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Help on counting occurences

Hi,
Could someone help on the following problem.
I have a sheet where all stock transactions are entered,each with a
unique reference id in say sheet1.I need to transfer this data to
another sheet and update the positions of the stock.Presently I have a
macro where in I enter the unique reference id and run to update the
information in the different sheet(say sheet2).The problem is that I
need to display this information in such a way that all transactions
are grouped together.For example the data on sheet1 may look like this

ref stock name transaction type qty position
260704/01 microsoft buy 50 open

after several other entries we may have the transaction for close
position

150804/01 micrsooft sell 50 close

now when I use the ref id to transfer data to sheet2 I will have this
close position after several entries.Is there a way I can push it up
to the row just after the open entry in sheet2.Also the qty 50 need
not be sold in one lot of 50 ,it could be sold in multiple
transactions (each with unique id) of differing qty(ex transaction1
-sell 25 ,transaction2-sell 25).Is there a way to count all the
occurences of the stock in a sheet1 and transfer the data together to
sheet 2.


Appreciate all the help I can get on this
regards
Krishna
 
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
Counting occurences of text DJ Excel Discussion (Misc queries) 7 September 24th 09 11:07 AM
Counting occurences of a name [email protected] Excel Worksheet Functions 3 October 8th 07 12:52 AM
Counting the occurences riomarde Excel Worksheet Functions 1 March 27th 06 09:00 PM
Counting Occurences Pete Excel Discussion (Misc queries) 7 May 2nd 05 08:28 PM
Counting Number of Occurences Darren Excel Discussion (Misc queries) 1 February 23rd 05 03:26 PM


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