Welcome to the Excel Forum

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed.

Please Register to Remove these Ads

Please Register to Remove these Ads



Reply
  #1  
Old 07-02-2009, 10:43 AM
MarkRyan MarkRyan is offline
Registered User
 
Join Date: 02 Jul 2009
Location: London, England
MS Office Version:Excel 2003
Posts: 1
MarkRyan is becoming part of the community
How to combine count and VLOOKUP??

Please Register to Remove these Ads

Hi there,

This is my first time ever posting a query so i hope my discriptin isn't to vauge and any help would be GREATLY appreciated.

I have a file with 3 tabs, "Contract" - "AllCollections" - "Analysis"

In "Contract" there is a fixed table with 26 columns and 3339 rows starting in cell A3 - Z3 (row 3 being titles). In column B there is a list of unique numbers (thus there are 3338 numbers in the list.

In "AllCollections" there is a table with 12 columns starting in cell A4 - L4 (first row being titles) and the rows are updated daily with more data. While data is updated daily each row will contain a number (one of the 3338 unique numbers) in column I.

In the "Analysis" tab i want to be able to count how many times the unique number appears in "AllCollections" (bearing in mind the list will grow each day so it can be there numerous times) and i want to be able to do that for all the numbers in "Contract".

Please let me know if you need a better explanation!

Much appreciated

Mark
Reply With Quote
  #2  
Old 07-02-2009, 04:37 PM
Laura2018 Laura2018 is offline
Registered User
 
Join Date: 02 Jul 2009
Location: US
MS Office Version:Excel 2003
Posts: 4
Laura2018 is becoming part of the community
Re: How to combine count and VLOOKUP??

If I am reading this correctly, you may be able to accomplish this with a pivot table and set it to count the unique number occurances.

Good Luck!
Reply With Quote
  #3  
Old 07-02-2009, 09:54 PM
kellyfspringer kellyfspringer is offline
Registered User
 
Join Date: 06 May 2009
Location: Pennsylvania, USA
MS Office Version:Excel 2007
Posts: 82
kellyfspringer has been very helpful
Re: How to combine count and VLOOKUP??

I'm thinking that you want to see the count for ALL of the numbers in "Contract", regardless of whether they show up on "AllCollections"
If that is the case, you can Copy Column B from "Contract" into Column A in "Analysis" then put this formula in Column B in "Analysis":
=COUNTIF(AllCollections!I:I,Analysis!A4)
You can fill this formula down to the end of your list.

The countif statement will count how many times it sees the number from Column A of Analysis in Column I of AllCollections.
No need for a vlookup.
Reply With Quote


Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
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 Off
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Forum Jump