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 SUM(IF(multible conditions))

I need to know how to write a conditional sum (or DSUM or other) formula
involving multiple worksheets(wks1-5) in a workbook.
Here is my failed attempt in wks1:
=SUM(IF(wks2DateColumn=B38 and <=C38,"",wks2AmtColumn))
wks1 contains a StartDate column and an EndDate column; the two dates in one
row defines a Quarter calendar(spanning down 20 years). The next cell in
each row will contain the SUM(IF..) formula, which is to calculate numerous
records in worksheets 2 to 5 (each with data in identical columns). Next,
copy the formula down for all 80 Quarters with cells B38 and C38 being
relational, completing analysis of wks2. Then copy the formula in other wks1
columns for the other three worksheets. How to write it step-by-step? Can
the formula be "relational"?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default SUM(IF(multible conditions))

=SUMPRODUCT(--(wks2DateColumn=B38),--(wks2DateColumn<=C38),wks2AmtColumn)


--
HTH

Bob Phillips

(replace somewhere in email address with gmail if mailing direct)

"Frenchy" wrote in message
...
I need to know how to write a conditional sum (or DSUM or other) formula
involving multiple worksheets(wks1-5) in a workbook.
Here is my failed attempt in wks1:
=SUM(IF(wks2DateColumn=B38 and <=C38,"",wks2AmtColumn))
wks1 contains a StartDate column and an EndDate column; the two dates in

one
row defines a Quarter calendar(spanning down 20 years). The next cell in
each row will contain the SUM(IF..) formula, which is to calculate

numerous
records in worksheets 2 to 5 (each with data in identical columns). Next,
copy the formula down for all 80 Quarters with cells B38 and C38 being
relational, completing analysis of wks2. Then copy the formula in other

wks1
columns for the other three worksheets. How to write it step-by-step?

Can
the formula be "relational"?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JMB JMB is offline
external usenet poster
 
Posts: 2,062
Default SUM(IF(multible conditions))

Perhaps:
=SUMPRODUCT(--(wks2DateColumn=B38), --(wks2DateColumn<=C38), wks2AmtColumn)


"Frenchy" wrote:

I need to know how to write a conditional sum (or DSUM or other) formula
involving multiple worksheets(wks1-5) in a workbook.
Here is my failed attempt in wks1:
=SUM(IF(wks2DateColumn=B38 and <=C38,"",wks2AmtColumn))
wks1 contains a StartDate column and an EndDate column; the two dates in one
row defines a Quarter calendar(spanning down 20 years). The next cell in
each row will contain the SUM(IF..) formula, which is to calculate numerous
records in worksheets 2 to 5 (each with data in identical columns). Next,
copy the formula down for all 80 Quarters with cells B38 and C38 being
relational, completing analysis of wks2. Then copy the formula in other wks1
columns for the other three worksheets. How to write it step-by-step? Can
the formula be "relational"?

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
Checking if 2 of 3 conditions are met... guilbj2 Excel Discussion (Misc queries) 5 June 29th 06 04:31 PM
Count using 2 conditions, one of which being a "less than or equal to" - URGENT SamGB Excel Discussion (Misc queries) 2 February 15th 06 10:35 AM
COUNT using multiple conditions SamGB Excel Discussion (Misc queries) 2 February 9th 06 10:12 PM
Add cells from a range based on 2 conditions from 2 other ranges Kelly Excel Worksheet Functions 3 July 7th 05 07:40 PM
How to multiple conditions to validate more than 2 conditions to . Bhuvana Govind Excel Worksheet Functions 1 January 28th 05 07:07 PM


All times are GMT +1. The time now is 03:58 AM.

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"