Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Anauna
 
Posts: n/a
Default "count if" function based on value of another cell

Hello, (Excel 2003)
Column A contains list of buildings (25+ building names, 1000+ rows)
Column D contains a letter indicating if work done ("c")
Column E contains text indicating work not done ("n/c")

I would like to count the "c"'s grouped by Building name and in a separate
cell count the "n/c"'s grouped by Building name. I have tried VLookup with
CountIf without any luck.
--
Thank-you and all suggestions are appreciated.
  #2   Report Post  
BobT
 
Posts: n/a
Default

You can use sumproduct
check out the link below
http://www.xldynamic.com/source/xld.SUMPRODUCT.html


-----Original Message-----
Hello, (Excel 2003)
Column A contains list of buildings (25+ building names,

1000+ rows)
Column D contains a letter indicating if work done ("c")
Column E contains text indicating work not done ("n/c")

I would like to count the "c"'s grouped by Building name

and in a separate
cell count the "n/c"'s grouped by Building name. I have

tried VLookup with
CountIf without any luck.
--
Thank-you and all suggestions are appreciated.
.

  #3   Report Post  
Peo Sjoblom
 
Posts: n/a
Default

=SUMPRODUCT(--(A2:A500="building1"),--(C2:C500="c"))

=SUMPRODUCT(--(A2:A500="building1"),--(D2:D500="n/c"))

--

Regards,

Peo Sjoblom

"Anauna" wrote in message
...
Hello, (Excel 2003)
Column A contains list of buildings (25+ building names, 1000+ rows)
Column D contains a letter indicating if work done ("c")
Column E contains text indicating work not done ("n/c")

I would like to count the "c"'s grouped by Building name and in a separate
cell count the "n/c"'s grouped by Building name. I have tried VLookup

with
CountIf without any luck.
--
Thank-you and all suggestions are appreciated.



  #4   Report Post  
Bernie Deitrick
 
Posts: n/a
Default

Anauna,

Select your data table, then use Data Pivot Table. Drag the header from
column A to the row fields area, and your headers from Columns D and E to
the data field areas. You should then get a count of each for each
building.

HTH,
Bernie
MS Excel MVP

"Anauna" wrote in message
...
Hello, (Excel 2003)
Column A contains list of buildings (25+ building names, 1000+ rows)
Column D contains a letter indicating if work done ("c")
Column E contains text indicating work not done ("n/c")

I would like to count the "c"'s grouped by Building name and in a separate
cell count the "n/c"'s grouped by Building name. I have tried VLookup

with
CountIf without any luck.
--
Thank-you and all suggestions are appreciated.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Format cell in column B based on value in the next cell (column c) Nicole Excel Discussion (Misc queries) 7 May 18th 05 10:19 PM
How to keep the value of a cell not a function of the other cell galsaba Excel Worksheet Functions 1 February 16th 05 03:28 AM
Can I count in an array based on a function? HokieLawrence Excel Worksheet Functions 2 February 12th 05 03:05 AM
changing value of a cell based on another cell color Gary Excel Discussion (Misc queries) 2 January 30th 05 10:19 AM
Formula to return cell contents based on multiple conditions Bill Excel Worksheet Functions 3 January 19th 05 09:59 AM


All times are GMT +1. The time now is 06:55 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"