Solved

Frequency if adjacent cell not blank

Posted on 2011-09-13
2
167 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

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

Dealing with unintended Excel Active-X resizing quirks (VBA code simulates "self correction") David Miller (dlmille) Intro Not everyone is a fan of Active-X controls in spreadsheets (as opposed to the UserForm approach, the older Form controls …
Convert between Excel file formats (.XLS, .XLSX, .XLSM) with/without macro option David Miller (dlmille) Intro Over this past Fall, I've had the opportunity to see several similar requests and have developed a couple related solutions associate…
The viewer will learn how to simulate a series of coin tosses with the rand() function and learn how to make these “tosses” depend on a predetermined probability. Flipping Coins in Excel: Enter =RAND() into cell A2: Recalculate the random variable…
This Micro Tutorial will demonstrate in Google Sheets how to use the HYPERLINK function to create live links inside your spreadsheet.

708 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now