Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Countif for 2 columns

I need a function to count nonblank cells in column A if corresponding cells
in column B are not blank. Please help. I have tried
=countif(A2:A23,"*"+B2:B23,"*") but doesn't work
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Countif for 2 columns

Try this:

=SUMPRODUCT(--(A2:A23<""),--(B2:B23<""))

<"" means: not equal to blank

--
Biff
Microsoft Excel MVP


"earlfj" wrote in message
...
I need a function to count nonblank cells in column A if corresponding
cells
in column B are not blank. Please help. I have tried
=countif(A2:A23,"*"+B2:B23,"*") but doesn't work



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Countif for 2 columns

Thank you, Thank you. Works perfect. I have spent hours trying to figure this
out.

"T. Valko" wrote:

Try this:

=SUMPRODUCT(--(A2:A23<""),--(B2:B23<""))

<"" means: not equal to blank

--
Biff
Microsoft Excel MVP


"earlfj" wrote in message
...
I need a function to count nonblank cells in column A if corresponding
cells
in column B are not blank. Please help. I have tried
=countif(A2:A23,"*"+B2:B23,"*") but doesn't work




  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default Countif for 2 columns

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"earlfj" wrote in message
...
Thank you, Thank you. Works perfect. I have spent hours trying to figure
this
out.

"T. Valko" wrote:

Try this:

=SUMPRODUCT(--(A2:A23<""),--(B2:B23<""))

<"" means: not equal to blank

--
Biff
Microsoft Excel MVP


"earlfj" wrote in message
...
I need a function to count nonblank cells in column A if corresponding
cells
in column B are not blank. Please help. I have tried
=countif(A2:A23,"*"+B2:B23,"*") but doesn't work






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
COUNTIF not including something in both columns Studebaker Excel Worksheet Functions 2 July 24th 09 05:40 AM
Countif in non adjacent columns mickjjuk Excel Worksheet Functions 3 October 8th 08 02:57 PM
countif in 2 columns Tonso Excel Discussion (Misc queries) 4 October 23rd 07 04:51 PM
COUNTIF with criteria in 2 columns EJ Excel Discussion (Misc queries) 3 December 20th 06 01:02 PM
Help with countif using two columns Vipulparbat Excel Worksheet Functions 4 August 18th 06 02:03 AM


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