Go Back   PCMech Forums > Help & Discussion > Software Discussion & Support

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 04-30-2007, 02:33 PM   #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
Dswissmiss is offline   Reply With Quote
Old 04-30-2007, 03:11 PM   #2
Premium Member
 
Statica's Avatar
 
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
Statica is offline   Reply With Quote
Old 04-30-2007, 03:32 PM   #3
Member (10 bit)
 
Join Date: Jul 2002
Location: Trivandrum, India
Posts: 800
Send a message via Yahoo to pillainp
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
pillainp is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes 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 On
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT -5. The time now is 12:05 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2