Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
TLB
 
Posts: n/a
Default what is syntax for if(between range of dates,"Q1","Q2")?

HI,
I'm trying to create the following formula:

if cell b34 is between Nov 1/04 and Jan 31/05, enter "Q1"
if cell b34 is between Feb 1/05 and April 30/05, enter "Q2"

etc.
What is the correct syntax for this formula? I have entered:

if(11/01/04<=b34<=01/31/05,"Q1",if(02/01/05<=b34<=04/30/05,"Q2",if(etc etc)))

But this isn't working.

Does anyone know how to create an If statement based on a cell falling
within a range of dates?
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
TLB
 
Posts: n/a
Default what is syntax for if(between range of dates,"Q1","Q2")?

Perfect, thank you.

"Roger Govier" wrote:

Hi

=IF(AND(B34=DATE(2004,11,1),B34<=DATE(2005,1,31)) ,"Q1",IF(AND(B34=DATE(2005,2,1),B34<=DATE(2005,4, 30)),"Q2",""))

Regards

Roger Govier


TLB wrote:
HI,
I'm trying to create the following formula:

if cell b34 is between Nov 1/04 and Jan 31/05, enter "Q1"
if cell b34 is between Feb 1/05 and April 30/05, enter "Q2"

etc.
What is the correct syntax for this formula? I have entered:

if(11/01/04<=b34<=01/31/05,"Q1",if(02/01/05<=b34<=04/30/05,"Q2",if(etc etc)))

But this isn't working.

Does anyone know how to create an If statement based on a cell falling
within a range of dates?


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Roger Govier
 
Posts: n/a
Default what is syntax for if(between range of dates,"Q1","Q2")?

You are very welcome. Thanks for the feedback.

Also apologies to everyone, I just noticed my system date had gone haywire
and was reading the 6th. I have now come back to the present!!

Regards

Roger Govier


TLB wrote:
Perfect, thank you.

"Roger Govier" wrote:


Hi

=IF(AND(B34=DATE(2004,11,1),B34<=DATE(2005,1,31 )),"Q1",IF(AND(B34=DATE(2005,2,1),B34<=DATE(2005, 4,30)),"Q2",""))

Regards

Roger Govier


TLB wrote:

HI,
I'm trying to create the following formula:

if cell b34 is between Nov 1/04 and Jan 31/05, enter "Q1"
if cell b34 is between Feb 1/05 and April 30/05, enter "Q2"

etc.
What is the correct syntax for this formula? I have entered:

if(11/01/04<=b34<=01/31/05,"Q1",if(02/01/05<=b34<=04/30/05,"Q2",if(etc etc)))

But this isn't working.

Does anyone know how to create an If statement based on a cell falling
within a range of dates?


  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Roger Govier
 
Posts: n/a
Default what is syntax for if(between range of dates,"Q1","Q2")?

Hi

=IF(AND(B34=DATE(2004,11,1),B34<=DATE(2005,1,31)) ,"Q1",IF(AND(B34=DATE(2005,2,1),B34<=DATE(2005,4, 30)),"Q2",""))

Regards

Roger Govier


TLB wrote:
HI,
I'm trying to create the following formula:

if cell b34 is between Nov 1/04 and Jan 31/05, enter "Q1"
if cell b34 is between Feb 1/05 and April 30/05, enter "Q2"

etc.
What is the correct syntax for this formula? I have entered:

if(11/01/04<=b34<=01/31/05,"Q1",if(02/01/05<=b34<=04/30/05,"Q2",if(etc etc)))

But this isn't working.

Does anyone know how to create an If statement based on a cell falling
within a range of dates?

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 to named range conversion... i-Zapp Excel Discussion (Misc queries) 4 October 25th 05 09:09 PM
Find dates in a range; then sum values in that range by a criteria Anders Excel Discussion (Misc queries) 4 October 21st 05 03:41 PM
Cannot Expand Named Range - when size of the Range exceeds Snig Excel Discussion (Misc queries) 1 July 7th 05 01:46 PM
syntax to refer to a range as an array? david cassain Excel Worksheet Functions 12 May 26th 05 11:28 PM
Counting empty cells within a range of cells Rosehill - ExcelForums.com New Users to Excel 2 May 2nd 05 08:53 AM


All times are GMT +1. The time now is 10:31 PM.

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"