Welcome to the { mindfrost82.com } forums.

You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today!

If you have any problems with the registration process or your account login, please contact contact us.

Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Excel

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-22-2008, 06:18 PM
mlv
 
Posts: n/a
Hot Date

I have a column of dates (assume A1:A45) and I would like to highlight the
first date in the column (reading top to bottom) that is equal to, or
nearest to a specified date (in Cell B1), but NOT less than the specified
date.

The dates will all be from the same month and will be (should be!) in
chronological order, reading top to bottom. The same date may appear more
than once in the column. Some dates will not appear at all.

For example:

A1 02/04/2008
A2 03/04/2008
A3 05/04/2008
A4 05/04/2008
A5 10/04/2008
A6 13/04/2008
A7 13/04/2008
A8 17/04/2008
A9 26/04/2008
etc.

If the specified date is 05/04/2008, Cell A3 would be highlighted.

If the specified date is 11/04/2008, Cell A6 would be highlighted.

If the specified date is 18/04/2008, Cell A9 would be highlighted.

If the specified date is 27/04/2008, and there are no further dates entered
beyond A9, then no cells would be highlighted.

Is this achievable without getting too complicated?

Am I looking at Conditional Formatting and a helper column?

TIA
--
Mike
-Please remove 'safetycatch' from email address before firing off your
reply-


Reply With Quote
  #2 (permalink)  
Old 05-22-2008, 09:12 PM
RagDyer
 
Posts: n/a
Re: Hot Date

No helper column needed.

Select A1 to A45, where the focus of the selection is A1 (colored white).

Then, in Conditional Formatting, use "Formula Is", and enter this formula:

=A1=INDEX($A$1:$A$45,MATCH(TRUE,($A$1:$A$45>=$B$1) ,0))

Click on "Format", and choose whatever you like to highlight the dates.

BTW - if you have duplicates, this will highlight *all* the dates that meet
the criteria.

--
HTH,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"mlv" <mike.safetycatchvincent@jet.co.uk> wrote in message
news:g149tl$mv$1@north.jnrs.ja.net...
>I have a column of dates (assume A1:A45) and I would like to highlight the
>first date in the column (reading top to bottom) that is equal to, or
>nearest to a specified date (in Cell B1), but NOT less than the specified
>date.
>
> The dates will all be from the same month and will be (should be!) in
> chronological order, reading top to bottom. The same date may appear more
> than once in the column. Some dates will not appear at all.
>
> For example:
>
> A1 02/04/2008
> A2 03/04/2008
> A3 05/04/2008
> A4 05/04/2008
> A5 10/04/2008
> A6 13/04/2008
> A7 13/04/2008
> A8 17/04/2008
> A9 26/04/2008
> etc.
>
> If the specified date is 05/04/2008, Cell A3 would be highlighted.
>
> If the specified date is 11/04/2008, Cell A6 would be highlighted.
>
> If the specified date is 18/04/2008, Cell A9 would be highlighted.
>
> If the specified date is 27/04/2008, and there are no further dates
> entered beyond A9, then no cells would be highlighted.
>
> Is this achievable without getting too complicated?
>
> Am I looking at Conditional Formatting and a helper column?
>
> TIA
> --
> Mike
> -Please remove 'safetycatch' from email address before firing off your
> reply-
>



Reply With Quote
  #3 (permalink)  
Old 05-23-2008, 10:29 AM
mlv
 
Posts: n/a
Re: Hot Date

RagDyer wrote:
>
> No helper column needed.
>
> Select A1 to A45, where the focus of the selection is A1 (colored white).
>
> Then, in Conditional Formatting, use "Formula Is", and enter this formula:
>
> =A1=INDEX($A$1:$A$45,MATCH(TRUE,($A$1:$A$45>=$B$1) ,0))
>
> Click on "Format", and choose whatever you like to highlight the dates.
>
> BTW - if you have duplicates, this will highlight *all* the dates that
> meet the criteria.
>
> --
> HTH,
>
> RD


Thanks RD, the formula works just fine.
--
Mike
-Please remove 'safetycatch' from email address before firing off your
reply-


Reply With Quote
  #4 (permalink)  
Old 05-23-2008, 07:42 PM
RagDyer
 
Posts: n/a
Re: Hot Date

You're welcome, and thank you for the feed-back.
--
Regards,

RD

---------------------------------------------------------------------------
Please keep all correspondence within the NewsGroup, so all may benefit !
---------------------------------------------------------------------------
"mlv" <mike.safetycatchvincent@jet.co.uk> wrote in message
news:g162pt$eb3$1@north.jnrs.ja.net...
> RagDyer wrote:
>>
>> No helper column needed.
>>
>> Select A1 to A45, where the focus of the selection is A1 (colored white).
>>
>> Then, in Conditional Formatting, use "Formula Is", and enter this
>> formula:
>>
>> =A1=INDEX($A$1:$A$45,MATCH(TRUE,($A$1:$A$45>=$B$1) ,0))
>>
>> Click on "Format", and choose whatever you like to highlight the dates.
>>
>> BTW - if you have duplicates, this will highlight *all* the dates that
>> meet the criteria.
>>
>> --
>> HTH,
>>
>> RD

>
> Thanks RD, the formula works just fine.
> --
> Mike
> -Please remove 'safetycatch' from email address before firing off your
> reply-
>



Reply With Quote
  #5 (permalink)  
Old 05-24-2008, 03:21 PM
=?Utf-8?B?ZGFkZHlsb25nbGVncw==?=
 
Posts: n/a
Re: Hot Date

You could also use this formula

=A1=MIN(IF(A$1:A$45>=B$1,A$1:A$45))

"RagDyer" wrote:

> You're welcome, and thank you for the feed-back.
> --
> Regards,
>
> RD
>
> ---------------------------------------------------------------------------
> Please keep all correspondence within the NewsGroup, so all may benefit !
> ---------------------------------------------------------------------------
> "mlv" <mike.safetycatchvincent@jet.co.uk> wrote in message
> news:g162pt$eb3$1@north.jnrs.ja.net...
> > RagDyer wrote:
> >>
> >> No helper column needed.
> >>
> >> Select A1 to A45, where the focus of the selection is A1 (colored white).
> >>
> >> Then, in Conditional Formatting, use "Formula Is", and enter this
> >> formula:
> >>
> >> =A1=INDEX($A$1:$A$45,MATCH(TRUE,($A$1:$A$45>=$B$1) ,0))
> >>
> >> Click on "Format", and choose whatever you like to highlight the dates.
> >>
> >> BTW - if you have duplicates, this will highlight *all* the dates that
> >> meet the criteria.
> >>
> >> --
> >> HTH,
> >>
> >> RD

> >
> > Thanks RD, the formula works just fine.
> > --
> > Mike
> > -Please remove 'safetycatch' from email address before firing off your
> > reply-
> >

>
>
>

Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Microsoft > MS Office > Excel


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 04:23 AM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0


Sponsors:
Credit Check | Mortgage Calculator | WoW Gold | MPAA | Ringtones



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114