ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   SUMIF, IF ? (https://www.excelbanter.com/excel-worksheet-functions/235325-sumif-if.html)

Steve

SUMIF, IF ?
 
I have this formula:
=SUMIF($B116:$B124,"V",S116:S124)

In Q116:Q124, I have various numbers, such as 1300, 1400, 1500.

What can I add to the above formula to get the result for only the rows that
have 1300 in the Q116:Q124 range.


Thanks,

Steve


Jacob Skaria

SUMIF, IF ?
 
Hi Steve

Try

=SUMPRODUCT(--($B116:$B124="V"),--($Q116:$Q124=1300),S116:S124)

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


"Steve" wrote:

I have this formula:
=SUMIF($B116:$B124,"V",S116:S124)

In Q116:Q124, I have various numbers, such as 1300, 1400, 1500.

What can I add to the above formula to get the result for only the rows that
have 1300 in the Q116:Q124 range.


Thanks,

Steve


David Billigmeier

SUMIF, IF ?
 
You can use this formula, commit with CTRL+SHIFT+ENTER instead of just Enter,
as it's an array formula:

=SUM(IF(($B116:$B124="V")*($Q116:$Q124=1300),S116: S124,""))


--
Regards,
Dave


"Steve" wrote:

I have this formula:
=SUMIF($B116:$B124,"V",S116:S124)

In Q116:Q124, I have various numbers, such as 1300, 1400, 1500.

What can I add to the above formula to get the result for only the rows that
have 1300 in the Q116:Q124 range.


Thanks,

Steve


Steve

SUMIF, IF ?
 
Thanks guys,

Both solutions worked great.

Steve

"David Billigmeier" wrote:

You can use this formula, commit with CTRL+SHIFT+ENTER instead of just Enter,
as it's an array formula:

=SUM(IF(($B116:$B124="V")*($Q116:$Q124=1300),S116: S124,""))


--
Regards,
Dave


"Steve" wrote:

I have this formula:
=SUMIF($B116:$B124,"V",S116:S124)

In Q116:Q124, I have various numbers, such as 1300, 1400, 1500.

What can I add to the above formula to get the result for only the rows that
have 1300 in the Q116:Q124 range.


Thanks,

Steve


Shane Devenshire[_2_]

SUMIF, IF ?
 
Hi,

If you are using 2007:

SUMIFS(S116:S124,B116:B124,"V",Q116:Q124,1300)

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Steve" wrote:

Thanks guys,

Both solutions worked great.

Steve

"David Billigmeier" wrote:

You can use this formula, commit with CTRL+SHIFT+ENTER instead of just Enter,
as it's an array formula:

=SUM(IF(($B116:$B124="V")*($Q116:$Q124=1300),S116: S124,""))


--
Regards,
Dave


"Steve" wrote:

I have this formula:
=SUMIF($B116:$B124,"V",S116:S124)

In Q116:Q124, I have various numbers, such as 1300, 1400, 1500.

What can I add to the above formula to get the result for only the rows that
have 1300 in the Q116:Q124 range.


Thanks,

Steve


Steve

SUMIF, IF ?
 
Yes, thanks. I do have 2007 at home.

Thanks,

Steve

"Shane Devenshire" wrote:

Hi,

If you are using 2007:

SUMIFS(S116:S124,B116:B124,"V",Q116:Q124,1300)

--
If this helps, please click the Yes button.

Cheers,
Shane Devenshire


"Steve" wrote:

Thanks guys,

Both solutions worked great.

Steve

"David Billigmeier" wrote:

You can use this formula, commit with CTRL+SHIFT+ENTER instead of just Enter,
as it's an array formula:

=SUM(IF(($B116:$B124="V")*($Q116:$Q124=1300),S116: S124,""))


--
Regards,
Dave


"Steve" wrote:

I have this formula:
=SUMIF($B116:$B124,"V",S116:S124)

In Q116:Q124, I have various numbers, such as 1300, 1400, 1500.

What can I add to the above formula to get the result for only the rows that
have 1300 in the Q116:Q124 range.


Thanks,

Steve



All times are GMT +1. The time now is 10:39 PM.

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