View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JP[_4_] JP[_4_] is offline
external usenet poster
 
Posts: 897
Default To Count or not to Count

Here's an array formula that will work

=SUM(IF(TargetCell=MyRange,1,0))

Where

TargetCell = cell in column S you want to look up
MyRange = range of cells you want to search

Keep in mind it's an array formula so it will slow down your worksheet
if you use too large a range, or use too many array formulas. For one
or two it won't be too bad.

HTH,
JP


On Aug 12, 2:56*pm, Greg in CO <Greg in
wrote:
I have a resource planning sheet. *In column A, I have a drop menu which
allows the user to select a job position which the think they may need. *In
column S, they can put the estimate hour for that job. *Column S is for
January.
I would like to count the entires in column S which equate to an entry in
column A. *I have tried countif, counta, nested if formulas...I am stumped. *
The logic should be "if there are entries in column A, count the
corresponding entries in column S. *Also, there is the same drop menu in
column C, which allows the user to indicate that they have an actual resource
with the desire job position assigned, and then the estimate or actual hours
for that assigned resource would also go into column S (or for in the column
for the month in question). *So, column S could have entries for planned
resources and for assigned resources.

Any help is appreciated...my brain hurts at the moment.