Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-12-2014, 08:42 PM
Catalin.B Catalin.B is offline Count distinct entries only Windows Vista Count distinct entries only Office 2010 32bit
Expert
 
Join Date: May 2011
Location: Iaşi, România
Posts: 386
Catalin.B is on a distinguished road
Default

Hi gebobs,
The formula used in the attached file is:
=SUM(IF(FREQUENCY(IF($A$2:$A$27&$C$2:$C$27=A20&C20 ,MATCH($B$2:$B$27,$B$2:$B$27,0)),IF($A$2:$A$27&$C$ 2:$C$27=A20&C20,MATCH($B$2:$B$27,$B$2:$B$27,0)))>0 ,1))
It’s an array formula, needs to be confirmed with CSE (Ctrl+Shift+Enter, not just Enter after editing the formula)


The key is the IF condition that sends the Type Column to Frequency function, but only the rows that contains Flange&Chocolate, Flange&Vanilla,Widget&Chocolate in joined columns A and C.
There is a typo error in Log sheet, Type column in cell B21, Yellow value has a trailing space, that is wrongly identifying this row as unique. I recommend using data validation lists, to avoid errors like this.
Cheers,
Catalin
Attached Files
File Type: xlsx getdistinct.xlsx (16.5 KB, 9 views)
Reply With Quote
  #2  
Old 10-13-2014, 05:31 AM
gebobs gebobs is offline Count distinct entries only Windows 7 64bit Count distinct entries only Office 2010 64bit
Expert
Count distinct entries only
 
Join Date: Mar 2014
Location: Atlanta
Posts: 837
gebobs has a spectacular aura aboutgebobs has a spectacular aura about
Default

Quote:
Originally Posted by Sgt Rock View Post
To clarify, you prefer to solve via Excel and not VBA - correct?
Correct. But a VBA solution would be acceptable if nothing else presents itself. This would be a breeze in Access, but Access seems to have run its course.

Quote:
Originally Posted by Catalin.B View Post
The formula used in the attached file is:=SUM(IF(FREQUENCY(IF($A$2:$A$27&$C$2:$C$27=A20& C20,MATCH($B$2:$B$27,$B$2:$B$27,0)),IF($A$2:$A$27& $C$2:$C$27=A20&C20,MATCH($B$2:$B$27,$B$2:$B$27,0)) )>0,1))
Thanks. Very nice. But is there a way to just have formula in the Metrics tab? That would be preferable. The Log tab data will be imported from a database generated CSV and may be tens of thousands of lines long. If not, this may work.

Quote:
There is a typo error in Log sheet, Type column in cell B21, Yellow value has a trailing space, that is wrongly identifying this row as unique. I recommend using data validation lists, to avoid errors like this.
This was just dummy data I drummed up for the example. As above, that data will be database generated.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Formula to count entries as per month, year and submission wise from different sheets pinkacidpunk Excel 1 05-28-2013 08:26 AM
Clipboard - old entries whipwell Office 1 11-14-2012 02:18 AM
Count distinct entries only formula taking long time to distinct word gsrikanth Excel 2 03-18-2012 03:30 AM
colour of entries ntambomvu Outlook 0 03-15-2012 11:56 PM
Autocorrect entries with astrix at the end dswapp Word 2 02-14-2011 09:34 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 08:23 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft