Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Debbie Dies
 
Posts: n/a
Default SumIf Criteria Matches


I have two problems.
First when I am doing a sumif formula, if I type
=Sumif(A2:M2,"5",A2:M2) then my value is returned for the sum of
whatever cells contain a number greater than 5. However if I want A1
to have the value to look for and I type =SumIf(A2:M2,"A1",A2:M2) I
get a value of 0. I don't know what is wrong.
Second I want to SumIf the criteria in A2:M2 is within 10% plus or
minus of the value I type in A1. I don't know how to ask it to sum
numbers that are within a plus or minus 10% of A1 or plus or minus 10%
of 5.


--
Debbie Dies
------------------------------------------------------------------------
Debbie Dies's Profile: http://www.excelforum.com/member.php...fo&userid=7894
View this thread: http://www.excelforum.com/showthread...hreadid=391932

  #2   Report Post  
Duke Carey
 
Posts: n/a
Default

Maybe

=SumIf(A2:M2,"<"&1.1*A1,A2:M2) -SumIf(A2:M2,"<"&.9*A1,A2:M2)

In other words,
1) the sum of everything less than 110% of A1
2) MINUS everything less than 90% of A1

Alternatively:

=SUMPRODUCT(--(A2:M2(.9*a1)),--(A2:M2<(1.1*a1)),a2:m2)



"Debbie Dies" wrote:


I have two problems.
First when I am doing a sumif formula, if I type
=Sumif(A2:M2,"5",A2:M2) then my value is returned for the sum of
whatever cells contain a number greater than 5. However if I want A1
to have the value to look for and I type =SumIf(A2:M2,"A1",A2:M2) I
get a value of 0. I don't know what is wrong.
Second I want to SumIf the criteria in A2:M2 is within 10% plus or
minus of the value I type in A1. I don't know how to ask it to sum
numbers that are within a plus or minus 10% of A1 or plus or minus 10%
of 5.


--
Debbie Dies
------------------------------------------------------------------------
Debbie Dies's Profile: http://www.excelforum.com/member.php...fo&userid=7894
View this thread: http://www.excelforum.com/showthread...hreadid=391932


  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default

=SumIf(A2:M2,""&A1)

and

=SUMPRODUCT(--(A2:M2A1*90%),--(A2:M2<=A1*110%),A2:M2)

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Debbie Dies" wrote
in message ...

I have two problems.
First when I am doing a sumif formula, if I type
=Sumif(A2:M2,"5",A2:M2) then my value is returned for the sum of
whatever cells contain a number greater than 5. However if I want A1
to have the value to look for and I type =SumIf(A2:M2,"A1",A2:M2) I
get a value of 0. I don't know what is wrong.
Second I want to SumIf the criteria in A2:M2 is within 10% plus or
minus of the value I type in A1. I don't know how to ask it to sum
numbers that are within a plus or minus 10% of A1 or plus or minus 10%
of 5.


--
Debbie Dies
------------------------------------------------------------------------
Debbie Dies's Profile:

http://www.excelforum.com/member.php...fo&userid=7894
View this thread: http://www.excelforum.com/showthread...hreadid=391932



  #4   Report Post  
Harlan Grove
 
Posts: n/a
Default

"Bob Phillips" wrote...
....
=SUMPRODUCT(--(A2:M2A1*90%),--(A2:M2<=A1*110%),A2:M2)

....

Or

=SUMPRODUCT(--(ABS(A2:M2/A1-1)<=0.1),A2:M2)


  #5   Report Post  
Bob Phillips
 
Posts: n/a
Default

Yep, I buy that.

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Harlan Grove" wrote in message
...
"Bob Phillips" wrote...
...
=SUMPRODUCT(--(A2:M2A1*90%),--(A2:M2<=A1*110%),A2:M2)

...

Or

=SUMPRODUCT(--(ABS(A2:M2/A1-1)<=0.1),A2:M2)




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
How do I use the sumif if I have multiple criteria (i.e. greater . Kellyatisl Excel Worksheet Functions 3 June 4th 06 06:33 AM
nested sumif or sumif with two criteria dshigley Excel Worksheet Functions 5 April 5th 05 03:34 AM
"criteria" in a sumif refering to the value in another cell mark Excel Discussion (Misc queries) 1 January 31st 05 07:39 PM
How do I ask for multiple criteria when creating a "sumif" formul. Rachelle Excel Worksheet Functions 3 December 1st 04 11:49 PM
Can I use a cell reference in the criteria for the sumif function. Number Cruncher Excel Worksheet Functions 2 November 4th 04 07:52 PM


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