ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Help - Is it possible Formula (https://www.excelbanter.com/excel-discussion-misc-queries/39326-help-possible-formula.html)

Gladys

Help - Is it possible Formula
 
I have a spreadsheet with following info -

Column A - Column B
2004 10.00
2005 11.00
2005 15.00
2004 5.00
Total 2005 26.00 (b2+b3)

I would like a formula in cell b5 that adds data in column "B if the data in
column "A" = 2005
So in this example the formula in total 2005 should equal 26.00.

Hope this makes sense - Thanks in advance - This is a large spreadsheet and
if this is possible it would make life a lot easier.
BTW using Excel 2003

Dodo

?B?R2xhZHlz?= wrote in
:

I would like a formula in cell b5 that adds data in column "B if the
data in column "A" = 2005
So in this example the formula in total 2005 should equal 26.00.


Use SUMIF


--

It is I, DeauDeau
(Free after monsieur Leclerc in 'Allo, 'allo)

Bob Phillips

=SUMIF(A1:A100,2005,B1;B100)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Gladys" wrote in message
...
I have a spreadsheet with following info -

Column A - Column B
2004 10.00
2005 11.00
2005 15.00
2004 5.00
Total 2005 26.00 (b2+b3)

I would like a formula in cell b5 that adds data in column "B if the data

in
column "A" = 2005
So in this example the formula in total 2005 should equal 26.00.

Hope this makes sense - Thanks in advance - This is a large spreadsheet

and
if this is possible it would make life a lot easier.
BTW using Excel 2003




Paul

One word of advice - make sure that the ranges are aligned (start and end on
the same row) or else you get funky data

"Bob Phillips" wrote:

=SUMIF(A1:A100,2005,B1;B100)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Gladys" wrote in message
...
I have a spreadsheet with following info -

Column A - Column B
2004 10.00
2005 11.00
2005 15.00
2004 5.00
Total 2005 26.00 (b2+b3)

I would like a formula in cell b5 that adds data in column "B if the data

in
column "A" = 2005
So in this example the formula in total 2005 should equal 26.00.

Hope this makes sense - Thanks in advance - This is a large spreadsheet

and
if this is possible it would make life a lot easier.
BTW using Excel 2003





Bob Phillips

Are you sure?

Try this

=SUMIF(A1:A100,2005,B2:B101)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Paul" wrote in message
...
One word of advice - make sure that the ranges are aligned (start and end

on
the same row) or else you get funky data

"Bob Phillips" wrote:

=SUMIF(A1:A100,2005,B1;B100)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Gladys" wrote in message
...
I have a spreadsheet with following info -

Column A - Column B
2004 10.00
2005 11.00
2005 15.00
2004 5.00
Total 2005 26.00 (b2+b3)

I would like a formula in cell b5 that adds data in column "B if the

data
in
column "A" = 2005
So in this example the formula in total 2005 should equal 26.00.

Hope this makes sense - Thanks in advance - This is a large

spreadsheet
and
if this is possible it would make life a lot easier.
BTW using Excel 2003








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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com