PC Review


Reply
Thread Tools Rate Thread

Date lookup function help

 
 
Os
Guest
Posts: n/a
 
      28th Mar 2005
I need to add a date + lookup function to do this:

I want the formula to take the "order date" and match it
with the report date + 6 days ahead (meaning if the order
date is the same as the report date plus 6 days ahead,
then run the formula, otherwise leave blank). If the date
is matching, then take the item desc. and look it up in
another sheet, to get the value in the column next to the
item desc column.
How can I use the date + 6 formula?

Thanks.
 
Reply With Quote
 
 
 
 
Thomas A. Rowe
Guest
Posts: n/a
 
      28th Mar 2005
How is this related to FrontPage?

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)
http://www.ycoln-resources.com
FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
To assist you in getting the best answers for FrontPage support see:
http://www.net-sites.com/sitebuilder/newsgroups.asp

"Os" <(E-Mail Removed)> wrote in message
news:206f01c533c7$89740e00$(E-Mail Removed)...
>I need to add a date + lookup function to do this:
>
> I want the formula to take the "order date" and match it
> with the report date + 6 days ahead (meaning if the order
> date is the same as the report date plus 6 days ahead,
> then run the formula, otherwise leave blank). If the date
> is matching, then take the item desc. and look it up in
> another sheet, to get the value in the column next to the
> item desc column.
> How can I use the date + 6 formula?
>
> Thanks.



 
Reply With Quote
 
Trevor L.
Guest
Posts: n/a
 
      29th Mar 2005
Hi,
There was a similar query before, in which the poster wanted to subtract 15
from the date. I didn't see a definitive answer.

Something to try/experiment with:

This javascript function returns the date
function getTheDate()
{
var now = new Date()
return now.toLocaleDateString()
}
In my case the local format is Tuesday, 29 March 2005.

However, there are functions which can extract the date and month from the
variable now.

The code to get month is something like this
monthList = new
Array('January','February','March','April','May','June','July','August','September','October','November','December')
month = monthList[now.getMonth()]

The code to get day is something like this
dayList = new
Array('Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday')
day =dayList[now.getDate()]

This is the code for date
date= now.getDate()

This is the code for year
year = now.getFullYear()

So to add 6, try this
Add 6 to the date and then check whether it is more than the end date of the
month. If so subtract 31 (in this case) from the date and change the month
to April.

There may well be an easier way. I would be interested if there were, as it
could be made into a general function (unless one exists - others may know)
--
Cheers,
Trevor L.
Another FPB (FrontPage Beginner)
Website: http://tandcl.homemail.com.au


I choose Polesoft Lockspam to fight spam, and you?
http://www.polesoft.com/refer.html


 
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
Function to lookup date on tab in excel and populate date on calen MGC Microsoft Excel Worksheet Functions 0 4th Feb 2010 04:48 AM
LOOKUP FUNCTION? (LOOKUP VALUE BEING A TIME RENERATED FROM A FORMU JCC Microsoft Excel Misc 5 26th Jun 2009 09:15 PM
Pivot table doing a lookup without using the lookup function? =?Utf-8?B?TkdBU0dFTEk=?= Microsoft Excel Misc 0 2nd Aug 2005 05:08 AM
Lookup Function - Find date last data was inputed martialtiger Microsoft Excel Misc 11 28th May 2004 02:29 AM
Excel worksheet function - Sort of LookUp Function - Help Needed iwtci Microsoft Excel Worksheet Functions 1 25th May 2004 11:14 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:21 PM.