Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default help with sumif formula

i was just wondering why this only brings back the value of G, and not the
others.

=SUMIF(I$4:I$18,{"G","H","K","M"},J$4:J$18)

--


Gary



  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default help with sumif formula

got sumproduct to work, though

=SUMPRODUCT(($I$3:$I$18={"G","H","K","M"})*($J$3:$ J$18))

--


Gary


"Gary Keramidas" <GKeramidasATmsn.com wrote in message
...
i was just wondering why this only brings back the value of G, and not the
others.

=SUMIF(I$4:I$18,{"G","H","K","M"},J$4:J$18)

--


Gary





  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default help with sumif formula


Gary

You need to wrap the Sumif with a function that expects/can handle a
array eg:

=SUM(SUMIF(I$4:I$18,{"G","H","K","M"},J$4:J$18))

which is more work than using Sumproduct in the first place

--
RichardScholla
-----------------------------------------------------------------------
RichardSchollar's Profile: http://www.officehelp.in/member.php?userid=524
View this thread: http://www.officehelp.in/showthread.php?t=126993

Posted from - http://www.officehelp.i

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2,494
Default help with sumif formula

ok, thanks, that makes sense.

--


Gary


"RichardSchollar" wrote in message
...

Gary

You need to wrap the Sumif with a function that expects/can handle an
array eg:

=SUM(SUMIF(I$4:I$18,{"G","H","K","M"},J$4:J$18))

which is more work than using Sumproduct in the first place!


--
RichardSchollar
------------------------------------------------------------------------
RichardSchollar's Profile: http://www.officehelp.in/member.php?userid=5248
View this thread: http://www.officehelp.in/showthread.php?t=1269932

Posted from - http://www.officehelp.in



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
Formula Help - Not sure which one I need! SUMIF I think?! HayleyKingston Excel Discussion (Misc queries) 6 March 12th 08 10:23 PM
Nesting a sumproduct formula within a sumif formula. jerrymcm Excel Discussion (Misc queries) 2 October 3rd 07 03:35 PM
multiply formula where 1 cell has a (sumif) formula as a result kcip Excel Worksheet Functions 1 May 3rd 07 07:41 AM
Embed AND formula in SUMIF formula Tinkerbell1178 Excel Discussion (Misc queries) 1 February 21st 07 07:29 AM
Is there a MAXIF formula similar to the SUMIF formula? tlc Excel Discussion (Misc queries) 2 March 13th 06 08:07 PM


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

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"