Vlookup and Countif combo question?

Helener

New Member
Joined
Feb 23, 2009
Messages
18
This is tough to explain, hopefully someone can help. I have a spreadsheet with a worksheet named 'Current Days'. This worksheet shows Names of people in Column A (other infor in columns B-M)and various dates in Column N (i.e. 4/1/11). I need to create another worksheet within this spreadsheet with coinciding dates (i.e. Worksheet named 'Dates' in which Column A lists every date between 4/1/11 and 12/31/11 in Column A and returns the number of dates in worksheet 'Current Days' Row N with the corresponding date into Column B. (i.e. worksheet 'Current Day' Column N actually shows the date 4/2/11 five times in Column N, so I would like Worksheet named 'Dates' (which lists Column A as follows Cell A1= 4/1/11 and Cell A2=4/2/11 and Cell A3=4/3/11 and so on until 12/31/11) to return the count of 5 in Worksheet 'Dates' Cell A2. Can someone help me with this formula? Make sense? Thanks so much.:confused:
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Sounds like you just need COUNTIF

e.g

=COUNTIF('Current Days'!N:N,A2)

where A2 contains first date in 'Dates' sheet to count.
 
Upvote 0
Hi,

In your Dates sheet..

A1 = 04/01/11 drag that date down by holding left click on the little black box in the bottom right hand corner of the cell, and scrolling to the date required.

Formula for B1 =COUNTIF('Current Days'!N:N,A1) and drag that down by double clicking on the box in the bottom right corner.

Hope this helps...

Regards
 
Upvote 0

Forum statistics

Threads
1,214,919
Messages
6,122,259
Members
449,075
Latest member
staticfluids

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top