LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Biff
 
Posts: n/a
Default

Hi!

Create a 2 column table with the first column being the=20
lower boundry dates and the second column being the=20
corresponding days value:

1/1/2004 5
3/16/2004 4
5/16/2004 3

Assume you enter your date in A1 in any true Excel date=20
format. The table is in the range G1:H3.

Use this formula to return the desired days value:

=3DVLOOKUP(A1,G1:H3,2,1)

If you enter a date that is earlier than the earliest date=20
in the table you'll get a return of #N/A. Dates later than=20
the latest date in the table will default to the latest=20
date.

eg:

12/31/2003 =3D #N/A
12/31/2007 =3D 3

Biff

-----Original Message-----
Looking for a formula that will allow me to enter a date=20

in one cell between=20
the following ranges using month, day, and year and have=20

the amount of days=20
accrued automatically enter into another cell.
Example:
January 1, 2004 - March 15, 2004, 5 days; March 16, 2004 -

April 15, 2004, 4=20
days; April 16, 2004 - May 15, 2004, 4 days; May 16,=20

2004 - June 15, 2004, 3=20
days, etc=E2?=A6

.

 
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
Problem with date base units for x axis Peter Carr Charts and Charting in Excel 1 December 15th 04 09:11 AM
problem with formatting cell to date format Del Excel Worksheet Functions 7 December 8th 04 05:14 PM
Problem with Date format from VBA code twig Excel Discussion (Misc queries) 3 December 7th 04 06:01 PM
Using formulas to determine date in one cell based on date in anot Gary Excel Worksheet Functions 2 November 22nd 04 08:11 AM
Count data entries and date problem Gef Excel Worksheet Functions 5 November 4th 04 02:30 PM


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