A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

SUMIF Help



 
 
Thread Tools Display Modes
  #1  
Old April 28th, 2010, 01:18 PM posted to microsoft.public.excel.worksheet.functions
Steve M
external usenet poster
 
Posts: 17
Default SUMIF Help

I want to sum the values in rows 2 to 100 in column G where the text in
columns D or E match the text in a given cell (say F3). I would like to be
able to change the text in cell F3 and still get the sum from G2 thru G100
where text in columns D or E match F3.


  #2  
Old April 28th, 2010, 02:41 PM posted to microsoft.public.excel.worksheet.functions
Jarek Kujawa[_2_]
external usenet poster
 
Posts: 775
Default SUMIF Help

=SUM(IF(($D$2:$D$100=F3)+($E$2:$E$100=F3),$G$2:$G$ 100))

CTRL+SHIFT+ENTER (instead of using ENTER only) this formula as it is
an array-formula

after correct insertion the formula will look like

{=SUM(IF(($D$2:$D$100=F3)+($E$2:$E$100=F3),$G$2:$G $100))}


HIH


On 28 Kwi, 14:18, "Steve M" wrote:
I want to sum the values in rows 2 to 100 in column G where the text in
columns D or E match the text in a given cell (say F3). I would like to be
able to change the text in cell F3 and still get the sum from G2 thru G100
where text in columns D or E match F3.


  #3  
Old April 28th, 2010, 03:23 PM posted to microsoft.public.excel.worksheet.functions
eduardo
external usenet poster
 
Posts: 2,131
Default SUMIF Help

Hi,

=sumproduct(--(F3=$D$2:$D$100),--(F3=$E$2:$E$100),$G$$2:$G$100)

"Steve M" wrote:

I want to sum the values in rows 2 to 100 in column G where the text in
columns D or E match the text in a given cell (say F3). I would like to be
able to change the text in cell F3 and still get the sum from G2 thru G100
where text in columns D or E match F3.


.

  #4  
Old April 29th, 2010, 06:03 PM posted to microsoft.public.excel.worksheet.functions
Ashish Mathur[_2_]
external usenet poster
 
Posts: 1,764
Default SUMIF Help

Hi,

Try this

=sumproduct((D2:E100=F3)*(G2:G100)). However, if the value specified in F3,
appears in the same row in D2:E100, then it would get summed up twice

--
Regards,

Ashish Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Steve M" wrote in message
...
I want to sum the values in rows 2 to 100 in column G where the text in
columns D or E match the text in a given cell (say F3). I would like to be
able to change the text in cell F3 and still get the sum from G2 thru G100
where text in columns D or E match F3.

 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 11:18 AM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.