Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Excel / Worksheet Functions / August 2005

Tip: Looking for answers? Try searching our database.

Can You Translate This Function Into Excel Format?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
iwgunter - 26 Aug 2005 17:24 GMT
I can write functions in PHP & MySQL, but can't get my headd aroun
another language for Excel.

I have a spreadsheet with 2 columns for dates (B & C), a duratio
column (D) and a Yes or No column (E). We fill column B with the date
car arrives at our workshop, C with the date it leaves, D with th
duration of time we had it and E if it has been added to the insuranc
database [if it is with us more than 14 days].

I need to work out the duration column with the following style o
function...

Code
-------------------
   if $C2="" then ($D2="todays date"-$B2) else ($D2=$C2-$B2
-------------------

I also need a function to perfom the following conditional format...

Code
-------------------
   if $D2>14
 if $E2="Yes"      - Highlight row in BLUE
 else              - Highlight row in RE
-------------------

Any help with this would be really grateful
Ia
Dnereb - 26 Aug 2005 17:41 GMT
Can you rephrase your code in words?
I'm not into PHP but I can V
hideki - 26 Aug 2005 17:53 GMT
for if statement, put like this in your cells D2
=IF(C2="",TODAY()-B2,C2-B2)

and for your conditional format

criteria1:
formula=AND(D2>14,E2="Yes")
set your pattern color to blue

criteria2:
value greater than 14
set your color to re
iwgunter - 27 Aug 2005 08:03 GMT
Cheers for the help guys. I have got it working now. I changed it aroun
a bit and now use...

Code
-------------------
   =($C2<>"")       - Fill Green
 =($E2="Yes")     - Fill Blue
 =($D2>14)        - Fill Re
-------------------

+-------------------------------------------------------------------
|Filename: ExcelMIDLog.GIF                                          
|Download: http://www.excelforum.com/attachment.php?postid=3753     
+-------------------------------------------------------------------
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.