Solved

Frequency if adjacent cell not blank

Posted on 2011-09-13
2
170 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 500 total points
ID: 36530113
sorry, attachement not attached - here it is

barry
frequency-barry.xls
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
Excel can be a tricky bit of software to get your head around. Whilst you’ll be able to eventually get to grips with the basic understanding of how to get by, there are a few Excel tips that not everybody will even know about let alone know how to d…
The viewer will learn how to create a normally distributed random variable in Excel, use a normal distribution to simulate the return on an investment over a period of years, Create a Monte Carlo simulation using a normal random variable, and calcul…
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

861 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