+ Reply to Thread
Results 1 to 6 of 6

Major help Required

  1. #1
    Forum Contributor
    Join Date
    12-16-2006
    Posts
    349

    Question Major help Required


    I need a forumla to look at sheet 1 coloum J and see how many unique record there are. ie.
    Coloum J
    John
    John
    Andy
    Mark
    Mark
    Mark
    Irvine
    Irvine

    the answer would be John Andy Mark Irvine. Please could someone help me the formula I have had some trouble with it.

    Also once its found unique records I need it to do a counit if for each of them in that coloumn

    the answet being
    b2 b3
    John 2
    Andy 1
    Mark 3
    Irvine 2

    plus all this info needs to be paste in B2 sheet 2

    Help please spent 4 days on this cant make heads or tails of it.

  2. #2
    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
    Hi,

    Does the attached help.

    Use advance filter explained on the attached link

    http://www.contextures.com/xladvfilter01.html#FilterUR

    Then uses the countif function

    VBA Noob
    Attached Files Attached Files
    _________________________________________


    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 !!!

  3. #3
    Forum Contributor
    Join Date
    12-16-2006
    Posts
    349

    Unhappy thanks

    Thanks VBA NOOB your the best.. also how can i put a sumproduct formula for each of the names. I cant see where to add it into the code you gave me

    Please Login or Register  to view this content.
    Last edited by VBA Noob; 12-30-2006 at 02:41 PM.

  4. #4
    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
    If it' to replace the countif formula then change this line

    Range("IV2").FormulaR1C1 = "=COUNTIF(C[-246],RC[-1])"

    Try recording the action. On the stop recording toolbar select the relative relationship button next to the stop button.

    VBA Noob

  5. #5
    Forum Contributor
    Join Date
    12-16-2006
    Posts
    349

    the VBA

    its not what i was looking for but after breaking down your formula achieved all my goals for this project. Your a superstar VBA, goodluck and all the best


    Ps can u help with a new project ?

    I am trying to write a scipt that once a user from my list say (my list is John Ian Micheal Tony)

    Say tony puts a the Letter Y into column A SHEET1 a timer starts , if they close the file it stops and when Tony opens it up again the timer continues until they put a Y into column z sheet1

    then i need to write user name "TONY" "FILENAME" and TIMETAKEN onto my stats gathering sheets.

  6. #6
    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
    Hi,

    Thanks for the feedback.

    The new problem would be beyond my simple VBA skills so I would repost detailing what you want.

    These links might help

    http://msdn2.microsoft.com/en-us/lib...ffice.10).aspx

    http://www.ozgrid.com/News/worksheet-scroll-limit.htm

    VBA Noob

+ 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