+ Reply to Thread
Results 1 to 10 of 10

getting the latest transaction

  1. #1
    Forum Contributor
    Join Date
    05-22-2006
    Posts
    103

    Exclamation getting the latest transaction

    hi,

    i want to create a function / macro for this scenario:

    if ID123456 has the status open dated 01/05/07 and the user later decided to change the status of ID123456 to closed on 03/05/07. The graph should count the number of closed then lessen the count of open because the previously open ID is already closed. please help me.

    thanks for the help.

    tweety127
    Last edited by tweety127; 03-05-2007 at 03:05 PM.

  2. #2
    Forum Contributor
    Join Date
    05-22-2006
    Posts
    103

    Unhappy automatically updates the worksheet

    Hi,

    i have this excel file where i need to update automatically the contents of the chart. here is the scenario:

    Sample data:

    ID Status date
    12 open 02/05/07
    12 closed 05/28/07
    15 closed 03/05/07
    25 open 03/06/07
    26 open 03/07/07
    35 open 03/08/07
    26 open 03/09/07
    28 closed 03/10/07
    26 closed 03/11/07
    14 open 03/12/07
    14 closed 03/13/07

    Summary:
    Closed - 5
    Open - 4

    as you can see above, i have 2 types of cases, closed and open and IDs have duplicates, this is for the

    reason that, a particular ID is logged first as open and when the user decided to changed its status he

    will log again that ID as closed. Once the ID has been closed, its previous ID (which is open) will now be

    disregarded.

    If I log ID35 as closed then

    Closed: 6
    Open: 3

    so on and so forth

    This transaction must update a graph that automatically update each time a Status is logged.

  3. #3
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    I get 5 open and 5 closed. Can you confirm which 4 you think are open

    VBA Noob
    _________________________________________


    Credo Elvem ipsum etian vivere
    _________________________________________
    A message for cross posters

    Please remember to wrap code.

    Forum Rules

    Please add to your signature if you found this link helpful. Excel links !!!

  4. #4
    Forum Contributor
    Join Date
    05-22-2006
    Posts
    103

    automatically updates worksheet

    im so sorry for the confusion...this should be the count of the status...im really sorry....

    closed - 12,15,28,26,14 (5)
    open - 25,35 (2)

    if i close 35 then...

    closed - 12,15,28,26,14,35 (6)
    open - 25 (1)

    if i close 25 then...
    closed - 12,15,28,26,14,35,25 (7)
    open - (0)

  5. #5
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    But in first your example 26 is 2 x Open. I'm confused.

    Can you have 2 x Open and any other info/more detailed examples ??

    VBA Noob

  6. #6
    Forum Contributor
    Join Date
    05-22-2006
    Posts
    103
    An Open Status can occur more than once per ID and should only be counted as 1....but only the Closed status can appear once per ID...and once the ID has been closed...the Closed summary will increase and the Open Summary will be decreased by 1 automatically.

  7. #7
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Can you have a close without a open e.g ID15

    VBA Noob

  8. #8
    Forum Contributor
    Join Date
    05-22-2006
    Posts
    103
    Yes, because there are instances wherein the IDs were closed immediatley and need not to log as Open....

  9. #9
    Forum Contributor VBA Noob's Avatar
    Join Date
    04-25-2006
    Location
    London, England
    MS-Off Ver
    xl03 & xl 07(Jan 09)
    Posts
    11,988
    Hopefully this might help

    VBA Noob
    Attached Files Attached Files

  10. #10
    Forum Contributor
    Join Date
    05-22-2006
    Posts
    103

    Thumbs up

    hi,

    THANK YOU SO MUCH FOR THE HELP!...

    one last thing, is there a way on how the formula will disregard the blank cells but still compute?...

    i tried to extend the range of the array and the cell reference but it returned an error value and does not compute accurately.

    THANKS SO MUCH!

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1