Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
O_o O_o is offline
external usenet poster
 
Posts: 2
Default SUMIF, One criteria multiple columns

Here's what I need to do:
A B C D F G .........N O............ V
Code va va va Code
12 L 520 250 M
13 L 500 700 M
.. R 1080 250 LM
.. COM 500 200 LM
.. O
31
=SUMIF(A12:V31,"LM",G12:G31:N12:O31)/1000

this formula works with the criteria from column A =SUMIF(A12:A31,"L"...
but it will not pull in the criteria from column V. What am I doing wrong?

  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 459
Default SUMIF, One criteria multiple columns

O_o wrote:
Here's what I need to do:
A B C D F G .........N
O............ V Code va va
va Code 12 L 520
250 M 13 L 500
700 M . R 1080
250 LM . COM 500
200 LM . O
31
=SUMIF(A12:V31,"LM",G12:G31:N12:O31)/1000

this formula works with the criteria from column A
=SUMIF(A12:A31,"L"... but it will not pull in the criteria from
column V. What am I doing wrong?



You cannot test multiple coloumns with SUMIF. You can try something like
this, if you want to sum columns G, N and O if both columns A *and* V
satisfy the criteria:

=SUMPRODUCT((A12:A31="LM")*(V12:V31="LM"),G12:G31, N12:N31,O12:O31)/1000

If, instead, you wnat to sum columns G, N and O if *or* column A *or* V *or*
both satisfy the criteria you can use this formula:

=SUMPRODUCT(ROUND(((A12:A31="LM")+(V12:V31="LM"))/2,0),G12:G31,N12:N31,O12:O31)

--
(I'm not sure of names of menus, options and commands, because
translating from the Italian version of Excel...)

Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy


  #3   Report Post  
Posted to microsoft.public.excel.misc
O_o O_o is offline
external usenet poster
 
Posts: 2
Default SUMIF, One criteria multiple columns

Thanks for trying Franz but it didn't work :(

"Franz Verga" wrote:

O_o wrote:
Here's what I need to do:
A B C D F G .........N
O............ V Code va va
va Code 12 L 520
250 M 13 L 500
700 M . R 1080
250 LM . COM 500
200 LM . O
31
=SUMIF(A12:V31,"LM",G12:G31:N12:O31)/1000

this formula works with the criteria from column A
=SUMIF(A12:A31,"L"... but it will not pull in the criteria from
column V. What am I doing wrong?



You cannot test multiple coloumns with SUMIF. You can try something like
this, if you want to sum columns G, N and O if both columns A *and* V
satisfy the criteria:

=SUMPRODUCT((A12:A31="LM")*(V12:V31="LM"),G12:G31, N12:N31,O12:O31)/1000

If, instead, you wnat to sum columns G, N and O if *or* column A *or* V *or*
both satisfy the criteria you can use this formula:

=SUMPRODUCT(ROUND(((A12:A31="LM")+(V12:V31="LM"))/2,0),G12:G31,N12:N31,O12:O31)

--
(I'm not sure of names of menus, options and commands, because
translating from the Italian version of Excel...)

Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,180
Default SUMIF, One criteria multiple columns

=SUMPRODUCT(...,G12:G31,N12:N31,O12:O31)
gives the product, not the sum, of columns G, N and O

  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 459
Default SUMIF, One criteria multiple columns

O_o wrote:
Thanks for trying Franz but it didn't work :(


Maybe it could be better if you explain us what are you trying to do... :-)


--
(I'm not sure of names of menus, options and commands, because
translating from the Italian version of Excel...)

Hope I helped you.

Thanks in advance for your feedback.

Ciao

Franz Verga from Italy


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
Multiple Criteria for COUNTIF and SUMIF nils_odendaal Excel Worksheet Functions 1 November 16th 05 08:38 AM
Multiple Criteria in a SUMIF formula JCARROLL Excel Discussion (Misc queries) 1 July 20th 05 09:17 PM
SUMIF, multiple criteria Lauren753 Excel Discussion (Misc queries) 1 June 20th 05 08:28 PM
SUMIF over multiple columns psmith4497 Excel Worksheet Functions 3 June 17th 05 06:40 PM
SumIf Function using multiple criteria Jamie A Miller Excel Worksheet Functions 1 February 4th 05 05:14 PM


All times are GMT +1. The time now is 12:24 PM.

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"