Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Orrutility secretary
 
Posts: n/a
Default greater than or lesser than formulas

This is simple, I'm sure but I cannot get this formula: I have a row of
figures ranging from 1.00 thru 6.00. All I want to do is start with the
first cell and determine if the range is between 1:00 but less than<2.00, if
it is add the row across for all cells that this range is applicable to,
otherwise "0". next cell between ?2:00 but less than <3.00 etc, etc. I can
get the formula to work with just one range - but for the life of me can't
get it work with a varied range.
My formula is =SUMIF(C9:Z9,""<2,C9:Z9). Help!
  #2   Report Post  
David Billigmeier
 
Posts: n/a
Default

In your descrption you said you were looking for greater than 1 and less than
2, but your formula appears you are going for strictly less than 2... so i'm
not quite sure what you need exactly, but this formula will give you 1 and
<2:

=SUMPRODUCT(--(C9:Z91),--(C9:Z9<2),C9:Z9)

--
Regards,
Dave


"Orrutility secretary" wrote:

This is simple, I'm sure but I cannot get this formula: I have a row of
figures ranging from 1.00 thru 6.00. All I want to do is start with the
first cell and determine if the range is between 1:00 but less than<2.00, if
it is add the row across for all cells that this range is applicable to,
otherwise "0". next cell between ?2:00 but less than <3.00 etc, etc. I can
get the formula to work with just one range - but for the life of me can't
get it work with a varied range.
My formula is =SUMIF(C9:Z9,""<2,C9:Z9). Help!

  #3   Report Post  
tkaplan
 
Posts: n/a
Default


the entire criteria needs to be in quotes:

=SUMIF(C9:Z9,"<2",C9:Z9).


--
tkaplan
------------------------------------------------------------------------
tkaplan's Profile: http://www.excelforum.com/member.php...o&userid=22987
View this thread: http://www.excelforum.com/showthread...hreadid=471142

  #4   Report Post  
Orrutility secretary
 
Posts: n/a
Default

Yes - you were correct, and Yes that worked. So from looking at the formula
I'm assuming the "--" sets an array? Thanks again

"David Billigmeier" wrote:

In your descrption you said you were looking for greater than 1 and less than
2, but your formula appears you are going for strictly less than 2... so i'm
not quite sure what you need exactly, but this formula will give you 1 and
<2:

=SUMPRODUCT(--(C9:Z91),--(C9:Z9<2),C9:Z9)

--
Regards,
Dave


"Orrutility secretary" wrote:

This is simple, I'm sure but I cannot get this formula: I have a row of
figures ranging from 1.00 thru 6.00. All I want to do is start with the
first cell and determine if the range is between 1:00 but less than<2.00, if
it is add the row across for all cells that this range is applicable to,
otherwise "0". next cell between ?2:00 but less than <3.00 etc, etc. I can
get the formula to work with just one range - but for the life of me can't
get it work with a varied range.
My formula is =SUMIF(C9:Z9,""<2,C9:Z9). Help!

  #5   Report Post  
David Billigmeier
 
Posts: n/a
Default

The Sumproduct() function sets the array. The "--" changes TRUE/FALSE to 1/0
so a multiplication can take place between the array's

--
Regards,
Dave


"Orrutility secretary" wrote:

Yes - you were correct, and Yes that worked. So from looking at the formula
I'm assuming the "--" sets an array? Thanks again

"David Billigmeier" wrote:

In your descrption you said you were looking for greater than 1 and less than
2, but your formula appears you are going for strictly less than 2... so i'm
not quite sure what you need exactly, but this formula will give you 1 and
<2:

=SUMPRODUCT(--(C9:Z91),--(C9:Z9<2),C9:Z9)

--
Regards,
Dave


"Orrutility secretary" wrote:

This is simple, I'm sure but I cannot get this formula: I have a row of
figures ranging from 1.00 thru 6.00. All I want to do is start with the
first cell and determine if the range is between 1:00 but less than<2.00, if
it is add the row across for all cells that this range is applicable to,
otherwise "0". next cell between ?2:00 but less than <3.00 etc, etc. I can
get the formula to work with just one range - but for the life of me can't
get it work with a varied range.
My formula is =SUMIF(C9:Z9,""<2,C9:Z9). Help!

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
Array Formulas take waaaay too long... belly0fdesire Excel Worksheet Functions 7 August 8th 05 10:11 PM
if greater or lesser than ditchy Excel Discussion (Misc queries) 5 August 4th 05 04:10 AM
Problem with named formula's nathan Excel Worksheet Functions 0 January 21st 05 05:07 PM
How to make Excel run limited number of formulas on a given worksh John Excel Discussion (Misc queries) 0 January 12th 05 05:29 PM
calculating formulas for all workbooks in a folder Chad Excel Worksheet Functions 3 November 13th 04 06:22 PM


All times are GMT +1. The time now is 11:07 AM.

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"