Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Brent E
 
Posts: n/a
Default If Statement Criteria

Good afternoon,

I am trying to assist somebody at work. I would like to ask if there is a
way to set a formula in a totals cell at the bottom or a spreadsheet (for
example) where for every cell in
Column A that contains a certain ID, their corresponding values in column B
are summed. For instance if A2 A3 AND A11 contain a specific ID, then a
'totals' cell would add B2, B3 AND B11. I would like to use an IF statement
or something for example: (SUM B cells where A cells=ID). What syntax would I
use for this? Thanks.

  #2   Report Post  
Biff
 
Posts: n/a
Default

Hi!

Try this:

=SUMIF(A2:A50,"ID",B2:B50)

If your "ID" value is TEXT enclose it within quotes as I did in the formula.
If the "ID" value is numeric, don't use the quotes.

Biff

"Brent E" wrote in message
...
Good afternoon,

I am trying to assist somebody at work. I would like to ask if there is a
way to set a formula in a totals cell at the bottom or a spreadsheet (for
example) where for every cell in
Column A that contains a certain ID, their corresponding values in column
B
are summed. For instance if A2 A3 AND A11 contain a specific ID, then a
'totals' cell would add B2, B3 AND B11. I would like to use an IF
statement
or something for example: (SUM B cells where A cells=ID). What syntax
would I
use for this? Thanks.



  #3   Report Post  
Michael
 
Posts: n/a
Default

Hi Brent

=SUMPRODUCT((A1:A100="ID")*(B1:B100))
Adjust the ranges to suit and change the "ID" to whatever criteria you are
seeking.

HTH
Michael
--
Michael Mitchelson


"Brent E" wrote:

Good afternoon,

I am trying to assist somebody at work. I would like to ask if there is a
way to set a formula in a totals cell at the bottom or a spreadsheet (for
example) where for every cell in
Column A that contains a certain ID, their corresponding values in column B
are summed. For instance if A2 A3 AND A11 contain a specific ID, then a
'totals' cell would add B2, B3 AND B11. I would like to use an IF statement
or something for example: (SUM B cells where A cells=ID). What syntax would I
use for this? 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
Countif using format criteria....not number criteria? Troy Excel Worksheet Functions 1 April 20th 05 04:50 AM
Can I get the mode, min, and max with multiple criteria? BobT Excel Discussion (Misc queries) 1 February 15th 05 03:20 AM
SUMPRODUCT Formula to Count Row of data Below Matched Criteria Sam via OfficeKB.com Excel Worksheet Functions 8 February 3rd 05 01:37 AM
Statement lintan Excel Worksheet Functions 1 December 2nd 04 11:31 PM
Can I use a cell reference in the criteria for the sumif function. Number Cruncher Excel Worksheet Functions 2 November 4th 04 07:52 PM


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