Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 19
Default 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!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default 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!

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 19
Default 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.
  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,501
Default 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.

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
Sumif data from multiple columns Nick Excel Worksheet Functions 4 May 6th 08 05:30 PM
Sumif Multiple Columns [email protected] Excel Worksheet Functions 2 December 17th 07 08:40 PM
SUMIF across Columns JICDB Excel Worksheet Functions 2 May 7th 07 02:48 PM
Sumif across columns mminsf Excel Worksheet Functions 8 June 29th 05 11:46 PM
SUMIF testing two columns... lgarcia Excel Worksheet Functions 1 November 25th 04 07:55 PM


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