Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
chalky
 
Posts: n/a
Default SUMIF with a Greater Than


Ok, I have a table that is looking to sum the relevant sections, the
table currently goes:

0-10,000
10,001-20,000
20,001-30,000

And so on (all figures are integers). The ranges relate to turnover by
case and for whichever range the turnover falls in I want to sum a cost
column. This is simple enough to do and at the moment I have:

=SUMIF($E$13:$E$17,"0",$F$3:$F$5000)-SUMIF($E$3:$E$5000,"10000",$F$3:$F$5000)

The problem is this range is liable to change and I want to link the
greater than (and less than) to the cells the figures fit in. Each of
the components of the range (i.e. the 0-10000) is in a different cell
so easy to link to but Excel isn’t having it. I have tried using
INDIRECT and CONCATENATE to get it to work but it still isn't working –
any ideas?


--
chalky
------------------------------------------------------------------------
chalky's Profile: http://www.excelforum.com/member.php...o&userid=23758
View this thread: http://www.excelforum.com/showthread...hreadid=493048

  #2   Report Post  
Posted to microsoft.public.excel.misc
Bob Phillips
 
Posts: n/a
Default SUMIF with a Greater Than

Something like

=SUMIF($E$13:$E$17,""&A1,$F$3:$F$5000)-SUMIF($E$3:$E$5000,"",&B1,$F$3:$F$5
000)

where A1 and B1 hold the values


--
HTH

Bob Phillips

(remove nothere from email address if mailing direct)

"chalky" wrote in
message ...

Ok, I have a table that is looking to sum the relevant sections, the
table currently goes:

0-10,000
10,001-20,000
20,001-30,000

And so on (all figures are integers). The ranges relate to turnover by
case and for whichever range the turnover falls in I want to sum a cost
column. This is simple enough to do and at the moment I have:


=SUMIF($E$13:$E$17,"0",$F$3:$F$5000)-SUMIF($E$3:$E$5000,"10000",$F$3:$F$50
00)

The problem is this range is liable to change and I want to link the
greater than (and less than) to the cells the figures fit in. Each of
the components of the range (i.e. the 0-10000) is in a different cell
so easy to link to but Excel isn't having it. I have tried using
INDIRECT and CONCATENATE to get it to work but it still isn't working -
any ideas?


--
chalky
------------------------------------------------------------------------
chalky's Profile:

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



  #3   Report Post  
Posted to microsoft.public.excel.misc
Roger Govier
 
Posts: n/a
Default SUMIF with a Greater Than

Hi

Try
=SUMIF($E$13:$E$17,""&A1,$F$3:$F$5000)-SUMIF($E$3:$E$5000,""&A2,$F$3:$F$5000)

Where A1 and A2 hold your respective values

Regards

Roger Govier


chalky wrote:
Ok, I have a table that is looking to sum the relevant sections, the
table currently goes:

0-10,000
10,001-20,000
20,001-30,000

And so on (all figures are integers). The ranges relate to turnover by
case and for whichever range the turnover falls in I want to sum a cost
column. This is simple enough to do and at the moment I have:

=SUMIF($E$13:$E$17,"0",$F$3:$F$5000)-SUMIF($E$3:$E$5000,"10000",$F$3:$F$5000)

The problem is this range is liable to change and I want to link the
greater than (and less than) to the cells the figures fit in. Each of
the components of the range (i.e. the 0-10000) is in a different cell
so easy to link to but Excel isn’t having it. I have tried using
INDIRECT and CONCATENATE to get it to work but it still isn't working –
any ideas?


  #4   Report Post  
Posted to microsoft.public.excel.misc
chalky
 
Posts: n/a
Default SUMIF with a Greater Than


Ah, perfect. I couldn't see the wood for the trees on that one, thanks
for your help.

Chris


--
chalky
------------------------------------------------------------------------
chalky's Profile: http://www.excelforum.com/member.php...o&userid=23758
View this thread: http://www.excelforum.com/showthread...hreadid=493048

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 to use SUMIF to return sums between two values located in cells ScottBerger Excel Worksheet Functions 2 April 23rd 23 09:05 PM
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
I want the greater number of 2 cells to show in a separate cell cfiser Excel Discussion (Misc queries) 2 November 16th 05 10:32 PM
I want the greater number of 2 cells to show in a separate cell Ron Coderre Excel Discussion (Misc queries) 1 November 16th 05 09:22 PM
HOW DO YOU SUMIF THE NUMBER IS GREATER THAN BUT LESS THAN A # uma Excel Worksheet Functions 1 October 6th 05 06:20 PM


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