+ Reply to Thread
Results 1 to 7 of 7

count duplicates in Column E in all worksheets and write their number in Column H

  1. #1
    Forum Contributor
    Join Date
    11-12-2007
    Location
    Germany
    MS-Off Ver
    2007
    Posts
    472

    count duplicates in Column E in all worksheets and write their number in Column H

    Hi,
    i have a very large wordlist which is devided into many worksheets. These words are in Column E. For example:

    Column E:

    apple
    tomato
    sweets
    apple
    apple
    tomato
    apple

    Now i need that the duplicates in column E in all worksheets are counted and their number is written in Column H. The list should then look like after running the macro:

    Column E.........Column H

    apple............... 4
    tomato............. 2
    sweets............. 1
    apple............... 4
    apple............... 4
    tomato............. 2
    apple............... 4

    Thank you very much for each help in advance.
    Attached Files Attached Files
    Last edited by wali; 08-13-2015 at 06:17 AM.

  2. #2
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: count duplicates in Column E in all worksheets and write their number in Column H

    With formula you could try,

    H2: =COUNTIF(E:E,E2)

    and copy down

    With vba, try something like,
    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    11-12-2007
    Location
    Germany
    MS-Off Ver
    2007
    Posts
    472

    Re: count duplicates in Column E in all worksheets and write their number in Column H

    dear berlan, thank you very much for your suggestion. I need to count duplicates in all worksheets. how do i do that?

  4. #4
    Forum Expert nilem's Avatar
    Join Date
    10-22-2011
    Location
    Ufa, Russia
    MS-Off Ver
    2013
    Posts
    3,377

    Re: count duplicates in Column E in all worksheets and write their number in Column H

    maybe so
    Please Login or Register  to view this content.

  5. #5
    Forum Expert
    Join Date
    02-22-2013
    Location
    London, UK
    MS-Off Ver
    Office 365
    Posts
    1,218

    Re: count duplicates in Column E in all worksheets and write their number in Column H

    To do the very same on col. E on all sheets, maybe:
    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    11-12-2007
    Location
    Germany
    MS-Off Ver
    2007
    Posts
    472

    Re: count duplicates in Column E in all worksheets and write their number in Column H

    Sorry i was not clear enough. With all sheets i meant that the word is counted in all worksheets. It means that i need total number of "apple" all sheets in column H.

    for example:

    apple is 20 times in worksheet1, 30 times in worksheet2 and 2 times in worksheet3, then i need in each corresponding H cell the number 52.

  7. #7
    Forum Contributor
    Join Date
    11-12-2007
    Location
    Germany
    MS-Off Ver
    2007
    Posts
    472

    Re: count duplicates in Column E in all worksheets and write their number in Column H

    Thank you both
    the code of nilem worked for me. You both are great. Thanks

+ 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: 2
    Last Post: 09-25-2013, 10:14 AM
  2. [SOLVED] Count Duplicates in Column A once as long as there is a number higher than 0 in Column B
    By armbands1 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 03-05-2013, 01:46 AM
  3. [SOLVED] Macro to count unique values in a column, enter it in next column, then delete duplicates
    By pmorisse in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-25-2013, 03:27 PM
  4. [SOLVED] I want to count the .com domains in a column.. How can I write a function for it?
    By Xebur13 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 12-14-2012, 07:25 PM
  5. [SOLVED] count the number of times each string appears in a column and make a summary column
    By intothewild in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-04-2012, 08:02 AM
  6. Count duplicates and put their number in next column
    By wali in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 02-21-2011, 05:59 PM
  7. combining worksheets-write a VBA to populate column B.
    By zapszipszops in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-09-2006, 11:55 PM
  8. [SOLVED] Count number of unique items in a column that contains duplicates
    By Steembeem in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-01-2005, 09:06 PM

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