PC Review


Reply
Thread Tools Rate Thread

Business Days

 
 
Michael from Austin
Guest
Posts: n/a
 
      19th Mar 2008
In need to be able to highlight a row if the date in that row is greater than
10 business days. I have already stored today as a variable called "today."
--
Regards,
Michael
 
Reply With Quote
 
 
 
 
Matthew Pfluger
Guest
Posts: n/a
 
      19th Mar 2008
Use the WORKDAY function. You could set up Conditional Formatting using:
"=WORKDAY(today,10)>$A$1"

Give that a try.
Matthew Pfluger

"Michael from Austin" wrote:

> In need to be able to highlight a row if the date in that row is greater than
> 10 business days. I have already stored today as a variable called "today."
> --
> Regards,
> Michael

 
Reply With Quote
 
Dick Kusleika
Guest
Posts: n/a
 
      19th Mar 2008
On Wed, 19 Mar 2008 10:03:01 -0700, Michael from Austin
<(E-Mail Removed)> wrote:

>In need to be able to highlight a row if the date in that row is greater than
>10 business days. I have already stored today as a variable called "today."


Go to Tools > Addins and make sure "Analysis Toolpak - VBA" is checked. In
the VBE, go to Tools > References and set a reference to atpvbaen.xls. Then
you can call the NETWORKDAYS function directly

Sub HighlightDays()

If Abs(networkdays(Sheet1.Range("A4").Value, Date)) > 10 Then
Sheet1.Range("A4").EntireRow.Interior.Color = vbYellow
End If

End Sub
--
Dick Kusleika
Microsoft MVP-Excel
http://www.dailydoseofexcel.com
 
Reply With Quote
 
Michael from Austin
Guest
Posts: n/a
 
      25th Mar 2008
Worked.. Thanks So much...........
--
Regards,
Michael


"Matthew Pfluger" wrote:

> Use the WORKDAY function. You could set up Conditional Formatting using:
> "=WORKDAY(today,10)>$A$1"
>
> Give that a try.
> Matthew Pfluger
>
> "Michael from Austin" wrote:
>
> > In need to be able to highlight a row if the date in that row is greater than
> > 10 business days. I have already stored today as a variable called "today."
> > --
> > Regards,
> > Michael

 
Reply With Quote
 
Michael from Austin
Guest
Posts: n/a
 
      25th Mar 2008
Worked!!!! Thanks so much.........
--
Regards,
Michael


"Dick Kusleika" wrote:

> On Wed, 19 Mar 2008 10:03:01 -0700, Michael from Austin
> <(E-Mail Removed)> wrote:
>
> >In need to be able to highlight a row if the date in that row is greater than
> >10 business days. I have already stored today as a variable called "today."

>
> Go to Tools > Addins and make sure "Analysis Toolpak - VBA" is checked. In
> the VBE, go to Tools > References and set a reference to atpvbaen.xls. Then
> you can call the NETWORKDAYS function directly
>
> Sub HighlightDays()
>
> If Abs(networkdays(Sheet1.Range("A4").Value, Date)) > 10 Then
> Sheet1.Range("A4").EntireRow.Interior.Color = vbYellow
> End If
>
> End Sub
> --
> Dick Kusleika
> Microsoft MVP-Excel
> http://www.dailydoseofexcel.com
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

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

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Business Days / Work Days only / Date Math dl Microsoft Access Queries 0 12th Feb 2009 07:18 PM
Aging bu business days not calendar days =?Utf-8?B?U3RldmU=?= Microsoft Access 4 7th Jul 2007 12:06 PM
BUSINESS DAYS - Need function that will list next 3 business days. =?Utf-8?B?SmF5IENGQQ==?= Microsoft Excel Programming 3 13th Feb 2007 09:19 AM
Business Days Or Working Days Date-less Microsoft Excel Worksheet Functions 1 16th Apr 2004 10:38 PM
Business Days for based on a date of 7 days ago or longer =?Utf-8?B?QmFyYmFyYQ==?= Microsoft Access Queries 1 27th Oct 2003 09:26 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:26 PM.