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: 3,572
Default Sum only specific cells based on value in adjacent cell

It's best to assign specific cells to contain your variable criteria, so
that you don't have to change the formula itself when the criteria changes.

With say desired date entered in E1, and desired category entered in F1,
try this:

=Sumproduct((A2:A25=E1)*(C2:c25=F1)*D2:D25)

--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===



"KKD" wrote in message
...
Can I add an additional criteria to this formula? For instance, can I say
sum
if category is Events and date is 1/1/09?
--
KKD


"Jacob Skaria" wrote:

With category in C and Amount in D use SUMIF

=SUMIF(C:C,"Events",D:D)

If this post helps click Yes
---------------
Jacob Skaria


"KKD" wrote:

I want to have a cell that is calculating all costs in a particular
category.
The data is laid out in rows, so I will have the following columns:

Date Vendor Category Amount

I want a cell that is adding all amounts that are listed as a particular
category. One category might be "Events", another "Operations", etc. I
want
these totals to be separated per category.
--
KKD



 
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
Sum of cells based on entry of adjacent cell cware Excel Worksheet Functions 2 June 19th 08 09:56 PM
sum cells based on contents of adjacent cell (validated list)? Casi12 Excel Worksheet Functions 3 April 29th 08 02:31 PM
Conditional coloring of Excel cells, based on adjacent cell values? Greg Stuart Excel Worksheet Functions 0 March 10th 06 10:14 PM
Apply cell shading based on adjacent cells in EXCEL garywr Excel Worksheet Functions 3 September 10th 05 01:35 PM
I want to format a cell based on an adjacent cells value Cumbo Excel Discussion (Misc queries) 1 December 13th 04 11:52 AM


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