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 better way to write a count if statement?

Hi Everyone,

Is there any better way to write this count if statement?

I need it to look up four different columns and count if they contain any
money. Is there a shorter way to write this or am I stuck?


=COUNTIF('CALICO Unmapped Not Active'!T6:T42,"0")
+COUNTIF('CALICO Unmapped Not Active'!W6:W42,"0")
+COUNTIF('CALICO Unmapped Not Active'!AL6:AL42,"0")
+COUNTIF('CALICO Unmapped Not Active'!AO6:AO42,"0")
+COUNTIF('CALICO Unmapped Not Active'!T6:T42,"<0")
+COUNTIF('CALICO Unmapped Not Active'!W6:W42,"<0")
+COUNTIF('CALICO Unmapped Not Active'!AL6:AL42,"<0")
+COUNTIF('CALICO Unmapped Not Active'!AO6:AO42,"<0")
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 897
Default better way to write a count if statement?

You are adding up the ones that are either greater than or less than
zero, so how about

=COUNTIF('CALICO Unmapped Not Active'!T6:T42,"<0")
+COUNTIF('CALICO Unmapped Not Active'!W6:W42,"<0")
+COUNTIF('CALICO Unmapped Not Active'!AL6:AL42,"<0")
+COUNTIF('CALICO Unmapped Not Active'!AO6:AO42,"<0")


HTH,
JP

On Mar 27, 1:56*pm, luscioussarita
wrote:
Hi Everyone,

Is there any better way to write this count if statement?

I need it to look up four different columns and count if they contain any
money. *Is there a shorter way to write this or am I stuck?

=COUNTIF('CALICO Unmapped Not Active'!T6:T42,"0")
+COUNTIF('CALICO Unmapped Not Active'!W6:W42,"0")
+COUNTIF('CALICO Unmapped Not Active'!AL6:AL42,"0")
+COUNTIF('CALICO Unmapped Not Active'!AO6:AO42,"0")
+COUNTIF('CALICO Unmapped Not Active'!T6:T42,"<0")
+COUNTIF('CALICO Unmapped Not Active'!W6:W42,"<0")
+COUNTIF('CALICO Unmapped Not Active'!AL6:AL42,"<0")
+COUNTIF('CALICO Unmapped Not Active'!AO6:AO42,"<0")


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default better way to write a count if statement?

JP thank you it worked perfectly!!!

Have a nice day!!!

Sarita

"JP" wrote:

You are adding up the ones that are either greater than or less than
zero, so how about

=COUNTIF('CALICO Unmapped Not Active'!T6:T42,"<0")
+COUNTIF('CALICO Unmapped Not Active'!W6:W42,"<0")
+COUNTIF('CALICO Unmapped Not Active'!AL6:AL42,"<0")
+COUNTIF('CALICO Unmapped Not Active'!AO6:AO42,"<0")


HTH,
JP

On Mar 27, 1:56 pm, luscioussarita
wrote:
Hi Everyone,

Is there any better way to write this count if statement?

I need it to look up four different columns and count if they contain any
money. Is there a shorter way to write this or am I stuck?

=COUNTIF('CALICO Unmapped Not Active'!T6:T42,"0")
+COUNTIF('CALICO Unmapped Not Active'!W6:W42,"0")
+COUNTIF('CALICO Unmapped Not Active'!AL6:AL42,"0")
+COUNTIF('CALICO Unmapped Not Active'!AO6:AO42,"0")
+COUNTIF('CALICO Unmapped Not Active'!T6:T42,"<0")
+COUNTIF('CALICO Unmapped Not Active'!W6:W42,"<0")
+COUNTIF('CALICO Unmapped Not Active'!AL6:AL42,"<0")
+COUNTIF('CALICO Unmapped Not Active'!AO6:AO42,"<0")



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 897
Default better way to write a count if statement?

Glad to hear it!

Enjoy,
JP

On Mar 27, 4:30*pm, luscioussarita
wrote:
JP thank you it worked perfectly!!!

Have a nice day!!!

Sarita



"JP" wrote:
You are adding up the ones that are either greater than or less than
zero, so how about


=COUNTIF('CALICO Unmapped Not Active'!T6:T42,"<0")
+COUNTIF('CALICO Unmapped Not Active'!W6:W42,"<0")
+COUNTIF('CALICO Unmapped Not Active'!AL6:AL42,"<0")
+COUNTIF('CALICO Unmapped Not Active'!AO6:AO42,"<0")


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
How do I write a compound if statement? Diane Excel Worksheet Functions 5 May 17th 07 08:52 PM
how do I write an IF/other statement to cut off time data? Daren Excel Worksheet Functions 15 November 2nd 06 11:49 PM
How do you write an if statement that replaces #DIV/0! with 0 caliskier Excel Discussion (Misc queries) 6 March 10th 06 03:22 AM
how do I write the date in an if statement Susan Hayes Excel Worksheet Functions 1 August 23rd 05 09:29 PM
How do I write a conditional statement in Excel to count if two c. marblelife Excel Worksheet Functions 2 January 16th 05 11:16 PM


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