Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
MojoBaer
 
Posts: n/a
Default How do I do a "between" in an IF statement?

I need to sum a column and the condition has multiple criteria:


SUMIF($G$16:$G$28, between 5 and 10, $E$16:$E$28)

how do I represent "between 5 and 10"?


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Don Guillett
 
Posts: n/a
Default How do I do a "between" in an IF statement?

=sumproduct((g16:g28=5)*(g16:g28<10)*e16:e28)

--
Don Guillett
SalesAid Software

"MojoBaer" wrote in message
...
I need to sum a column and the condition has multiple criteria:


SUMIF($G$16:$G$28, between 5 and 10, $E$16:$E$28)

how do I represent "between 5 and 10"?




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
MojoBaer
 
Posts: n/a
Default How do I do a "between" in an IF statement?

Thanks, Don! It worked great.

sumproduct? never in a million years would I have figured that out....

"Don Guillett" wrote:

=sumproduct((g16:g28=5)*(g16:g28<10)*e16:e28)

--
Don Guillett
SalesAid Software

"MojoBaer" wrote in message
...
I need to sum a column and the condition has multiple criteria:


SUMIF($G$16:$G$28, between 5 and 10, $E$16:$E$28)

how do I represent "between 5 and 10"?





  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Beege
 
Posts: n/a
Default How do I do a "between" in an IF statement?

"MojoBaer" wrote in message
...
I need to sum a column and the condition has multiple criteria:

SUMIF($G$16:$G$28, between 5 and 10, $E$16:$E$28)
how do I represent "between 5 and 10"?


I thin you need an AND(___<10, ___5) in there

Beege


  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bearacade
 
Posts: n/a
Default How do I do a "between" in an IF statement?


Or you can do this..

=SUMIF($G$16:$G$28,"=5")-SUMIF($G$16:$G$28,"10")


--
Bearacade


------------------------------------------------------------------------
Bearacade's Profile: http://www.excelforum.com/member.php...o&userid=35016
View this thread: http://www.excelforum.com/showthread...hreadid=556554



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
 
Posts: n/a
Default How do I do a "between" in an IF statement?

Bearacade wrote:
Or you can do this..
=SUMIF($G$16:$G$28,"=5")-SUMIF($G$16:$G$28,"10")


A m-u-c-h more intuitive expression. KISS!

Of course you meant sumif(..., $E$16:$E$28) in both cases; a minor
omission.

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Don Guillett
 
Posts: n/a
Default How do I do a "between" in an IF statement?

A m-u-c-h more intuitive expression. KISS!
why do you think that is better than learning to use sumproduct?

--
Don Guillett
SalesAid Software

wrote in message
oups.com...
Bearacade wrote:
Or you can do this..
=SUMIF($G$16:$G$28,"=5")-SUMIF($G$16:$G$28,"10")


A m-u-c-h more intuitive expression. KISS!

Of course you meant sumif(..., $E$16:$E$28) in both cases; a minor
omission.



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
SET statement tutorial Daminc Excel Discussion (Misc queries) 13 January 17th 06 04:47 PM
If Statement linked to cell with VLOOKUP problem - getting wrong v Mike R. Excel Worksheet Functions 4 January 14th 06 02:16 PM
If statement Matt Montagliano Excel Discussion (Misc queries) 1 September 8th 05 08:47 PM
Do I need a sumif or sum of a vlookup formula? PeterB Excel Worksheet Functions 0 June 1st 05 12:23 PM
Statement lintan Excel Worksheet Functions 1 December 2nd 04 11:31 PM


All times are GMT +1. The time now is 05:26 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"