+ Reply to Thread
Results 1 to 3 of 3

Using CountIfS function on multiple lines of data...

  1. #1
    Registered User
    Join Date
    02-03-2009
    Location
    New Jersey
    MS-Off Ver
    Excel 2003
    Posts
    8

    Using CountIfS function on multiple lines of data...

    I am trying to use a countifs function (or any other function that will work) on my worksheet to count a number of "records" that meet certain criteria, in this case where the date is within the last 30 days. This would be easy enough if all my data for each "record" was on the same row, but I have it arranged where the data is spread out between 3 rows for each "record"

    Sample Data: (*RD signifies random data not relevant to this particular question)

    Formula: copy to clipboard
    Please Login or Register  to view this content.
    and so on...

    an example of what I want to count is the number of times Column B = "30yd" and the date is within 30 days from today. Being that the date field and the "30yd" field are on different rows, how can I accomplish this, if possible without reformatting my data to display on one line only?

  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Using CountIfS function on multiple lines of data...

    You could try running this macro with the cells in the first column highlighted. It fills in the missing dates so that you have the date and other data on the same line.

    Please Login or Register  to view this content.
    Open up the VBA editor by hitting ALT F11

    Insert a new module by hitting Insert - Module

    Paste the macro into the empty sheet

    Hit ALT F11 to get back to the worksheet.

    Run the macro by going to tools-macro in Excel 2003 or the view ribbon in Excel 2007/2010.
    Martin

  3. #3
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Re: Using CountIfS function on multiple lines of data...

    You could try running this macro with the cells in the first column highlighted. It fills in the missing dates so that you have the date and other data on the same line.

    Please Login or Register  to view this content.
    Open up the VBA editor by hitting ALT F11

    Insert a new module by hitting Insert - Module

    Paste the macro into the empty sheet

    Hit ALT F11 to get back to the worksheet.

    Run the macro by going to tools-macro in Excel 2003 or the view ribbon in Excel 2007/2010.

+ 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. Help with excluding multiple values from a COUNTIFS function.
    By MONEYBALLBINGO in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-17-2014, 10:30 AM
  2. [SOLVED] COUNTIFS using multiple criteria - maybe an OR function?
    By Calder in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-28-2014, 12:10 PM
  3. Need help using multiple criteria in second argument of CountIfs function
    By bclucas55 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 02-27-2014, 11:16 AM
  4. [SOLVED] How do I exclude a value using COUNTIFS function for multiple columns
    By kyknifeman in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-10-2014, 07:16 AM
  5. [SOLVED] Countifs function with multiple criteria in same column
    By sam99 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 08-28-2012, 09:10 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