Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Ivano
 
Posts: n/a
Default Sumif between values

Hi,
I'm trying to add up the values in column C only if the the corresponding
values in Column A is Equal to and between 2000 and 3000, 3000 and 4000, 4000
and 5000.

A B C
1 2000 tom $10
2 2200 bob $20
3 4058 lue $50
4 3000 sue $6
5 4125 nik $8
This is what the answers should be:

2000 $30
3000 $6
4000 $58

This is what I have but I get 0 all the time. I can't figure out the
criteria part:
=SUMIF(A1:A5,A1:A5 AND(=2000,<3000),C1:C5)

Thanks
Ivano

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
JE McGimpsey
 
Posts: n/a
Default Sumif between values

one way:

=SUMPRODUCT(--(A1:A5=2000),--(A1:A5<3000),(C1:C5))

See

http://www.mcgimpsey.com/excel/doubleneg.html

for an explanation of how the -- works.

In article ,
Ivano wrote:

Hi,
I'm trying to add up the values in column C only if the the corresponding
values in Column A is Equal to and between 2000 and 3000, 3000 and 4000, 4000
and 5000.

A B C
1 2000 tom $10
2 2200 bob $20
3 4058 lue $50
4 3000 sue $6
5 4125 nik $8
This is what the answers should be:

2000 $30
3000 $6
4000 $58

This is what I have but I get 0 all the time. I can't figure out the
criteria part:
=SUMIF(A1:A5,A1:A5 AND(=2000,<3000),C1:C5)

Thanks
Ivano

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
sumif with activex input CraigSA Excel Discussion (Misc queries) 0 March 30th 06 03:28 PM
sumif remove high/low values Big Ben Excel Discussion (Misc queries) 6 August 12th 05 10:50 PM
Min values in a list of numbers Traima Excel Worksheet Functions 1 August 5th 05 01:32 PM
Using SumIF formulas with multiple lookup values Chris Freeman Excel Worksheet Functions 3 April 13th 05 01:40 AM
Sumif with open Values tamato43 Excel Discussion (Misc queries) 5 March 21st 05 11:47 PM


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