|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (9 bit)
Join Date: Mar 2002
Location: New York
Posts: 479
|
Excel Formula Question
Hi guys,
I'm not sure if this is the right place to post this type of question, so let me know if there is a better place to get an answer. I'm trying to create a formula in excel. Basically, I want to enter a "start date" into cell A1, "end date" into cell A2, and I was wondering what formula to use to give me a "days left" in cell A3. I would obviously want cell A3 to change everyday and give me the days left. Bonus: If possible, I'd like the text in the "days left" cell to change color when, for example, only 5 days are left. If that's not possible, then if I could at least sort by "days left". I appreciate any help. Again, let me know if there's a better website to get this kind of information from Thank you Dswissmiss
__________________
Intel E6750 @ 3.2GHz | Gigabyte GA-P35-DS3R | EVGA 8800GTS 320MB ACS3 | Corsair XMS2 DDR800 (4x1GB) | Corsair 520HX | Seagate Barracuda 7200.10 320GB | Lite-On Combo Drive | Vista 32-bit |
|
|
|
|
|
#2 |
|
Premium Member
Join Date: Jun 1999
Posts: 9,231
|
If A1 = TODAY() and B1 = 28/05/2007
A simple subtraction should work fine. The resultant cell must be formatted to show it as a number and not a date. Excel help is a good place to check for the answer.. it also explains a function called NETWORKDAYS. HTH |
|
|
|
|
|
#3 |
|
Member (10 bit)
|
One of the basic things to understand about Excel is that it indexes dates. That is to say, each day has a number attached to it. January 1, 1900, is therefore day 1, and every day thereafter, excel increments by one.
Therefore, the index number for 01 May 2007 is 39203 Statica's method is the easiest, and the above is the principle on which it works. To have a cell or its text change color or formatting based on a value in that cell, use Conditional Formatting (Format>Conditional Formatting) and define your criteria there.
__________________
[FONT=Arial][SIZE=1][COLOR=Navy][CENTER]Intel Core2Quad Q9550; EP45-UD3R (rev 1.1); 4x2GB DDR2 800MHz; eVGA e-GeForce 9600GT KO 512MB DDR3; Seagate ST31000528AS 1T, Seagate ST3500320AS 500GB SATA II, Seagate ST3500418AS 500GB SATA II; LG GH22-NS50 DVD-RAM x 2; DELL SP2208WFP; Windows 7 Ultimate 64-Bit Palm LifeDrive Mobile Manager |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Microsoft Excel Coding Question | Vigilante_26 | Web Design / Development | 2 | 01-27-2003 08:02 PM |
| Excel question | fatboyjim | Software Discussion & Support | 2 | 01-05-2003 05:33 AM |
| Excel 97 question (weird issue) | merlin63 | Software Discussion & Support | 1 | 11-20-2002 12:49 AM |
| Question about Excel | andersson1974 | Web Design / Development | 5 | 11-15-2002 07:31 PM |
| Excel prob: Compile error in hidden module | calamospiza | Software Discussion & Support | 2 | 09-24-2002 04:12 AM |