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:
 

Some videos you may like

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
Joined
Aug 31, 2005
Messages
5,828
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
Joined
Feb 24, 2011
Messages
89
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
 

Watch MrExcel Video

Forum statistics

Threads
1,109,033
Messages
5,526,373
Members
409,697
Latest member
christopherlewis1620

This Week's Hot Topics

Top