ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   excel (https://www.excelbanter.com/excel-discussion-misc-queries/188486-excel.html)

smason

excel
 
Hello i have aspread sheet which contains two columns example


amount code
100 bb01
200 cc02
300 bb01
what i would like to do is calcutlate all the cells (amount ) where the code
is bb01 for example and get the total 400

Don Guillett

excel
 

Look in the help index for SUMIF
--
Don Guillett
Microsoft MVP Excel
SalesAid Software

"smason" wrote in message
...
Hello i have aspread sheet which contains two columns example


amount code
100 bb01
200 cc02
300 bb01
what i would like to do is calcutlate all the cells (amount ) where the
code
is bb01 for example and get the total 400



Tim879

excel
 
You can use the Sumif formula to do this as follows:

=SUMIF($B$1:$B$3,"bb01",$A$1:$A$3)


On May 22, 10:10 am, smason wrote:
Hello i have aspread sheet which contains two columns example

amount code
100 bb01
200 cc02
300 bb01
what i would like to do is calcutlate all the cells (amount ) where the code
is bb01 for example and get the total 400



edvwvw via OfficeKB.com

excel
 
Try the following


=SUMIF(B1:B3,"bb01",A1:A3)

this will give the desired result

edvwvw

smason wrote:
Hello i have aspread sheet which contains two columns example

amount code
100 bb01
200 cc02
300 bb01
what i would like to do is calcutlate all the cells (amount ) where the code
is bb01 for example and get the total 400


--
Message posted via http://www.officekb.com


smason

excel
 
thanks works a treat

"Tim879" wrote:

You can use the Sumif formula to do this as follows:

=SUMIF($B$1:$B$3,"bb01",$A$1:$A$3)


On May 22, 10:10 am, smason wrote:
Hello i have aspread sheet which contains two columns example

amount code
100 bb01
200 cc02
300 bb01
what i would like to do is calcutlate all the cells (amount ) where the code
is bb01 for example and get the total 400





All times are GMT +1. The time now is 04:28 AM.

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