# Vlookup and Countif combo question?

#### Helener

##### New Member
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.

### Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.

#### NBVC

##### Well-known Member
Sounds like you just need COUNTIF

e.g

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

where A2 contains first date in 'Dates' sheet to count.

#### mancemonster

##### Board Regular
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

#### Helener

##### New Member
AWESOME! Works great. Thank you all so much!

Replies
0
Views
34
Replies
4
Views
50
Replies
1
Views
49
Replies
1
Views
85
Replies
2
Views
41