#1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1
Default i need a fuction

i would be grateful if any one can help with this...i am making a function to
subtract between two dates(date - date1) and then subtract from 6 if it is
less than 0 then true 0 if other wise then the function (date-date1)-6
=((if(L:L-C:C)-6<0,0,(L:L-C:C)-6) this is the funtion but it gives wrong?
--
eng.amaal titi
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,339
Default i need a fuction

=MAX(0,(L1-C1-6)

L1 is latest data
C1 is oldest date

and copy down

Your formula was attempting to subtract a whole column (C:C:) from another
column (L:L)

"amaal titi" wrote:

i would be grateful if any one can help with this...i am making a function to
subtract between two dates(date - date1) and then subtract from 6 if it is
less than 0 then true 0 if other wise then the function (date-date1)-6
=((if(L:L-C:C)-6<0,0,(L:L-C:C)-6) this is the funtion but it gives wrong?
--
eng.amaal titi

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
Min Fuction rustygun3 Excel Worksheet Functions 1 June 7th 07 11:35 PM
Which fuction! Be18 Excel Worksheet Functions 2 April 27th 07 01:43 AM
if fuction Lakebum Excel Worksheet Functions 4 December 7th 05 12:42 PM
need a fuction that can do this (or can it be done) Mrbanner Excel Worksheet Functions 3 August 1st 05 04:07 AM
For Each Fuction??? Dave_2k5 Excel Discussion (Misc queries) 11 July 26th 05 12:05 PM


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