Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 5
Default If and Date Ranges

How do I use the if function if I want to highlight the rows where certain
cells are within certain date ranges

If n2is between 07/01/208 and 07/23/2008 and b2 is between 08/01/0808 and
08/31/2008.

I will want to highlight the rows - but would settle for a simple yes or no.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 2,510
Default If and Date Ranges

Hi Romanli,

the following should give you a "Yes" or "No".

=IF(AND(N2=DATEVALUE("7/1/2008"),N2<=DATEVALUE("7/23/2008"),B2=DATEVALUE("8/1/2008"),B2<=DATEVALUE("8/31/2008")),"Yes","No")


Note that the above is all one line of formula.

--
Regards,

OssieMac


"Romanli" wrote:

How do I use the if function if I want to highlight the rows where certain
cells are within certain date ranges

If n2is between 07/01/208 and 07/23/2008 and b2 is between 08/01/0808 and
08/31/2008.

I will want to highlight the rows - but would settle for a simple yes or no.

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
date ranges Carolina Girl Excel Worksheet Functions 3 May 9th 08 10:07 PM
Date ranges Fortune Excel Worksheet Functions 1 March 28th 07 05:18 PM
compare date to various date ranges and sum value al Excel Worksheet Functions 2 January 10th 07 10:17 AM
If then Date Ranges Mark B Excel Worksheet Functions 0 November 30th 05 05:49 PM
sum of date ranges Tanya Excel Worksheet Functions 1 January 4th 05 04:11 AM


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