#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 202
Default Count Ranges Q

How could I create a formula that will add up all the instances in
K10:K22 which are <blank if a not zero value is entered in the
corresponding cells in J10:J22

eg. If J10 = <blank, then my answer would be 0
eg if J10 = 123 and J19 = 123 and K10 = <blank and K19 = Mon, then my
answer would be 1
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 896
Default Count Ranges Q

=SUM(IF((ISBLANK(K10:K22))*(J10:J22<0),1,0))

CTRL+SHIFT+ENTER this formula as it is an array-formula


On 15 Sty, 16:43, Seanie wrote:
How could I create a formula that will add up all the instances in
K10:K22 which are <blank if a not zero value is entered in the
corresponding cells in J10:J22

eg. If J10 = <blank, then my answer would be 0
eg if J10 = 123 and J19 = 123 and K10 = <blank and K19 = Mon, then my
answer would be 1


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,420
Default Count Ranges Q

=SUMPRODUCT(--(K10:K22=""),--(J10:J22<0))

--
__________________________________
HTH

Bob

"Seanie" wrote in message
...
How could I create a formula that will add up all the instances in
K10:K22 which are <blank if a not zero value is entered in the
corresponding cells in J10:J22

eg. If J10 = <blank, then my answer would be 0
eg if J10 = 123 and J19 = 123 and K10 = <blank and K19 = Mon, then my
answer would be 1



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
Count the number between age ranges Nigel Excel Discussion (Misc queries) 2 October 13th 08 12:20 PM
Count age ranges James Excel Worksheet Functions 8 November 9th 07 08:04 PM
count age ranges Clash Excel Discussion (Misc queries) 3 June 13th 06 03:05 PM
count if in two ranges TUNGANA KURMA RAJU Excel Discussion (Misc queries) 0 October 8th 05 04:47 AM
count date ranges murtaza Excel Worksheet Functions 4 July 18th 05 04:29 PM


All times are GMT +1. The time now is 04:54 PM.

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

About Us

"It's about Microsoft Excel"