ExcelTip.com
Account Icon Account Icon Account Icon
ExcelTip.com

Go Back   Excel Help Forum > Usenet Groups > Excel 2007 Help

Notices

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 07-09-2008, 11:11 PM
THORmx THORmx is offline
Registered User
 
Join Date: 07 Jul 2008
Location: us
Posts: 12
THORmx is on a distinguished road
Counting "instances" ??

Hi,

This forum has been a GREAT help so far! Now i'm wondering another thing, and I don't know if it's even possible.

Say I have a column, and I want to find out how many times a certain thing occurs in that column. Like, I have aircraft tail numbers I have flown, and I want to know how many times i have flown them. Is there a way to do that??

Thanks
Reply With Quote
  #2  
Old 07-10-2008, 12:12 AM
ratcat's Avatar
ratcat ratcat is online now
Valued Forum Contributor
 
Join Date: 07 Mar 2008
Location: Rural NSW, Australia
Posts: 555
ratcat is on a distinguished road
Send a message via MSN to ratcat
G'day,

Yes this forum is addictive !

Try the COUNTIF formula

If have trouble with formula, post back an example, and will go from there.


Cheers
__________________

Office 2007

Any Feedback Welcomed

You have made the effort of asking a question.
Then make the effort to response to those are helpful enough to answer you.
Reply With Quote
  #3  
Old 07-10-2008, 01:49 AM
THORmx THORmx is offline
Registered User
 
Join Date: 07 Jul 2008
Location: us
Posts: 12
THORmx is on a distinguished road
I honestly have no idea how to use that formula, my knowledge is basic at best.

Basically, what I want it to do, is count the # of times, we'll say item "A" appears in a give column, and report it.

Better yet, i'd like it to look at a column, and somehow generate how many times, we'll say item "A, B, and C" appear, and list that for me. For example
A = 10
B = 4
C = 3

Or something.

I hope this example works, obviously, the one I want to do has about 400 entries:

Aircraft Ident
N423RM
N423RM
N420RM
N426RM
N420RM
N423RM
N422RM
N422RM
N423RM
N426RM
N426RM
N427RM
N423RM
N423RM
N426RM
N426RM
N426RM
N423RM
N426RM
N420RM
N420RM
N426RM
N427RM
N427RM
N422RM
N423RM
N423RM
N423RM
N431RM
N423RM
N422RM
N422RM
N422RM
N420RM
N427RM
N423RM
Reply With Quote
  #4  
Old 07-10-2008, 03:05 AM
flex flex is offline
Registered User
 
Join Date: 09 Jul 2008
Location: Melbourne
Posts: 33
flex is on a distinguished road
I would suggest playing around with pivot tables. They are very useful for something like this.

Under the insert tab - the first option.

Set your column of data as both the Row label and Value. THis should compile all of your data into a neat little table.

Let me know if you have any issues.
Reply With Quote
  #5  
Old 07-10-2008, 04:13 AM
THORmx THORmx is offline
Registered User
 
Join Date: 07 Jul 2008
Location: us
Posts: 12
THORmx is on a distinguished road
you sir, are f'in amazing and smart!

worked AWESOME, THANK YOU SO MUCH!
Reply With Quote
  #6  
Old 07-10-2008, 04:55 AM
THORmx THORmx is offline
Registered User
 
Join Date: 07 Jul 2008
Location: us
Posts: 12
THORmx is on a distinguished road
Now, just one little question? Is there a way to make it refresh and update automatically??

Thanks!
Reply With Quote
  #7  
Old 07-10-2008, 05:41 AM
oldchippy's Avatar
oldchippy oldchippy is offline
"Eagle Eyed" Forum Moderator
 
Join Date: 14 Feb 2005
Location: Worcester, UK
Posts: 5,905
oldchippy will become famous soon enough oldchippy will become famous soon enough
Hi,

Take a look here

http://www.exceltip.com/st/Automatic...eport/738.html

Or here "Refresh on Open"

http://www.bettersolutions.com/excel...T423111411.htm
__________________
oldchippy
-------------


Click here >>> Top Excel links for beginners to Experts

Forum Rules >>>Please don't forget to read these
Reply With Quote
  #8  
Old 07-10-2008, 06:17 AM
THORmx THORmx is offline
Registered User
 
Join Date: 07 Jul 2008
Location: us
Posts: 12
THORmx is on a distinguished road
thanks, that seemed to help
Reply With Quote
  #9  
Old 07-10-2008, 06:46 PM
THORmx THORmx is offline
Registered User
 
Join Date: 07 Jul 2008
Location: us
Posts: 12
THORmx is on a distinguished road
Ok, using the first link you gave me, I got it to work.

However, how do I get it to work with 2 different pivot tables?

This is the code for the first obviously. The two tables are in the same worksheet.

Option Explicit

Private Sub Worksheet_Activate()
ActiveSheet.PivotTables("PivotTable1").PivotCache.Refresh
End Sub


EDIT:

I think I got it, with this:
Option Explicit

Private Sub Worksheet_Activate()
ActiveSheet.PivotTables("PivotTable1").PivotCache.Refresh
ActiveSheet.PivotTables("PivotTable2").PivotCache.Refresh
End Sub

Now, anyway to make it so it doesn't always disable the macro?

Last edited by THORmx; 07-10-2008 at 06:51 PM.
Reply With Quote
Reply

Bookmarks

New topics in Excel 2007 Help


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump


All times are GMT -4. The time now is 12:26 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0