Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Porous Metals Limited
 
Posts: n/a
Default Formula to find information between 2 dates

What formula can be used to select data between two dates (ie: 01Oct04 and
09Oct04), and if the information falls within that range, then post it to
another column, if not, then do nothing "0".

Thanks.
  #2   Report Post  
Myrna Larson
 
Posts: n/a
Default

To copy the data from column B to column C, with the date in column A, put
this formula in C2 and copy down as far as needed:

=IF(AND(A2=DATE(2004,10,1),A2<=DATE(2004,10,9)),A 2,0)

It may be easier to put the starting and ending dates in two cells, e.g. C1
and D1. Then the formula is

=IF(AND(A2=$C$1,A2<=$D$1),A2,0)


On Mon, 3 Jan 2005 08:33:04 -0800, Porous Metals Limited <Porous Metals
wrote:

What formula can be used to select data between two dates (ie: 01Oct04 and
09Oct04), and if the information falls within that range, then post it to
another column, if not, then do nothing "0".

Thanks.


  #3   Report Post  
George Nicholson
 
Posts: n/a
Default

Assuming ColumnA = Date to evaluate and ColumnB = Information to be posted

In the "other" column:
=IF(AND(A2DATEVALUE("10/1/2004"), A2< DATEVALUE("10/10/2004")),B2,0)

--
George Nicholson

Remove 'Junk' from return address.


"Porous Metals Limited" <Porous Metals
wrote in message ...
What formula can be used to select data between two dates (ie: 01Oct04 and
09Oct04), and if the information falls within that range, then post it to
another column, if not, then do nothing "0".

Thanks.



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
Dates in Formula John G Excel Discussion (Misc queries) 10 January 15th 05 03:48 PM
How do I format dates accessed by a formula Mont22 Excel Discussion (Misc queries) 2 January 12th 05 04:09 PM
Logical formula with dates Pablo Picasso Excel Worksheet Functions 0 December 27th 04 05:15 PM
Logical formula with dates Peo Sjoblom Excel Worksheet Functions 1 December 27th 04 05:15 PM
I there an easy way to find out if any formula reference a cell? Marc New Users to Excel 1 December 6th 04 10:41 PM


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