Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 13
Default Formula for addition

If I have the followings table
A B
1 Code Amt
2 501 70
3 500 85
4 501 75
5 502 50
6 500 55
7 501 10
8
How do I set the formula to add the total amount for code 501in say cell B8?

Thanks
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default Formula for addition

Try this:

B8: =SUMIF(A2:A7,"501",B2:B7)

Does that help?
Post back if you have more questions.
--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)

"tigermoth" wrote in message
...
If I have the followings table
A B
1 Code Amt
2 501 70
3 500 85
4 501 75
5 502 50
6 500 55
7 501 10
8
How do I set the formula to add the total amount for code 501in say cell
B8?

Thanks



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Formula for addition

Or without the quotes if the 501 is a number, not a text string.
--
David Biddulph

"Ron Coderre" wrote in message
...
Try this:

B8: =SUMIF(A2:A7,"501",B2:B7)

Does that help?
Post back if you have more questions.
--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)

"tigermoth" wrote in message
...
If I have the followings table
A B
1 Code Amt
2 501 70
3 500 85
4 501 75
5 502 50
6 500 55
7 501 10
8
How do I set the formula to add the total amount for code 501in say cell
B8?

Thanks





  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,118
Default Formula for addition

Actually, regarding numbers (501) and numeric text ("501")..
Both of these SUMIF formulas pick up 501 and "501":
B8: =SUMIF(A2:A7,501,B2:B7)
B8: =SUMIF(A2:A7,"501",B2:B7)

....and would return 155 using the sample data.

So, in that particular case, the quotes in the criteria were unnecessary.

--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)


"David Biddulph" <groups [at] biddulph.org.uk wrote in message
...
Or without the quotes if the 501 is a number, not a text string.
--
David Biddulph

"Ron Coderre" wrote in message
...
Try this:

B8: =SUMIF(A2:A7,"501",B2:B7)

Does that help?
Post back if you have more questions.
--------------------------

Regards,

Ron
Microsoft MVP (Excel)
(XL2003, Win XP)

"tigermoth" wrote in message
...
If I have the followings table
A B
1 Code Amt
2 501 70
3 500 85
4 501 75
5 502 50
6 500 55
7 501 10
8
How do I set the formula to add the total amount for code 501in say cell
B8?

Thanks







Reply
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
Addition & multiplication formula Vi Excel Discussion (Misc queries) 7 January 18th 08 05:32 PM
Addition help to edit a formula Hell-fire[_3_] Excel Worksheet Functions 7 July 4th 07 02:38 AM
Formula Addition Copy Joey Excel Discussion (Misc queries) 6 October 5th 06 11:44 PM
Progressive Addition Formula Robert Moore Excel Worksheet Functions 2 July 17th 05 03:52 AM
help with simple addition formula Juco Excel Worksheet Functions 1 January 29th 05 12:51 PM


All times are GMT +1. The time now is 07:40 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"