Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
TimR
 
Posts: n/a
Default SUMIF meets a criteria


I am trying to sum if the criteria is between two values;

SUMIF(C2:C834,(=8000-0010,<=8000-0510),J2:J834)

I keep getting error messages. The data is formatted as the attached
(hopefully). In the example I point to the values 8000-0010 and 8000-
0510.

Any help would be appreciated.

Tim


--
TimR
------------------------------------------------------------------------
TimR's Profile: http://www.excelforum.com/member.php...o&userid=27843
View this thread: http://www.excelforum.com/showthread...hreadid=478878

  #2   Report Post  
Peo Sjoblom
 
Posts: n/a
Default SUMIF meets a criteria

1. You cannot use 2 conditions in a SUMIF
2. The values you have are text (8000-0010 is not a numeric)
so how can you apply a greater than etc condition to it

I'd suggest you split the number into 2 like

8000 in one column and 0010 in another

then you can use

=SUMPRODUCT(--(RANGE1=8000),--(Range2=10),--(Range2<=510),J2:J834)

otherwise you need to parse out the different parts of the string
and it becomes fairly complicated


--

Regards,

Peo Sjoblom



"TimR" wrote in message
...

I am trying to sum if the criteria is between two values;

SUMIF(C2:C834,(=8000-0010,<=8000-0510),J2:J834)

I keep getting error messages. The data is formatted as the attached
(hopefully). In the example I point to the values 8000-0010 and 8000-
0510.

Any help would be appreciated.

Tim


--
TimR
------------------------------------------------------------------------
TimR's Profile:

http://www.excelforum.com/member.php...o&userid=27843
View this thread: http://www.excelforum.com/showthread...hreadid=478878



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


SUMPRODUCT(--(C2:C834="8000-0010"),--(C2:C834<="8000-0510"),J2:J834)

--

HTH

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


"TimR" wrote in message
...

I am trying to sum if the criteria is between two values;

SUMIF(C2:C834,(=8000-0010,<=8000-0510),J2:J834)

I keep getting error messages. The data is formatted as the attached
(hopefully). In the example I point to the values 8000-0010 and 8000-
0510.

Any help would be appreciated.

Tim


--
TimR
------------------------------------------------------------------------
TimR's Profile:

http://www.excelforum.com/member.php...o&userid=27843
View this thread: http://www.excelforum.com/showthread...hreadid=478878



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
SUMIF with Mutiple Ranges & Criteria PokerZan Excel Discussion (Misc queries) 5 August 4th 05 10:31 PM
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
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:51 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"