+ Reply to Thread
Results 1 to 6 of 6

Sum the total number of times a word appears in a column based on dates

  1. #1
    Forum Contributor
    Join Date
    07-30-2014
    Location
    Mosman, Australia
    MS-Off Ver
    2013
    Posts
    118

    Sum the total number of times a word appears in a column based on dates

    Hi there,

    Is there a macro where if I have the years dates in Column A (on spreadsheet 2), it totals up the amount of times a word i.e. "Hunter" appears in Column C on spreadsheet 1, but only if the dates in Column A from spreadsheet 2 match the dates in column H of spreadsheet 1.

    Basically:
    Spreadsheet 1
    Column C - Column H
    Brent - 22/06/2015
    Lucy - 22/06/2015
    Brent - 22/06/2015
    Adam - 23/06/2015
    Brent - 23/06/2015

    Spreadsheet 2
    Column A - Adam - Brent - Lucy
    22/06/2015 - 0 - 2 - 1
    23/06/2015 - 1 - 1 - 1

    Hopefullt that makes sense.

  2. #2
    Registered User
    Join Date
    10-07-2015
    Location
    Vancouver, BC, Canada
    MS-Off Ver
    Office 365
    Posts
    22

    Re: Sum the total number of times a word appears in a column based on dates

    please see the attached file
    do you mean that? If you have questions you could contact me on my blog
    Attached Files Attached Files
    Last edited by bsuperiorsystem; 10-27-2015 at 12:40 AM.

  3. #3
    Forum Contributor
    Join Date
    07-30-2014
    Location
    Mosman, Australia
    MS-Off Ver
    2013
    Posts
    118

    Re: Sum the total number of times a word appears in a column based on dates

    That formula's correct, i was hoping i could get it in a macro form as formula's make the workbook go slow, but i'll keep that formula, i couldn't remember how to write that formula so thanks!!

  4. #4
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,523

    Re: Sum the total number of times a word appears in a column based on dates

    You can simply convert bsuperiorsystem's nifty formula into a macro like so:

    Please Login or Register  to view this content.
    Though macros are never as efficient as native Excel formulas as VBA is not as fast as C# which is what Excel formulas are written in.

    Robert
    ____________________________________________
    Please ensure you mark your thread as Solved once it is. Click here to see how
    If this post helps, please don't forget to say thanks by clicking the star icon in the bottom left-hand corner of my post

  5. #5
    Forum Expert
    Join Date
    12-10-2006
    Location
    Sydney
    MS-Off Ver
    Office 365
    Posts
    3,523

    Re: Sum the total number of times a word appears in a column based on dates

    You can simply convert bsuperiorsystem's nifty formula into a macro like so:

    Please Login or Register  to view this content.
    Though macros are never as efficient as native Excel formulas as VBA is not as fast as C# which is what Excel formulas are written in.

    Robert

  6. #6
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,516

    Re: Sum the total number of times a word appears in a column based on dates

    If macro, Sheet2 should have only dates in col.A from A2 down and no need to prepare Names in row1.
    Please Login or Register  to view this content.

+ 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] Mindblank - Total number of times a name appears in a spreadsheet
    By M12NIX in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 03-10-2015, 06:16 PM
  2. [SOLVED] Formula to Rank the number of times a word appears in a column dynamic with Sorting
    By caliskier in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-02-2014, 04:26 PM
  3. [SOLVED] find a total of times a word appears across all the sheets in column "C"
    By NickB79 in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 12-20-2013, 10:28 AM
  4. [SOLVED] count number of times a word appears
    By m_789 in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 09-19-2013, 10:16 AM
  5. Total times each word appears
    By JPKenny in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 09-08-2010, 08:15 PM
  6. [SOLVED] count the number of times a specific word appears in a column
    By BAR in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-27-2006, 12:10 PM
  7. I want a box with the total number of times ORDER appears!
    By tapley in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 05-23-2006, 09:20 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