Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 62
Default how do i build the macro i need?

i work for an accident management company part of what we do for our fleet
customers is provide them with reports. in these reports we have a column in
an excel spreadsheet called downtime this uses the formulae =sum(H2-F2) where
column H is date vehicle was returned and column F is date vehicle came
onsite the answer is displayed as an integer value in the downtime column.

however if onsite date is entered but no return date, or date returned
entered without an onsite date or neither field has a value we get the
folowing show up in downtime "#VALUE" this of course doesnt look good from
our customers point of view. is there a way to program excel that if onsite
date is entered an no returned is uses the currentdate to work out how long
vehicle has been there so far and if returned is entered but not onsite or if
neither fields have values then the downtime will show an empty cell? also we
need a way to filter out weekends from the calculations so only the amount of
working days are displayed.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11,272
Default how do i build the macro i need?

Se response in excel.misc

--

HTH

RP
(remove nothere from the email address if mailing direct)


"Stuart" wrote in message
...
i work for an accident management company part of what we do for our fleet
customers is provide them with reports. in these reports we have a column

in
an excel spreadsheet called downtime this uses the formulae =sum(H2-F2)

where
column H is date vehicle was returned and column F is date vehicle came
onsite the answer is displayed as an integer value in the downtime column.

however if onsite date is entered but no return date, or date returned
entered without an onsite date or neither field has a value we get the
folowing show up in downtime "#VALUE" this of course doesnt look good from
our customers point of view. is there a way to program excel that if

onsite
date is entered an no returned is uses the currentdate to work out how

long
vehicle has been there so far and if returned is entered but not onsite or

if
neither fields have values then the downtime will show an empty cell? also

we
need a way to filter out weekends from the calculations so only the amount

of
working days are displayed.



Reply
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
How do I build this Macro? Omakbob Excel Discussion (Misc queries) 4 September 28th 05 09:26 PM
Can macro build new macro in another workbook??? Pleeease HELP MartyZ[_2_] Excel Programming 0 November 12th 04 02:56 PM
Can macro build new macro in another workbook??? Pleeease HELP MartyZ Excel Programming 1 November 11th 04 04:15 PM
How to build build a macro that automatically imports PedroPeso Excel Programming 1 December 26th 03 08:14 PM
Build a Macro Dale Avison Excel Programming 2 September 28th 03 05:51 PM


All times are GMT +1. The time now is 02:26 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"