Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
Jaydubs
 
Posts: n/a
Default Checking if a certain day falls in a range

Dear Excellent users.

I have a day [=TODAY()] in field AK1
In A1 I have the number of the week.
In fields A2 till E2 I have the five days of the week noted in MM-DD

Now I want to use conditional format for the number of the week. I want to
check if the day of AK1 falls in the range of A2 till E2. If such is the
case, I want the number of the week highlighted.

Can someone help me??

Thank you !!

--
** Fool on the hill **
  #2   Report Post  
Posted to microsoft.public.excel.misc
 
Posts: n/a
Default Checking if a certain day falls in a range

Hi

With A1 selected, go to Format/Conditional Formatting use Formula Is and
then:
=COUNTIF($A$2:$E$2,AK1)0

Andy.


"Jaydubs" wrote in message
...
Dear Excellent users.

I have a day [=TODAY()] in field AK1
In A1 I have the number of the week.
In fields A2 till E2 I have the five days of the week noted in MM-DD

Now I want to use conditional format for the number of the week. I want to
check if the day of AK1 falls in the range of A2 till E2. If such is the
case, I want the number of the week highlighted.

Can someone help me??

Thank you !!

--
** Fool on the hill **



  #3   Report Post  
Posted to microsoft.public.excel.misc
Ian
 
Posts: n/a
Default Checking if a certain day falls in a range

Assuming the data in A2:E2 is dates fromatted as MM-DD then select A1 asn
use conditional formatting

Formula is =AND($A$2<=TODAY(),$E$2=TODAY())

unless you need TODAY() in AK1 for something else, you can do away with it.

--
Ian
--
"Jaydubs" wrote in message
...
Dear Excellent users.

I have a day [=TODAY()] in field AK1
In A1 I have the number of the week.
In fields A2 till E2 I have the five days of the week noted in MM-DD

Now I want to use conditional format for the number of the week. I want to
check if the day of AK1 falls in the range of A2 till E2. If such is the
case, I want the number of the week highlighted.

Can someone help me??

Thank you !!

--
** Fool on the hill **



  #4   Report Post  
Posted to microsoft.public.excel.misc
Jaydubs
 
Posts: n/a
Default Checking if a certain day falls in a range

Hello Ian,

Thank you very much for your answer. It works for me. I do need the AK1
field for other comparisons, so I will compare to AK1, instead of TODAY() in
the conditional format.
--
** Fool on the hill **


"Ian" wrote:

Assuming the data in A2:E2 is dates fromatted as MM-DD then select A1 asn
use conditional formatting

Formula is =AND($A$2<=TODAY(),$E$2=TODAY())

unless you need TODAY() in AK1 for something else, you can do away with it.

--
Ian
--
"Jaydubs" wrote in message
...
Dear Excellent users.

I have a day [=TODAY()] in field AK1
In A1 I have the number of the week.
In fields A2 till E2 I have the five days of the week noted in MM-DD

Now I want to use conditional format for the number of the week. I want to
check if the day of AK1 falls in the range of A2 till E2. If such is the
case, I want the number of the week highlighted.

Can someone help me??

Thank you !!

--
** Fool on the hill **




  #5   Report Post  
Posted to microsoft.public.excel.misc
Ian
 
Posts: n/a
Default Checking if a certain day falls in a range

Glad it works for you and thanks for the feedback.

--
Ian
--
"Jaydubs" wrote in message
...
Hello Ian,

Thank you very much for your answer. It works for me. I do need the AK1
field for other comparisons, so I will compare to AK1, instead of TODAY()
in
the conditional format.
--
** Fool on the hill **


"Ian" wrote:

Assuming the data in A2:E2 is dates fromatted as MM-DD then select A1 asn
use conditional formatting

Formula is =AND($A$2<=TODAY(),$E$2=TODAY())

unless you need TODAY() in AK1 for something else, you can do away with
it.

--
Ian
--
"Jaydubs" wrote in message
...
Dear Excellent users.

I have a day [=TODAY()] in field AK1
In A1 I have the number of the week.
In fields A2 till E2 I have the five days of the week noted in MM-DD

Now I want to use conditional format for the number of the week. I want
to
check if the day of AK1 falls in the range of A2 till E2. If such is
the
case, I want the number of the week highlighted.

Can someone help me??

Thank you !!

--
** Fool on the hill **








  #6   Report Post  
Posted to microsoft.public.excel.misc
daddylonglegs
 
Posts: n/a
Default Checking if a certain day falls in a range


Another way....

=MATCH(AK1,A2:E2,0)


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile: http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=522998

  #7   Report Post  
Posted to microsoft.public.excel.misc
Ian
 
Posts: n/a
Default Checking if a certain day falls in a range

That's the good (and frustrating) thing about Excel. For any given problem
there is normally more than one solution.

--
Ian
--
"daddylonglegs"
wrote in message
news:daddylonglegs.24rlom_1142516401.7263@excelfor um-nospam.com...

Another way....

=MATCH(AK1,A2:E2,0)


--
daddylonglegs
------------------------------------------------------------------------
daddylonglegs's Profile:
http://www.excelforum.com/member.php...o&userid=30486
View this thread: http://www.excelforum.com/showthread...hreadid=522998



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 at Source range (in Data-validation-List) gives wrong re Eddy Stan Excel Worksheet Functions 6 March 17th 06 07:19 AM
update cell only if now() falls in a given date range treyn1292 Excel Worksheet Functions 0 February 16th 06 08:54 PM
How to Select a relative range with Using "Find" and Offset() Dennis Excel Discussion (Misc queries) 7 July 27th 05 03:57 PM
Cannot Expand Named Range - when size of the Range exceeds Snig Excel Discussion (Misc queries) 1 July 7th 05 01:46 PM
Checking ALL values in a range nospaminlich Excel Discussion (Misc queries) 13 February 10th 05 09:29 AM


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