Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Formulas and making info invisible

I have created a data base where I am substracting dates
for payment purposes - if there are any services on any
day a full 24 hour day has to be paid for - but when I
subtract the dates and put in for example 03/03/04 -
03/03/04 - instead of getting one day I get 0 -- I tried
adding 1 to the formulat but came up with a more serious
problem - those people I don't have to pay and should have
a 0 now have a one - can you help me - HELP PLEASE - is
there a way to program excell to understand? Katherine
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Formulas and making info invisible

Hi
how do you identify the people you don't have to pay?

--
Regards
Frank Kabel
Frankfurt, Germany

"Katherine" schrieb im Newsbeitrag
...
I have created a data base where I am substracting dates
for payment purposes - if there are any services on any
day a full 24 hour day has to be paid for - but when I
subtract the dates and put in for example 03/03/04 -
03/03/04 - instead of getting one day I get 0 -- I tried
adding 1 to the formulat but came up with a more serious
problem - those people I don't have to pay and should have
a 0 now have a one - can you help me - HELP PLEASE - is
there a way to program excell to understand? Katherine


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 10
Default Formulas and making info invisible -

Frank -
\Frank
I have it set up as follows

Column A Columm B Column C

03/03/04 03/03/04 0

blank blank 0

if I add one to my formula - I get

blank blank 1

and I might end up paying someone I shouldn't


right now this is how it reads
if I have to date it also reads 0 so I know I pay nothing

but Column C isn't correct because I have to pay for one
day of service - the day of 03/03/04

any suggestions

thank you in advance

Katherine


-----Original Message-----
Hi
how do you identify the people you don't have to pay?

--
Regards
Frank Kabel
Frankfurt, Germany

"Katherine" schrieb im

Newsbeitrag
...
I have created a data base where I am substracting dates
for payment purposes - if there are any services on any
day a full 24 hour day has to be paid for - but when I
subtract the dates and put in for example 03/03/04 -
03/03/04 - instead of getting one day I get 0 -- I tried
adding 1 to the formulat but came up with a more serious
problem - those people I don't have to pay and should

have
a 0 now have a one - can you help me - HELP PLEASE - is
there a way to program excell to understand? Katherine


.

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Formulas and making info invisible -

=if(and(A2="",B2=""),0,B2-A2+1)

--
Regards,
Tom Ogilvy

"Katherine" wrote in message
...
Frank -
\Frank
I have it set up as follows

Column A Columm B Column C

03/03/04 03/03/04 0

blank blank 0

if I add one to my formula - I get

blank blank 1

and I might end up paying someone I shouldn't


right now this is how it reads
if I have to date it also reads 0 so I know I pay nothing

but Column C isn't correct because I have to pay for one
day of service - the day of 03/03/04

any suggestions

thank you in advance

Katherine


-----Original Message-----
Hi
how do you identify the people you don't have to pay?

--
Regards
Frank Kabel
Frankfurt, Germany

"Katherine" schrieb im

Newsbeitrag
...
I have created a data base where I am substracting dates
for payment purposes - if there are any services on any
day a full 24 hour day has to be paid for - but when I
subtract the dates and put in for example 03/03/04 -
03/03/04 - instead of getting one day I get 0 -- I tried
adding 1 to the formulat but came up with a more serious
problem - those people I don't have to pay and should

have
a 0 now have a one - can you help me - HELP PLEASE - is
there a way to program excell to understand? Katherine


.



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3,885
Default Formulas and making info invisible -

Hi
try the following in C1:
=IF(OR(A1="",B1=""),0,B1-A1+1)

--
Regards
Frank Kabel
Frankfurt, Germany

"Katherine" schrieb im Newsbeitrag
...
Frank -
\Frank
I have it set up as follows

Column A Columm B Column C

03/03/04 03/03/04 0

blank blank 0

if I add one to my formula - I get

blank blank 1

and I might end up paying someone I shouldn't


right now this is how it reads
if I have to date it also reads 0 so I know I pay nothing

but Column C isn't correct because I have to pay for one
day of service - the day of 03/03/04

any suggestions

thank you in advance

Katherine


-----Original Message-----
Hi
how do you identify the people you don't have to pay?

--
Regards
Frank Kabel
Frankfurt, Germany

"Katherine" schrieb im

Newsbeitrag
...
I have created a data base where I am substracting dates
for payment purposes - if there are any services on any
day a full 24 hour day has to be paid for - but when I
subtract the dates and put in for example 03/03/04 -
03/03/04 - instead of getting one day I get 0 -- I tried
adding 1 to the formulat but came up with a more serious
problem - those people I don't have to pay and should

have
a 0 now have a one - can you help me - HELP PLEASE - is
there a way to program excell to understand? Katherine


.




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
Making a 0 invisible with a formiula marvin Excel Discussion (Misc queries) 3 September 18th 09 08:00 PM
Making a drop down list read info from another tab / worksheet Paul New Users to Excel 4 September 5th 08 07:14 AM
Info from one cell making other cells active Bambi Williams Excel Worksheet Functions 1 April 9th 08 05:49 PM
Making Border of Frozen Panes Invisible Carl Excel Discussion (Misc queries) 4 December 20th 06 02:22 PM
Making info appear in another cell tasadin Excel Discussion (Misc queries) 5 August 3rd 06 08:24 AM


All times are GMT +1. The time now is 10:30 PM.

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

About Us

"It's about Microsoft Excel"