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

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying

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
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,168,033
Messages
5,856,941
Members
431,841
Latest member
jaybeem

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
Top