ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Simple Question - Sum If?? (https://www.excelbanter.com/excel-worksheet-functions/248284-simple-question-sum-if.html)

JenC

Simple Question - Sum If??
 
I'm trying to do something simple but I'm getting confused between the
different SUM functions and can't figure out which one I should be
using...advice much appreciated!

I have one column with integers and a second column with "Y" or "N". I can
sum the integers no problem. However, I also want to sum all the values for
which the other column says "Y". What function should I use?

Thanks,
Jen

Mike H

Simple Question - Sum If??
 
Hi,

=SUMIF(A1:A20,"Y",B1:B20)

Mike

"JenC" wrote:

I'm trying to do something simple but I'm getting confused between the
different SUM functions and can't figure out which one I should be
using...advice much appreciated!

I have one column with integers and a second column with "Y" or "N". I can
sum the integers no problem. However, I also want to sum all the values for
which the other column says "Y". What function should I use?

Thanks,
Jen


Jacob Skaria

Simple Question - Sum If??
 
ColB with Y or N and Col A with numerics..Try the below to return sum for Y

=SUMIF(B:B,"Y",A:A)

If this post helps click Yes
---------------
Jacob Skaria


"JenC" wrote:

I'm trying to do something simple but I'm getting confused between the
different SUM functions and can't figure out which one I should be
using...advice much appreciated!

I have one column with integers and a second column with "Y" or "N". I can
sum the integers no problem. However, I also want to sum all the values for
which the other column says "Y". What function should I use?

Thanks,
Jen


JenC

Simple Question - Sum If??
 
Thanks so much to both of you - I knew it was simple but kept getting
confused by all the sum functions available!

Jen

"Jacob Skaria" wrote:

ColB with Y or N and Col A with numerics..Try the below to return sum for Y

=SUMIF(B:B,"Y",A:A)

If this post helps click Yes
---------------
Jacob Skaria


"JenC" wrote:

I'm trying to do something simple but I'm getting confused between the
different SUM functions and can't figure out which one I should be
using...advice much appreciated!

I have one column with integers and a second column with "Y" or "N". I can
sum the integers no problem. However, I also want to sum all the values for
which the other column says "Y". What function should I use?

Thanks,
Jen


T. Valko

Simple Question - Sum If??
 
Try this...

A1:A10 = Y or N
B1:B10 = values to sum

=SUMIF(A1:A10,"Y",B1:B10)

Or, using a cell to hold the criteria...

D1 = Y

=SUMIF(A1:A10,D1,B1:B10)

--
Biff
Microsoft Excel MVP


"JenC" wrote in message
...
I'm trying to do something simple but I'm getting confused between the
different SUM functions and can't figure out which one I should be
using...advice much appreciated!

I have one column with integers and a second column with "Y" or "N". I
can
sum the integers no problem. However, I also want to sum all the values
for
which the other column says "Y". What function should I use?

Thanks,
Jen




Glenn

Simple Question - Sum If??
 
http://www.contextures.com/xlFunctions01.html

Might help clear up some of your confusion...


JenC wrote:
Thanks so much to both of you - I knew it was simple but kept getting
confused by all the sum functions available!

Jen

"Jacob Skaria" wrote:

ColB with Y or N and Col A with numerics..Try the below to return sum for Y

=SUMIF(B:B,"Y",A:A)

If this post helps click Yes
---------------
Jacob Skaria


"JenC" wrote:

I'm trying to do something simple but I'm getting confused between the
different SUM functions and can't figure out which one I should be
using...advice much appreciated!

I have one column with integers and a second column with "Y" or "N". I can
sum the integers no problem. However, I also want to sum all the values for
which the other column says "Y". What function should I use?

Thanks,
Jen



All times are GMT +1. The time now is 05:07 PM.

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