Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Sam via OfficeKB.com
 
Posts: n/a
Default Return Summed Count of Multiple Consecutive Numeric Values

Hi All,

Return Summed Count of Multiple Consecutive (Duplicate) Numeric Values in
separate Columns -

I would like a Formula to Sum the Count of all Consecutive Doublets(2),
Triplets(3), Quadruplets(4), Quintuplets(5), Sextuplets(6), Septuplets(7) and
Octuplets(8) for specific Numeric Values and Return the Results to their
respective columns in my Results Table.

Data Table Layout:
Each Numeric value will be housed in its own separate column, so Numeric
Value 50 will only be in Column "E", Numeric Value 54 will only be in Column
"F" etc.

The Results Table will house the summed count of each Numeric Values'
CONSECUTIVE Doublets(2), Triplets(3), Quadruplets(4), Quintuplets(5),
Sextuplets(6), Septuplets(7) and Octuplets(8) appearance.

Results Table Layout:
Column "A" has individual unique Numeric Values on each Row .
Columns "B"-"H" House Consecutive Counts for each Numeric Value; "B"=Doublets
(2), "C"=Triplets(3), "D"=Quadruplets(4), "E"=Quintuplets(5), "F"=Sextuplets
(6), "G"=Septuplets(7) and "H"=Octuplets(8).

Sample Data - Data Table:
RowNo. Col "E" Col "F"
19 50 54
20 blank 54
21 50 54
22 50 blank
23 50 blank
24 blank blank
25 50 54
26 blank 54
27 50 blank
28 50 blank
29 blank 54
30 50 blank
31 50 blank
32 50 blank
33 50 blank
34 blank 54

The Blank Rows are the result of a Formula's "empty text".

Criteria for Counting Consecutive appearances of Numeric Values:
A Doublet is denoted by no more than two individual Consecutive appearances
of a Numeric Value separated by any number of Blank Cells. A Triplet is
denoted by no more than three individual Consecutive appearances of a Numeric
Value separated by any number of Blank Cells etc. A consecutive count ends
when a blank (empty text) cell appears.

Expected Results - Results Table:
Col "A" Col "B" Col "C" Col "D"
Numeric Value Doublets(2) Triplets(3) Quadruplets(4)
50 1 1 1
54 1 1 0

Cheers,
Sam

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200604/1
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Barb Reinhardt
 
Posts: n/a
Default Return Summed Count of Multiple Consecutive Numeric Values

You might want to try using COUNTIF with the range selected as desired.

"Sam via OfficeKB.com" wrote:

Hi All,

Return Summed Count of Multiple Consecutive (Duplicate) Numeric Values in
separate Columns -

I would like a Formula to Sum the Count of all Consecutive Doublets(2),
Triplets(3), Quadruplets(4), Quintuplets(5), Sextuplets(6), Septuplets(7) and
Octuplets(8) for specific Numeric Values and Return the Results to their
respective columns in my Results Table.

Data Table Layout:
Each Numeric value will be housed in its own separate column, so Numeric
Value 50 will only be in Column "E", Numeric Value 54 will only be in Column
"F" etc.

The Results Table will house the summed count of each Numeric Values'
CONSECUTIVE Doublets(2), Triplets(3), Quadruplets(4), Quintuplets(5),
Sextuplets(6), Septuplets(7) and Octuplets(8) appearance.

Results Table Layout:
Column "A" has individual unique Numeric Values on each Row .
Columns "B"-"H" House Consecutive Counts for each Numeric Value; "B"=Doublets
(2), "C"=Triplets(3), "D"=Quadruplets(4), "E"=Quintuplets(5), "F"=Sextuplets
(6), "G"=Septuplets(7) and "H"=Octuplets(8).

Sample Data - Data Table:
RowNo. Col "E" Col "F"
19 50 54
20 blank 54
21 50 54
22 50 blank
23 50 blank
24 blank blank
25 50 54
26 blank 54
27 50 blank
28 50 blank
29 blank 54
30 50 blank
31 50 blank
32 50 blank
33 50 blank
34 blank 54

The Blank Rows are the result of a Formula's "empty text".

Criteria for Counting Consecutive appearances of Numeric Values:
A Doublet is denoted by no more than two individual Consecutive appearances
of a Numeric Value separated by any number of Blank Cells. A Triplet is
denoted by no more than three individual Consecutive appearances of a Numeric
Value separated by any number of Blank Cells etc. A consecutive count ends
when a blank (empty text) cell appears.

Expected Results - Results Table:
Col "A" Col "B" Col "C" Col "D"
Numeric Value Doublets(2) Triplets(3) Quadruplets(4)
50 1 1 1
54 1 1 0

Cheers,
Sam

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200604/1

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Sam via OfficeKB.com
 
Posts: n/a
Default Return Summed Count of Multiple Consecutive Numeric Values

Hi Barb,

Not quite sure what you mean?

Can you give me an example using my data of how this will work with my
scenario?

Much appreciated.
Cheers,
Sam

Barb Reinhardt wrote:
You might want to try using COUNTIF with the range selected as desired.

Hi All,

[quoted text clipped - 57 lines]
Cheers,
Sam


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200604/1
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Domenic
 
Posts: n/a
Default Return Summed Count of Multiple Consecutive Numeric Values

Let G18:H18 contain 50 and 54

G19, copied across:

=IF(E19=G$18,1,0)

G20, copied down and across:

=IF(E20=G$18,G19+1,0)

Let J18:L18 contain 2, 3, and 4

Let I19:I20 contain 50 and 54

J19, copied down and across:

=SUMPRODUCT(--(OFFSET($G$19:$G$34,0,MATCH($I19,$G$18:$H$18,0)-1)=J$18),--
(OFFSET($G$19:$G$34,1,MATCH($I19,$G$18:$H$18,0)-1)=0))

Hope this helps!

In article <5e9315c8ceab0@uwe, "Sam via OfficeKB.com" <u4102@uwe
wrote:

Hi All,

Return Summed Count of Multiple Consecutive (Duplicate) Numeric Values in
separate Columns -

I would like a Formula to Sum the Count of all Consecutive Doublets(2),
Triplets(3), Quadruplets(4), Quintuplets(5), Sextuplets(6), Septuplets(7) and
Octuplets(8) for specific Numeric Values and Return the Results to their
respective columns in my Results Table.

Data Table Layout:
Each Numeric value will be housed in its own separate column, so Numeric
Value 50 will only be in Column "E", Numeric Value 54 will only be in Column
"F" etc.

The Results Table will house the summed count of each Numeric Values'
CONSECUTIVE Doublets(2), Triplets(3), Quadruplets(4), Quintuplets(5),
Sextuplets(6), Septuplets(7) and Octuplets(8) appearance.

Results Table Layout:
Column "A" has individual unique Numeric Values on each Row .
Columns "B"-"H" House Consecutive Counts for each Numeric Value; "B"=Doublets
(2), "C"=Triplets(3), "D"=Quadruplets(4), "E"=Quintuplets(5), "F"=Sextuplets
(6), "G"=Septuplets(7) and "H"=Octuplets(8).

Sample Data - Data Table:
RowNo. Col "E" Col "F"
19 50 54
20 blank 54
21 50 54
22 50 blank
23 50 blank
24 blank blank
25 50 54
26 blank 54
27 50 blank
28 50 blank
29 blank 54
30 50 blank
31 50 blank
32 50 blank
33 50 blank
34 blank 54

The Blank Rows are the result of a Formula's "empty text".

Criteria for Counting Consecutive appearances of Numeric Values:
A Doublet is denoted by no more than two individual Consecutive appearances
of a Numeric Value separated by any number of Blank Cells. A Triplet is
denoted by no more than three individual Consecutive appearances of a Numeric
Value separated by any number of Blank Cells etc. A consecutive count ends
when a blank (empty text) cell appears.

Expected Results - Results Table:
Col "A" Col "B" Col "C" Col "D"
Numeric Value Doublets(2) Triplets(3) Quadruplets(4)
50 1 1 1
54 1 1 0

Cheers,
Sam

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Sam via OfficeKB.com
 
Posts: n/a
Default Return Summed Count of Multiple Consecutive Numeric Values

Hi Domenic,

Thank you very much - solution worked a treat - Brilliant!

Cheers,
Sam

Domenic wrote:
Let G18:H18 contain 50 and 54


G19, copied across:
=IF(E19=G$18,1,0)


G20, copied down and across:
=IF(E20=G$18,G19+1,0)


Let J18:L18 contain 2, 3, and 4
Let I19:I20 contain 50 and 54


J19, copied down and across:
=SUMPRODUCT(--(OFFSET($G$19:$G$34,0,MATCH($I19,$G$18:$H$18,0)-1)=J$18),--
(OFFSET($G$19:$G$34,1,MATCH($I19,$G$18:$H$18,0)-1)=0))


Hope this helps!


Hi All,

[quoted text clipped - 57 lines]
Cheers,
Sam


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200604/1
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Total Summed Count of Numeric Repeat (Paired /Double Instance) Criteria Sam via OfficeKB.com Excel Worksheet Functions 2 March 20th 06 02:29 AM
how to count unique values in excel based on multiple criteria IDBUGM Excel Worksheet Functions 3 March 15th 06 04:00 PM
return multiple corresponding values using INDEX BubbleGum Excel Worksheet Functions 2 January 5th 06 05:43 AM
Return Consecutive Values Sam via OfficeKB.com Excel Worksheet Functions 14 June 9th 05 01:21 AM
How to look up and return multiple values Wendy Excel Worksheet Functions 3 November 3rd 04 04:32 PM


All times are GMT +1. The time now is 10:46 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"