#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default Excel - If Forumula

We are attempting to create a formula to state whether a cell is between two
dates.

eg.

Cell (A1) Information = 01/08/08
Cell (B1) information = £70

need IF instruction to state that if cell (A1) is between 01/08/08 and
31/08/08 then return the value of cell (B1), if not then return the value of
£0

Is anyone able to provide the formular for this?

Thanks

Allison
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,501
Default Excel - If Forumula

try this

=IF(AND(A1=DATE(2008,8,1),A1<=DATE(2008,8,31)),B1 ,0)

Mike

"Allison.S" wrote:

We are attempting to create a formula to state whether a cell is between two
dates.

eg.

Cell (A1) Information = 01/08/08
Cell (B1) information = £70

need IF instruction to state that if cell (A1) is between 01/08/08 and
31/08/08 then return the value of cell (B1), if not then return the value of
£0

Is anyone able to provide the formular for this?

Thanks

Allison

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,358
Default Excel - If Forumula

=(A1=startdate)*(A1<=enddate)*B1

NOTE: This assumes that startdate and enddate are valid dates.
--
John C


"Allison.S" wrote:

We are attempting to create a formula to state whether a cell is between two
dates.

eg.

Cell (A1) Information = 01/08/08
Cell (B1) information = £70

need IF instruction to state that if cell (A1) is between 01/08/08 and
31/08/08 then return the value of cell (B1), if not then return the value of
£0

Is anyone able to provide the formular for this?

Thanks

Allison

  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Excel - If Forumula

One way:

=AND(A1=DATE(2008,8,1),A1<=DATE(2008,8,31))*B1

--
Biff
Microsoft Excel MVP


"Allison.S" wrote in message
...
We are attempting to create a formula to state whether a cell is between
two
dates.

eg.

Cell (A1) Information = 01/08/08
Cell (B1) information = £70

need IF instruction to state that if cell (A1) is between 01/08/08 and
31/08/08 then return the value of cell (B1), if not then return the value
of
£0

Is anyone able to provide the formular for this?

Thanks

Allison



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 2,345
Default Excel - If Forumula

Just another option, with 1/8/08 in A1 and 31/8/08 in B2:

=IF((MEDIAN(A2,B2,A1)=A1),B1,"Not in range")

or

=(MEDIAN(A2,B2,A1)=A1)*B1


--
HTH

Sandy
In Perth, the ancient capital of Scotland
and the crowning place of kings


Replace @mailinator.com with @tiscali.co.uk


"Allison.S" wrote in message
...
We are attempting to create a formula to state whether a cell is between
two
dates.

eg.

Cell (A1) Information = 01/08/08
Cell (B1) information = £70

need IF instruction to state that if cell (A1) is between 01/08/08 and
31/08/08 then return the value of cell (B1), if not then return the value
of
£0

Is anyone able to provide the formular for this?

Thanks

Allison






  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 8,651
Default Excel - If Forumula

=IF(AND(MONTH(A1)=8,YEAR(A1)=2008),B1,0)
or (if you put your date limits in D1 and E1)
=IF(AND(A1=D$1,A1<=E$1),B1,0)
--
David Biddulph


"Allison.S" wrote in message
...
We are attempting to create a formula to state whether a cell is between
two
dates.

eg.

Cell (A1) Information = 01/08/08
Cell (B1) information = £70

need IF instruction to state that if cell (A1) is between 01/08/08 and
31/08/08 then return the value of cell (B1), if not then return the value
of
£0

Is anyone able to provide the formular for this?

Thanks

Allison



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
Formula to another forumula? 57Caddy Excel Discussion (Misc queries) 10 December 7th 07 04:51 PM
Need help with a look up forumula I haven't seen before Steven Leuck Excel Worksheet Functions 3 November 19th 07 07:00 PM
Forumula help using Countif NeedHelpFast Excel Worksheet Functions 1 April 27th 06 01:47 PM
shortening a forumula Mike_sharp Excel Discussion (Misc queries) 4 May 4th 05 04:54 PM
Help with FORUMULA LoriM Excel Discussion (Misc queries) 0 January 7th 05 07:31 PM


All times are GMT +1. The time now is 06:16 AM.

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"