+ Reply to Thread
Results 1 to 5 of 5

Count instances and represent in a column

  1. #1
    Forum Contributor
    Join Date
    02-23-2015
    Location
    Sweden
    MS-Off Ver
    2013
    Posts
    109

    Count instances and represent in a column

    Hello guys

    I found out this code

    its almost what I want

    See code

    Please Login or Register  to view this content.
    the code generate this result

    8KHdg5a.png


    but I want to get this result instead see below


    SrWMxNh.png



    Could someone help me to modify the code?

    Thank you in advance

  2. #2
    Valued Forum Contributor Naveed Raza's Avatar
    Join Date
    11-04-2012
    Location
    India, Hyderabad
    MS-Off Ver
    Excel, Access 2007/2010
    Posts
    1,338

    Re: Count instances and represent in a column

    Hi

    please provide sample workbook with desire output , not Images
    Thanks - Naveed
    -----------------------------
    If the suggestion helps you, then Click * to Add Reputation
    To Attach File: Go Advanced>>Manage Attachments>>Add Files (In Top Right Corner)>>SelectFiles>>.........Locate Your File(s)>>Upload Files>>Done (In Bottom Right)
    1. Use [code] code tags [\code]. It keeps posts clean, easy-to-read, and maintains VBA formatting.
    2. If you are happy with a solution to your problem, mark the thread as [SOLVED] using the tools at the top.

  3. #3
    Valued Forum Contributor bulina2k's Avatar
    Join Date
    11-20-2012
    Location
    Urziceni, Ialomita, Romania
    MS-Off Ver
    2019 and 365
    Posts
    861

    Re: Count instances and represent in a column

    you should replace the formula with:
    =IF(A2<>A3;COUNTIF($A2:A$3;A2);"")

    something like
    Please Login or Register  to view this content.
    Last edited by bulina2k; 05-26-2015 at 04:56 AM.
    .. and don't forget to have fun!
    Bogdan.

    mark SOLVED and Add Reputation if my answer pleases you

  4. #4
    Forum Contributor
    Join Date
    02-23-2015
    Location
    Sweden
    MS-Off Ver
    2013
    Posts
    109

    Re: Count instances and represent in a column

    Work as a charm!
    Last edited by elmnas; 05-26-2015 at 05:12 AM.

  5. #5
    Valued Forum Contributor bulina2k's Avatar
    Join Date
    11-20-2012
    Location
    Urziceni, Ialomita, Romania
    MS-Off Ver
    2019 and 365
    Posts
    861

    Re: Count instances and represent in a column

    mark SOLVED (and Add Reputation if my answer pleases you)

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 6
    Last Post: 10-30-2012, 01:45 AM
  2. Required code to cound and sum data in last row
    By dingdang in forum Excel General
    Replies: 3
    Last Post: 09-26-2012, 10:39 PM
  3. Using R1C1 to represent a entire column in VBA formulaArray
    By Lifeseeker in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 01-18-2012, 02:22 PM
  4. how to use the variable to represent the column
    By yjmmay34 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-02-2010, 03:56 AM
  5. My Countif formula is not accurately counting- Need to cound blank cells
    By mrgillus in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-10-2009, 02:59 PM

Tags for this Thread

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