Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 02-26-2015, 10:57 PM
Alaska1 Alaska1 is offline Counting multiple data in cell more than once Windows 7 64bit Counting multiple data in cell more than once Office 2007
Advanced Beginner
Counting multiple data in cell more than once
 
Join Date: Nov 2011
Posts: 96
Alaska1 is on a distinguished road
Default Counting multiple data in cell more than once


I have a data in a column that may be listed more than once. If the data is different in that cell the countif statement will pick it up. If the data is the same the countif statement is only picking it up once. For example if video is in the cell twice it is only picking it up once. Is there a formula will it will count all data regardless if it is in the cell twice or not. I have attached a sample. The first worksheet is where my formula is. The second worksheet has the data.
Attached Files
File Type: xlsx Test 2_26.xlsx (16.2 KB, 13 views)
Reply With Quote
  #2  
Old 02-27-2015, 05:56 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Counting multiple data in cell more than once Windows 7 64bit Counting multiple data in cell more than once Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,779
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

This should do it
Code:
=SUMPRODUCT(--(LEN(K6:K21)-LEN(SUBSTITUTE(UPPER(K6:K21);"VIDEO";"")))/LEN("Video"))
Adapt the range to your needs
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #3  
Old 02-27-2015, 06:14 AM
Alaska1 Alaska1 is offline Counting multiple data in cell more than once Windows 7 64bit Counting multiple data in cell more than once Office 2007
Advanced Beginner
Counting multiple data in cell more than once
 
Join Date: Nov 2011
Posts: 96
Alaska1 is on a distinguished road
Default

The data is in a Table because I will be making updates to this document. If I use the code below will that work.

=SUMPRODUCT(--(LEN(Table1)-LEN(SUBSTITUTE(UPPER(Table1);"VIDEO";"")))/LEN("Video"))

I will need to change it for the other categories in that field


=SUMPRODUCT(--(LEN(Table1)-LEN(SUBSTITUTE(UPPER(Table1);"BTS";"")))/LEN("BTS"))

Thank you for your help
Reply With Quote
  #4  
Old 03-01-2015, 04:27 PM
Alaska1 Alaska1 is offline Counting multiple data in cell more than once Windows 7 64bit Counting multiple data in cell more than once Office 2007
Advanced Beginner
Counting multiple data in cell more than once
 
Join Date: Nov 2011
Posts: 96
Alaska1 is on a distinguished road
Default

Thank you for your help. I adjusted the formula using sumproduct and it worked.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Counting multiple data in cell more than once Extracting data from a cell with multiple lines of text MMT Excel 9 02-12-2015 09:18 PM
Counting multiple data in cell more than once Looking for VBA or Macro Counting a specific value occuring in single, random, changing cell? blackjack Excel Programming 1 09-11-2014 11:27 PM
Multiple data in one cell? New Daddy Excel 4 09-06-2013 02:50 AM
Counting cells with multiple complex criteria TishyMouse Excel 12 12-06-2012 05:05 AM
Counting multiple data in cell more than once various data needs counting apples Excel 2 09-16-2012 04:52 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 01:25 PM.


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