Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Sam via OfficeKB.com
 
Posts: n/a
Default Arithmetical Mode of Criteria in Multiple Non-Adjacent columns

Hi All,

This is a variation to an earlier Posting resolved by Dominic.

Staying with Dominic's column referencing for the previous Post listed below;
I now wish to find the arithmetical MODE using the numerical value related to
each TEXT criterion located in the adjacent cell (to the left of the TEXT
criterion); i.e. Find the MODE value of the TEXT criterion "North" - the
corresponding numeric value is OFFSET one cell to the left of the TEXT
criterion "North" - same Row.

The Formula will still need to accommodate the 5 non-adjacent TEXT criteria
columns (B, D, F, H and J) to find all instances of "North" and the overall
MODE value.

Text criterion column B ="North" Numeric Value column A
Text criterion column D="North" Numeric Value column C
Text criterion column F="North" Numeric Value column E
Text criterion column H="North" Numeric Value column G
Text criterion column J="North" Numeric Value column I

All data starts from Row number one.
Row1 column B corresponds to the numeric value in Row1 column A
Row2 column B corresponds to the numeric value in Row2 column A
Row3 column B corresponds to the numeric value in Row3 column A etc.

Row1 column D corresponds to the numeric value in Row1 column C
Row2 column D corresponds to the numeric value in Row2 column C
Row3 column D corresponds to the numeric value in Row3 column C etc.


Thanks
Sam
------------------------------------------------------------------------------
---------------------
Previous Posting:-
http://www.officekb.com/Uwe/Forum.as...40OfficeKB.com


I wish to sum the count of a single TEXT criteria that is located in several
(5) non-adjacent columns - hundreds of rows. Also, should I choose to apply
filters: I require the Formula to show the summed count of ONLY Visible
Filtered cells. How can this best be achieved with minimum calculation /
processing overhead?

Dominic's working Formula:
Assuming that Columns B, D, F, H, and J are your five non-adjacent
columns, and that you want to count the total number of times the value
'North' is contained in those columns, whether the data is filtered or
not, try...

=SUMPRODUCT(SUBTOTAL(3,OFFSET(B2:B10,ROW(B2:B10)-MIN(ROW(B2:B10)),{0,2,4,
6,8},1))*(T(OFFSET(B2:B10,ROW(B2:B10)-MIN(ROW(B2:B10)),{0,2,4,6,8},1))="N
orth"))

To change the columns being evaluated, adjust the constant array
{0,2,4,6,8}. The 0 refers to the column being referenced or starting
point, in this case Column B. The 2 refers to the number of columns to
the right, in this case Column D, and so on. Also, adjust the range
accordingly.


--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200507/1
  #2   Report Post  
Domenic
 
Posts: n/a
Default

Try...

=MODE(IF(B1:J10="North",A1:I10))

....confirmed with CONTROL+SHIFT+ENTER.

Hope this helps!

In article ,
"Sam via OfficeKB.com" wrote:

Hi All,

This is a variation to an earlier Posting resolved by Dominic.

Staying with Dominic's column referencing for the previous Post listed below;
I now wish to find the arithmetical MODE using the numerical value related to
each TEXT criterion located in the adjacent cell (to the left of the TEXT
criterion); i.e. Find the MODE value of the TEXT criterion "North" - the
corresponding numeric value is OFFSET one cell to the left of the TEXT
criterion "North" - same Row.

The Formula will still need to accommodate the 5 non-adjacent TEXT criteria
columns (B, D, F, H and J) to find all instances of "North" and the overall
MODE value.

Text criterion column B ="North" Numeric Value column A
Text criterion column D="North" Numeric Value column C
Text criterion column F="North" Numeric Value column E
Text criterion column H="North" Numeric Value column G
Text criterion column J="North" Numeric Value column I

All data starts from Row number one.
Row1 column B corresponds to the numeric value in Row1 column A
Row2 column B corresponds to the numeric value in Row2 column A
Row3 column B corresponds to the numeric value in Row3 column A etc.

Row1 column D corresponds to the numeric value in Row1 column C
Row2 column D corresponds to the numeric value in Row2 column C
Row3 column D corresponds to the numeric value in Row3 column C etc.


Thanks
Sam
------------------------------------------------------------------------------
---------------------
Previous Posting:-
http://www.officekb.com/Uwe/Forum.as...-Count-of-Sing
le-Criteria-in-Multiple-Non-Adjacent#51459AF431552%40OfficeKB.com


I wish to sum the count of a single TEXT criteria that is located in several
(5) non-adjacent columns - hundreds of rows. Also, should I choose to apply
filters: I require the Formula to show the summed count of ONLY Visible
Filtered cells. How can this best be achieved with minimum calculation /
processing overhead?

Dominic's working Formula:
Assuming that Columns B, D, F, H, and J are your five non-adjacent
columns, and that you want to count the total number of times the value
'North' is contained in those columns, whether the data is filtered or
not, try...

=SUMPRODUCT(SUBTOTAL(3,OFFSET(B2:B10,ROW(B2:B10)-MIN(ROW(B2:B10)),{0,2,4,
6,8},1))*(T(OFFSET(B2:B10,ROW(B2:B10)-MIN(ROW(B2:B10)),{0,2,4,6,8},1))="N
orth"))

To change the columns being evaluated, adjust the constant array
{0,2,4,6,8}. The 0 refers to the column being referenced or starting
point, in this case Column B. The 2 refers to the number of columns to
the right, in this case Column D, and so on. Also, adjust the range
accordingly.

  #3   Report Post  
Sam via OfficeKB.com
 
Posts: n/a
Default

Hi Domenic,

Thanks for reply and ongoing help. Formula provides correct result.

Can this Formula be adapted to provide results for ONLY Visible Filtered
cells.

=MODE(IF(B1:J10="North",A1:I10))

....confirmed with CONTROL+SHIFT+ENTER.

Thanks
Sam

Domenic wrote:
Try...

=MODE(IF(B1:J10="North",A1:I10))

...confirmed with CONTROL+SHIFT+ENTER.

Hope this helps!

Hi All,

[quoted text clipped - 55 lines]
the right, in this case Column D, and so on. Also, adjust the range
accordingly.



--
Message posted via http://www.officekb.com
  #4   Report Post  
Domenic
 
Posts: n/a
Default

Try...

=MODE(IF((SUBTOTAL(3,OFFSET(B1:J10,ROW(B1:J10)-MIN(ROW(B1:J10)),0,1))0)*
(B1:J10="North"),A1:I10))

....confirmed with CONTROL+SHIFT+ENTER.

Hope this helps!

In article ,
"Sam via OfficeKB.com" wrote:

Hi Domenic,

Thanks for reply and ongoing help. Formula provides correct result.

Can this Formula be adapted to provide results for ONLY Visible Filtered
cells.

=MODE(IF(B1:J10="North",A1:I10))

...confirmed with CONTROL+SHIFT+ENTER.

Thanks
Sam

  #5   Report Post  
Sam via OfficeKB.com
 
Posts: n/a
Default

Hi Domenic,

Thank you, the Formula works great!

Cheers
Sam

Domenic wrote:
Try...

=MODE(IF((SUBTOTAL(3,OFFSET(B1:J10,ROW(B1:J10)-MIN(ROW(B1:J10)),0,1))0)*
(B1:J10="North"),A1:I10))

...confirmed with CONTROL+SHIFT+ENTER.

Hope this helps!

Hi Domenic,

[quoted text clipped - 9 lines]
Thanks
Sam



--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...tions/200507/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
MAX, MIN, MEAN, AVERAGE, MODE for multiple groups...how? || cypher || Excel Worksheet Functions 2 July 14th 05 06:44 PM
Mode Function with 2 Criteria bbrowers Excel Worksheet Functions 1 June 17th 05 03:57 PM
Multiple Criteria IF Nesting BethB Excel Worksheet Functions 2 May 17th 05 12:14 AM
Mode Function with Criteria DaveShoe Excel Worksheet Functions 1 April 6th 05 06:22 PM
Can I get the mode, min, and max with multiple criteria? BobT Excel Discussion (Misc queries) 1 February 15th 05 04:20 AM


All times are GMT +1. The time now is 06:11 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"