ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Using Sumif On Two Columns of Data - How? (https://www.excelbanter.com/excel-worksheet-functions/186931-using-sumif-two-columns-data-how.html)

[email protected]

Using Sumif On Two Columns of Data - How?
 
Here is the problem in a nutshell:

Column 1 Column 2

58000 100%
7000 50%
7000 50%
50000 50%
50000 50%

I need a function that adds all values in column 1 that are 20000 or
higher AND are 50% in column 2, lastly I divide the result by two. I
tried something like this:

=SUMIF(M158:M163, "50%", (L158:L163,"19999")/2

Didn't work. The correct output using the sample numbers above is
50000.00

Thanks!

Mike H

Using Sumif On Two Columns of Data - How?
 
Maybe

=SUMPRODUCT((A1:A5=20000)*(B1:B5=50%)*(A1:A5))/2

Mike

" wrote:

Here is the problem in a nutshell:

Column 1 Column 2

58000 100%
7000 50%
7000 50%
50000 50%
50000 50%

I need a function that adds all values in column 1 that are 20000 or
higher AND are 50% in column 2, lastly I divide the result by two. I
tried something like this:

=SUMIF(M158:M163, "50%", (L158:L163,"19999")/2

Didn't work. The correct output using the sample numbers above is
50000.00

Thanks!


[email protected]

Using Sumif On Two Columns of Data - How?
 
On May 9, 4:14*pm, Mike H wrote:
Maybe

=SUMPRODUCT((A1:A5=20000)*(B1:B5=50%)*(A1:A5))/2

Mike



" wrote:
Here is the problem in a nutshell:


Column 1 * * Column 2


58000 * * * * * * 100%
7000 * * * * * * * *50%
7000 * * * * * * * *50%
50000 * * * * * * *50%
50000 * * * * * * *50%


I need a function that adds all values in column 1 that are 20000 or
higher AND are 50% in column 2, lastly I divide the result by two. *I
tried something like this:


=SUMIF(M158:M163, "50%", (L158:L163,"19999")/2


Didn't work. *The correct output using the sample numbers above is
50000.00


Thanks!- Hide quoted text -


- Show quoted text -


Thanks Mike! Worked like a charm.

Mike H

Using Sumif On Two Columns of Data - How?
 
Your welcome and thanks for the feedback

" wrote:

On May 9, 4:14 pm, Mike H wrote:
Maybe

=SUMPRODUCT((A1:A5=20000)*(B1:B5=50%)*(A1:A5))/2

Mike



" wrote:
Here is the problem in a nutshell:


Column 1 Column 2


58000 100%
7000 50%
7000 50%
50000 50%
50000 50%


I need a function that adds all values in column 1 that are 20000 or
higher AND are 50% in column 2, lastly I divide the result by two. I
tried something like this:


=SUMIF(M158:M163, "50%", (L158:L163,"19999")/2


Didn't work. The correct output using the sample numbers above is
50000.00


Thanks!- Hide quoted text -


- Show quoted text -


Thanks Mike! Worked like a charm.



All times are GMT +1. The time now is 09:53 AM.

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