View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Mike H Mike H is offline
external usenet poster
 
Posts: 11,501
Default Vvlookup and count

Freddy,

I may have misunderstood but this looks for Site 1 in column A and counts
how many times 2004 appears in the corresponding cell in column B

=SUMPRODUCT((A1:A27="Site 1")*(B1:B27=2004))

Mike

"Freddy" wrote:

I have a spreadsheet with a 450 rows and 2 columns

The first column is a list of sites and the second is a list dates
(2003-2007).

The second sheet is a summarised table of the sites and I have been trying
to produce a vlookup function that will also count how many times the dates
appear for those sites .

Does anyone know how to get the vlookup to count all the dates rather than
just display the first date it comes to.

I am trying to do this for 4 columns - 2003-2007

Thanks very much,
Freddy