#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 915
Default Frequency

rossmolden wrote:
I want to display what number appears in the same row the most with the
number 1.
So this example, would be 2 as it appears with 1 in the same row 3 times.

4 1 3 2
2 1
4 3 2
1
2 3 4 1


You can do this with some helper cells, but I'm not sure it will be
practical with your actual data.

Suppose your data is in A2:D6. In F1:H1 put 2,3, and 4. These are the
values for which we will determine frequency.

In F2 put this array* formula, and fill right and down through H6.
*Array formulae must be committed with Ctrl + Shift + Enter, not just Enter:

=SUM(IF($A2:$D2=1,COUNTIF($A2:$D2,F$1)))

This formula says, if there is a 1 in this row, count how many times
each other number appears in this row.

In F7 put this, and fill right through H7:

=SUM(F2:F6)

The largest value in F7:H7 reveals which test value in F1:H1 appears the
most with a 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
FREQUENCY HELP PLEASE JayNich Excel Worksheet Functions 3 December 20th 07 04:28 AM
Frequency.... I think DP7 Excel Worksheet Functions 1 July 10th 07 08:24 PM
Frequency Blackhawk.34 Excel Discussion (Misc queries) 4 February 7th 07 06:56 PM
histograms - frequency and relative frequency? confusedstudent Excel Discussion (Misc queries) 2 February 8th 06 08:20 AM
frequency sara Excel Discussion (Misc queries) 1 April 5th 05 08:15 PM


All times are GMT +1. The time now is 09:34 AM.

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

About Us

"It's about Microsoft Excel"