+ Reply to Thread
Results 1 to 3 of 3

Count each unique value in a coloumn and displaye an other place

  1. #1
    Registered User
    Join Date
    02-06-2014
    Location
    india
    MS-Off Ver
    Excel 2007
    Posts
    6

    Question Count each unique value in a coloumn and displaye an other place

    Hi I am new to vba.
    I want alittli help to all of you plz help me.
    I want to count each unique value in coloumn 'A' and sum respectivaly in coloumn 'B' and display this in same sheet an other place with unique values.

    I attached a sample sheet.
    plz plz plz plz help me.

    thanks alot in advance.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Count each unique value in a coloumn and displaye an other place

    You could use the COUNTIF and SUMIF functions.

    A B C D E F
    1 NAME DURATION NAME NO OF TIMES SUM OF DURATION
    2 Ajay
    0:30
    Ajay
    3
    1:20
    3 Rahul
    0:45
    Rahul
    2
    1:30
    4 Ashok
    0:25
    Ashok
    1
    0:25
    5 Lei
    1:00
    Lei
    2
    2:00
    6 Koko
    0:50
    Koko
    2
    1:25
    7 Ajay
    0:25
    8 Koko
    0:35
    9 Lei
    1:00
    10 Ajay
    0:25
    11 Rahul
    0:45

    Worksheet Formulas
    Cell Formula
    E2 =COUNTIF(A:A,D2)
    F2 =SUMIF(A:A,D2,B:B)
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Registered User
    Join Date
    05-23-2013
    Location
    California, USA
    MS-Off Ver
    Excel 2010
    Posts
    43

    Re: Count each unique value in a coloumn and displaye an other place

    There is a VBA way and a non-VBA way to do this.

    Since you are in the VBA section I'm assuming you want to do this pragmatically? If not then do what Alpha Frog suggested.

+ 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. [SOLVED] Count each unique value in coloumn 'a' and sum values in coloumn 'b'
    By vipin717 in forum Excel - New Users/Basics
    Replies: 5
    Last Post: 05-06-2014, 05:25 AM
  2. Replies: 0
    Last Post: 03-22-2012, 08:44 PM
  3. take SOME info from one coloumn and place it in another?
    By suttercain in forum Excel General
    Replies: 3
    Last Post: 04-09-2007, 02:35 PM
  4. [SOLVED] count cells in a coloumn with letter x in it
    By sarg in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-24-2005, 04:05 PM
  5. [SOLVED] How to make Unique coloumn in Excel sheet ?
    By V JHANJI in forum Excel General
    Replies: 2
    Last Post: 03-09-2005, 07:06 AM

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