LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 25
Default SUM up multiple fields based on Criteria

Thanks.

Both the SUMProduct and SUMIF solutions here work for me.

"Paul C" wrote:

Something like this
=sumproduct(--(A1:A5="Y"),B1:B5)+sumproduct(--(c1:c5="Y"),D1:D5)

in this simple example the Y/N values are in columns A and C and the
corresponding data in columns B and D

when using the --(A1:A5="Y") condition true values are 1 and false values
are 0, so this sums only what you want.

Change the ranges as needed (can be on other sheets)
like this =SUMPRODUCT(--(Sheet2!B2:B3="Y"),Sheet3!C2:C3)

This should do the trick
--
If this helps, please remember to click yes.


"Andi" wrote:

I need to create a formula that will find a "Y" value in multiple fields and
then find the Monetary value associated with these fields and then give a
total.

Example, If there is a Y under Lab and MedHx, find the cost for each on the
Budget sheet, then total the values in Visit Cost.

Is this possible?

Thanks

 
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
Formula to count based on multiple criteria fields w/duplicates Excel-User-RR Excel Worksheet Functions 5 March 8th 09 12:48 AM
Extract multiple results based on multiple criteria tara657 Excel Worksheet Functions 4 January 24th 09 03:35 AM
Copy multiple fields based on the info in 1 field Idolminder Excel Discussion (Misc queries) 3 October 21st 08 04:28 PM
sum based on multiple criteria Todd Excel Worksheet Functions 3 May 5th 06 10:06 PM
Summing Fields with Multiple Criteria bpliskow Excel Discussion (Misc queries) 1 February 17th 06 05:43 PM


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