Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 04-30-2014, 03:36 PM
Oceans Oceans is offline CountiF or CountiFs two columns conditions Windows XP CountiF or CountiFs two columns conditions Office 2003
Novice
CountiF or CountiFs two columns conditions
 
Join Date: Mar 2011
Posts: 11
Oceans is on a distinguished road
Default CountiF or CountiFs two columns conditions

Have Column B which has those numbers that are repeated
B7 993925968
B8 993925968
B9 993925968
B10 993925968
B11 992308642

I have column C which has a specific text message =
Blast Email

Now i need to get the Distinct Count of Column C
Since the numbers are repeated in column B, then the count for column C message should be 2.

But my formula =COUNTIF($C$9:$C$90,"Blast Email") does not work for me.



Attached an excel sheet with the example
Attached Files
File Type: xlsx Analysis Summary Report_Excel.xlsx (10.4 KB, 11 views)
Reply With Quote
  #2  
Old 04-30-2014, 04:14 PM
momentman momentman is offline CountiF or CountiFs two columns conditions Windows 7 64bit CountiF or CountiFs two columns conditions Office 2010 32bit
Novice
 
Join Date: Apr 2014
Location: Nigeria
Posts: 5
momentman is on a distinguished road
Default

Maybe you can attempt something like this:

=SUMPRODUCT((C9:C90="Blast Email")*(1/COUNTIF(B9:B90,B9:B90)))
Reply With Quote
  #3  
Old 04-30-2014, 04:30 PM
Oceans Oceans is offline CountiF or CountiFs two columns conditions Windows 7 64bit CountiF or CountiFs two columns conditions Office 2010 64bit
Novice
CountiF or CountiFs two columns conditions
 
Join Date: Mar 2011
Posts: 11
Oceans is on a distinguished road
Default

I found a discrepancy / glitch. the excel sheet i have sent was a sample with a small size data. The actual excel sheet has 1624 rows, so now the formula yields wrong count.




Quote:
Originally Posted by momentman View Post
Maybe you can attempt something like this:

=SUMPRODUCT((C9:C90="Blast Email")*(1/COUNTIF(B9:B90,B9:B90)))
Reply With Quote
  #4  
Old 04-30-2014, 04:49 PM
Oceans Oceans is offline CountiF or CountiFs two columns conditions Windows 7 64bit CountiF or CountiFs two columns conditions Office 2010 64bit
Novice
CountiF or CountiFs two columns conditions
 
Join Date: Mar 2011
Posts: 11
Oceans is on a distinguished road
Default

Have a look at the second sheet, numbers are off.

Bulk Update should not be 141.666


Quote:
Originally Posted by momentman View Post
Maybe you can attempt something like this:

=SUMPRODUCT((C9:C90="Blast Email")*(1/COUNTIF(B9:B90,B9:B90)))
Attached Files
File Type: xlsx Analysis Summary Report_Excel.xlsx (36.1 KB, 10 views)
Reply With Quote
  #5  
Old 05-01-2014, 06:10 AM
gebobs gebobs is offline CountiF or CountiFs two columns conditions Windows 7 64bit CountiF or CountiFs two columns conditions Office 2010 64bit
Expert
 
Join Date: Mar 2014
Location: Atlanta
Posts: 837
gebobs has a spectacular aura aboutgebobs has a spectacular aura about
Default

You're just trying to count the number of rows that have "Blast Email" in C? The equation in your first sheet was fine, it just did not include two rows, 7 and 8.

Oh wait...I guess I get it. You want the number of rows with Blast Email and distinct column B numbers. Let me ponder that.
Reply With Quote
  #6  
Old 05-01-2014, 07:43 AM
momentman momentman is offline CountiF or CountiFs two columns conditions Windows 7 64bit CountiF or CountiFs two columns conditions Office 2010 32bit
Novice
 
Join Date: Apr 2014
Location: Nigeria
Posts: 5
momentman is on a distinguished road
Default

I had to use a helper column

See uploaded sheet

https://www.dropbox.com/s/idwkcxs8pp...oaded_2003.xls
Reply With Quote
  #7  
Old 05-01-2014, 07:45 AM
Oceans Oceans is offline CountiF or CountiFs two columns conditions Windows 7 64bit CountiF or CountiFs two columns conditions Office 2010 64bit
Novice
CountiF or CountiFs two columns conditions
 
Join Date: Mar 2011
Posts: 11
Oceans is on a distinguished road
Default

I can't access DropBox from work.

Can you attach to your reply please.

Quote:
Originally Posted by momentman View Post
I had to use a helper column

See uploaded sheet

https://www.dropbox.com/s/idwkcxs8pp...oaded_2003.xls
Reply With Quote
  #8  
Old 05-01-2014, 07:52 AM
momentman momentman is offline CountiF or CountiFs two columns conditions Windows 7 64bit CountiF or CountiFs two columns conditions Office 2010 32bit
Novice
 
Join Date: Apr 2014
Location: Nigeria
Posts: 5
momentman is on a distinguished road
Default

See attached file
Attached Files
File Type: xlsx foruploaded.xlsx (56.8 KB, 10 views)
Reply With Quote
  #9  
Old 05-01-2014, 02:51 PM
Oceans Oceans is offline CountiF or CountiFs two columns conditions Windows 7 64bit CountiF or CountiFs two columns conditions Office 2010 64bit
Novice
CountiF or CountiFs two columns conditions
 
Join Date: Mar 2011
Posts: 11
Oceans is on a distinguished road
Default

Quote:
Originally Posted by momentman View Post
See attached file
This works perfect for me, Thanks a bunch.



Reply With Quote
  #10  
Old 05-01-2014, 04:14 PM
Oceans Oceans is offline CountiF or CountiFs two columns conditions Windows 7 64bit CountiF or CountiFs two columns conditions Office 2010 64bit
Novice
CountiF or CountiFs two columns conditions
 
Join Date: Mar 2011
Posts: 11
Oceans is on a distinguished road
Default

Quote:
Originally Posted by momentman View Post
See attached file
One More thing please, I have added the formula to Sheet3 to compare initial result to the actual count on Sheet1
and wanted to use the Find & select, Go to Special, Row Differences, so it can highlight the different rows, but since it is comparing a number in a cell to a formula in the other cell, all are highlighted as different. is there another trick to highlight the different cells ?, i have attached the file again.
Attached Files
File Type: xlsx foruploaded.xlsx (58.1 KB, 7 views)
Reply With Quote
  #11  
Old 05-02-2014, 01:22 AM
momentman momentman is offline CountiF or CountiFs two columns conditions Windows 7 64bit CountiF or CountiFs two columns conditions Office 2010 32bit
Novice
 
Join Date: Apr 2014
Location: Nigeria
Posts: 5
momentman is on a distinguished road
Default

I used conditional formatting. See attached worksheet
Attached Files
File Type: xlsx foruploaded (2).xlsx (58.9 KB, 8 views)
Reply With Quote
  #12  
Old 05-02-2014, 06:32 AM
Oceans Oceans is offline CountiF or CountiFs two columns conditions Windows 7 64bit CountiF or CountiFs two columns conditions Office 2010 64bit
Novice
CountiF or CountiFs two columns conditions
 
Join Date: Mar 2011
Posts: 11
Oceans is on a distinguished road
Default

Quote:
Originally Posted by momentman View Post
I used conditional formatting. See attached worksheet

Yes, that is how it should be
Thanks.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
COUNTIFS Help Needed OTPM Excel 2 04-09-2014 08:32 AM
CountiF or CountiFs two columns conditions multiple conditions, and blank cells with the countifs function jaden0605 Excel 1 03-30-2014 01:50 AM
Compound Countifs Query not working Lonercom Excel 5 06-28-2013 10:27 AM
CountiF or CountiFs two columns conditions Countifs and Sumproduct Algo Excel 6 11-13-2012 07:44 AM
countifs? sonyaturpin Excel 1 05-23-2012 08:29 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 05:45 AM.


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