+ Reply to Thread
Results 1 to 1 of 1

counting instances of numbers in a row based on contents of column heading and value

  1. #1
    Forum Contributor
    Join Date
    02-16-2008
    Location
    Mansfield, TX
    Posts
    324

    counting instances of numbers in a row based on contents of column heading and value

    Hello, I need to count the number of instances the number 2 and the number 3 appears in each row of an array. However, there are some conditions that need to be met. Please see attached sheet to understand how the data is set up as this is going to be tricky. Each column has a heading consisting of a sequence of numbers and periods (1.1.1, 1.1.2, 1.1.4, 1.2.4, 1.2.5, 1.3.1, 2.1.1, 2.1.2, 3.1.1, 3.1.2 etc.) 1.1.1 is a section of section of 1.1 and 1.1 is a subsection of section 1. The numbers represent critical (3) and major (2) violations of these subheadings and because of the way the violations are scored, only the highest level violation is counted when two or more violations are given in any particular subheading. So if there is a critical violation under section #1.1.1 and a major (2) in section #1.1.2, only the critical (3) violation is counted. I have highlighted some sections of data where there are multiple violations in a subheading.


    1. If the first three characters in the column headings are the same, only the first instance of the number is counted.

    2. If both numbers appear in congruent cells that meet the first condition only the highest number should be included in the count of "3", while the "2"'s would not be included.
    Attached Files Attached Files
    Last edited by dcgrove; 09-23-2010 at 03:57 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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