Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 24
Default Count empty cells with a specific term

Hi I want to count the number of empty cells in column d if column a=x


what formula should I use then?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default Count empty cells with a specific term

try
=SUMPRODUCT(--(a2:a22="x")*--(TRIM(d2:d22)=""))

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"FreddieP" wrote in message
...
Hi I want to count the number of empty cells in column d if column a=x


what formula should I use then?


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Count empty cells with a specific term

Do you need the double unary minus if you use * for multiplication, Don?
--
David Biddulph

"Don Guillett" wrote in message
...
try
=SUMPRODUCT(--(a2:a22="x")*--(TRIM(d2:d22)=""))

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"FreddieP" wrote in message
...
Hi I want to count the number of empty cells in column d if column a=x


what formula should I use then?




  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 10,124
Default Count empty cells with a specific term

All seem to give the same ans.
=SUMPRODUCT((a2:a22="x")*(TRIM(d2:d22)=""))
=SUMPRODUCT(--(a2:a22="x")*--(TRIM(d2:d22)=""))
=SUMPRODUCT(--(a2:a22="x"),--(TRIM(d2:d22)=""))



--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"David Biddulph" <groups [at] biddulph.org.uk wrote in message
...
Do you need the double unary minus if you use * for multiplication, Don?
--
David Biddulph

"Don Guillett" wrote in message
...
try
=SUMPRODUCT(--(a2:a22="x")*--(TRIM(d2:d22)=""))

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"FreddieP" wrote in message
...
Hi I want to count the number of empty cells in column d if column a=x


what formula should I use then?





  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Count empty cells with a specific term

The extra double unary minuses won't do any harm.

=SUMPRODUCT(--(a2:a22="x")*--(TRIM(d2:d22)=""))
is the same as saying
=SUMPRODUCT(-1*-1*(a2:a22="x")*-1*-1*(TRIM(d2:d22)=""))
--
David Biddulph

"Don Guillett" wrote in message
...
All seem to give the same ans.
=SUMPRODUCT((a2:a22="x")*(TRIM(d2:d22)=""))
=SUMPRODUCT(--(a2:a22="x")*--(TRIM(d2:d22)=""))
=SUMPRODUCT(--(a2:a22="x"),--(TRIM(d2:d22)=""))
--
Don Guillett
Microsoft MVP Excel


"David Biddulph" <groups [at] biddulph.org.uk wrote in message
...
Do you need the double unary minus if you use * for multiplication, Don?
--
David Biddulph

"Don Guillett" wrote in message
...
try
=SUMPRODUCT(--(a2:a22="x")*--(TRIM(d2:d22)=""))

--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"FreddieP" wrote in message
...
Hi I want to count the number of empty cells in column d if column a=x


what formula should I use then?







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
Conditional Formatting (for cells containing specific term) Matt Excel Worksheet Functions 7 May 10th 07 07:07 PM
Count Only Empty Cells AFTER Cells with Data David Excel Worksheet Functions 2 September 15th 06 06:05 PM
count for empty cells tikchye_oldLearner57 Excel Discussion (Misc queries) 6 May 25th 06 08:41 PM
count non empty cells if other cell has certain value Nico Excel Discussion (Misc queries) 5 May 18th 06 10:40 AM
Filter/find/isolate one specific term? williejoeshaver Excel Worksheet Functions 2 July 21st 05 01:45 AM


All times are GMT +1. The time now is 02:49 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"