VLookup Question

boingman7777

New Member
Joined
Apr 11, 2009
Messages
3
I'm currently trying to use a macro to look up data associated with a particular date (from pull down bars) :confused:

ex. I have data of attendance ranging from Sept 1st to September 30th...

If I use pull down bars to select "September" --> "15th", how can I have excel automatically display "3000 people".

I use VLookup right?

Thanks!
 

Excel Facts

Best way to learn Power Query?
Read M is for (Data) Monkey book by Ken Puls and Miguel Escobar. It is the complete guide to Power Query.
I would use either COUNTIF:

Excel Workbook
ABCDE
1NameDateDate to CheckPeople
2Name13/1/20093/1/20094
3Name23/1/2009
4Name33/1/2009
5Name43/1/2009
6Name53/5/2009
7Name63/6/2009
8Name73/7/2009
9Name83/8/2009
10Name93/9/2009
11Name103/10/2009
12Name113/11/2009
13Name123/12/2009
14Name133/13/2009
15Name143/14/2009
16Name153/15/2009
17Name163/16/2009
18Name173/17/2009
19Name183/18/2009
20Name193/19/2009
Sheet2
 
Upvote 0
Where does the 3000 come from?

VLOOKUP will only return one value, if you want to get totals for particular dates or periods you'll need something else, perhaps the suggested COUNTIF.
 
Upvote 0

Forum statistics

Threads
1,215,831
Messages
6,127,146
Members
449,364
Latest member
AlienSx

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