Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Conditional Formula

Can a conditional formula be used to sum or count values
across multiple worksheets?
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Conditional Formula

How many conditions? Array formulas don't generally work across multiple
sheets.

Are you talking about with Code or using worksheet formulas in a cell?

--
Regards,
Tom Ogilvy


"Tom Ulincy" wrote in message
...
Can a conditional formula be used to sum or count values
across multiple worksheets?



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Conditional Formula

One condition is all I need to test (e.g. count where
value = "Yes"). My first preference was to do it with
worksheet formulas but a UDF is acceptable.

Tom



-----Original Message-----
How many conditions? Array formulas don't generally

work across multiple
sheets.

Are you talking about with Code or using worksheet

formulas in a cell?

--
Regards,
Tom Ogilvy


"Tom Ulincy" wrote

in message
...
Can a conditional formula be used to sum or count values
across multiple worksheets?



.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Conditional Formula

=SUM(COUNTIF(INDIRECT({"Sheet1","Sheet2","Sheet3"} &"!A:A"),"yes"))

or

=SUM(COUNTIF(INDIRECT( "Sheet" &{1,2,3} &"!A:A"),"yes"))

counts the cells in 3 sheets that have yes in column A as an example.


This is not an array formula. (it doesn't need to be array entered). That
may not be true for any formula of this type that you come up with, so if
you don't get expected results, try entering it as an Array formula.


--
Regards,
Tom Ogilvy

"Tom Ulincy" wrote in message
...
One condition is all I need to test (e.g. count where
value = "Yes"). My first preference was to do it with
worksheet formulas but a UDF is acceptable.

Tom



-----Original Message-----
How many conditions? Array formulas don't generally

work across multiple
sheets.

Are you talking about with Code or using worksheet

formulas in a cell?

--
Regards,
Tom Ogilvy


"Tom Ulincy" wrote

in message
...
Can a conditional formula be used to sum or count values
across multiple worksheets?



.



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 Formula klmiura Excel Worksheet Functions 2 February 11th 09 08:56 PM
Excel 2002 Formula: Urgent Conditional Formula Required Right Away - if possible blue[_2_] Excel Discussion (Misc queries) 2 July 11th 07 06:08 PM
Formula, Conditional Formula Needed Karl Excel Discussion (Misc queries) 12 June 23rd 07 04:12 AM
Conditional Formula to indicate Formula in cell SteveW New Users to Excel 9 August 2nd 06 01:12 AM
Conditional Sum Formula johnnygirl51 Excel Discussion (Misc queries) 3 March 10th 06 09:39 AM


All times are GMT +1. The time now is 02:22 AM.

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"