HP3000-L Archives

November 2004, Week 1

HP3000-L@RAVEN.UTC.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Roy Brown <[log in to unmask]>
Reply To:
Roy Brown <[log in to unmask]>
Date:
Thu, 4 Nov 2004 15:47:09 +0000
Content-Type:
text/plain
Parts/Attachments:
text/plain (62 lines)
In message <[log in to unmask]>, Jerry
Fochtman <[log in to unmask]> writes
>Thought I'd tap into the wealth of knowledge on this list to see if someone
>can help with building a formula which which is probably fairly easy but my
>mind has gone blank....
>
>I'd like to sum the cell contents in column "A", but only if  the value in
>column "B"
>on the same row contains a specific value.   I know I can do this with a
>hidden column,
>but wondered if there was another technique...
>
>TIA!

From the Excel Help, *exactly* what you need:

SUMIF

Adds the cells specified by a given criteria.

Syntax

SUMIF(range,criteria,sum_range)

Range   is the range of cells you want evaluated.

Criteria   is the criteria in the form of a number, expression, or text
that defines which cells will be added. For example, criteria can be
expressed as 32, "32", ">32", "apples".

Sum_range   are the actual cells to sum.

Remarks

The cells in sum_range are summed only if their corresponding cells in
range match the criteria.

If sum_range is omitted, the cells in range are summed.

Example
            A                             B
        Property Value               Commission
1       100,000                           7,000
2       200,000                          14,000
3       300,000                          21,000
4       400,000                          28,000

Formula                         Description (Result)

=SUMIF(A2:A5,">160000",B2:B5)   Sum of the commissions for
                                property values over 160,000
                                        (63,000)



--
Roy Brown        'Have nothing in your houses that you do not know to be
Kelmscott Ltd     useful, or believe to be beautiful'  William Morris

* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *

ATOM RSS1 RSS2