+ Reply to Thread
Results 1 to 3 of 3

Sum of some # of consecutive cells containing the same text info

  1. #1
    Registered User
    Join Date
    01-14-2007
    Posts
    1

    Sum of some # of consecutive cells containing the same text info

    Can someone pls help me with this. Its driving me crazy.... Its hard for me but could be so easy for another.

    I need to take the total number of 24 or more consecutive cells containing the same text info


    Ex for 3 or more consecutive cells

    3.5
    3.5
    3.5
    3.5
    NoData
    NoData
    NoData
    5.7
    NoData
    7.6
    Samp<
    Samp<
    Samp<
    5
    8
    Samp<
    NoData
    NoData
    NoData
    NoData
    NoData
    NoData

    Answer should be 12 (# of cells containing "NoData" 6+3, and # of cells containing "Samp<" 3)

    pls help

  2. #2
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    Could the attached worksheet be of any help ...?
    Attached Files Attached Files
    HTH
    Carim


    Top Excel Links

  3. #3
    Forum Contributor
    Join Date
    03-13-2005
    Posts
    6,195
    Quote Originally Posted by onemurat
    Can someone pls help me with this. Its driving me crazy.... Its hard for me but could be so easy for another.

    I need to take the total number of 24 or more consecutive cells containing the same text info


    Ex for 3 or more consecutive cells

    3.5
    3.5
    3.5
    3.5
    NoData
    NoData
    NoData
    5.7
    NoData
    7.6
    Samp<
    Samp<
    Samp<
    5
    8
    Samp<
    NoData
    NoData
    NoData
    NoData
    NoData
    NoData

    Answer should be 12 (# of cells containing "NoData" 6+3, and # of cells containing "Samp<" 3)

    pls help
    Hi,

    in B2 put

    =IF(AND(ISTEXT(A2),A2=A1),D1+1,0)

    and in C2 put

    =IF(AND(B3=0,B2>1),B2+1,"")

    and formula fill that down to the end of your data, then total the C column at the end

    This will include sets of 7 or 8 as well as the 3 & 6 shown in your example.

    hth
    ---
    Si fractum non sit, noli id reficere.

+ 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