Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default Performing calculations if a value is between A and B

how do i use "if" or "sumif" to perform a calculation when the statement "A
x and B<y" is true

I am trying to run calculations when a date is within a month, e.g.,
07/31/08 and <09/01/08

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5,441
Default Performing calculations if a value is between A and B

How about

=IF(MONTH(DateCell)=8,calculation,other)

HTH,
Bernie
MS Excel MVP


"M. Nelson" wrote in message
...
how do i use "if" or "sumif" to perform a calculation when the statement "A
x and B<y" is true

I am trying to run calculations when a date is within a month, e.g.,
07/31/08 and <09/01/08



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,651
Default Performing calculations if a value is between A and B

=IF(AND(A1DATE(2008,31,7),B1<DATE(2008,9,1)),valu e_if_true,value_if_false)
or (if your A and B are looking at the same cell):
=IF(AND(YEAR(A1)=2008,MONTH(A1)=8),...
--
David Biddulph

"M. Nelson" wrote in message
...
how do i use "if" or "sumif" to perform a calculation when the statement
"A
x and B<y" is true

I am trying to run calculations when a date is within a month, e.g.,
07/31/08 and <09/01/08



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3,718
Default Performing calculations if a value is between A and B

This formula is sum column B if column A is Aug/08

=SUMPRODUCT(--(TEXT(A1:A100,"m/yy")="8/08"),B1:B100)


"M. Nelson" wrote:

how do i use "if" or "sumif" to perform a calculation when the statement "A
x and B<y" is true

I am trying to run calculations when a date is within a month, e.g.,
07/31/08 and <09/01/08

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
a more efficient way of performing this calculation? Dave F[_2_] Excel Discussion (Misc queries) 1 October 2nd 07 09:07 PM
Performing calculations on only cells with data Nat Excel Worksheet Functions 3 May 7th 07 07:56 PM
Help on performing calculations on formula results AussieExcelUser Excel Worksheet Functions 3 March 14th 06 08:01 AM
performing least squares Darius Blaszijk Excel Discussion (Misc queries) 5 March 19th 05 07:25 PM
Macros not performing correctly fabulousk Excel Discussion (Misc queries) 4 March 7th 05 04:25 PM


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