?
Solved

Frequency if adjacent cell not blank

Posted on 2011-09-13
2
Medium Priority
?
178 Views
Last Modified: 2012-05-12
I need to get the number of unique "thk" values if the "count" value is not blank.  In the example below I am expecting a return value of 3.  How can I do this?

thk      count
0.118      1
0.118      2
0.118      
0.394      2
0.394      
0.236      
0.5      
0.25      2
 frequency.xls
0
Comment
Question by:munch007
  • 2
2 Comments
 
LVL 50

Expert Comment

by:barry houdini
ID: 36530102
One way is to use this formula

=SUM(IF(FREQUENCY(IF(B2:B10<>"",IF(A2:A10<>"",MATCH(A2:A10,A2:A10,0))),ROW(A2:A10)-ROW(A2)+1),1))

confirmed with CTRL+SHIFT+ENTER

see attached

regards, barry
0
 
LVL 50

Accepted Solution

by:
barry houdini earned 2000 total points
ID: 36530113
sorry, attachement not attached - here it is

barry
frequency-barry.xls
0

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Some code to ensure data integrity when using macros within Excel. Also included code that helps secure your data within an Excel workbook.
This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
The viewer will learn how to create two correlated normally distributed random variables in Excel, use a normal distribution to simulate the return on different levels of investment in each of the two funds over a period of ten years, and, create a …
Graphs within dashboards are meant to be dynamic, representing data from a period of time that will change each time the dashboard is updated with new data. Rather than update each graph to point to a different set within a static set of data, t…

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question