ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   Read all -- Adding columns for paying (https://www.excelbanter.com/excel-programming/307213-read-all-adding-columns-paying.html)

Katherine[_6_]

Read all -- Adding columns for paying
 
The add one will not work because it will add one to those
persons who have no payment coming - I have to have a way
to identify that the one is added only to those that have
earned payment --

Tom Ogilvy

Read all -- Adding columns for paying
 


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

or use OR as Frank suggested:

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



--
Regards,
Tom Ogilvy


"Katherine" wrote in message
...
The add one will not work because it will add one to those
persons who have no payment coming - I have to have a way
to identify that the one is added only to those that have
earned payment --




Frank Kabel

Read all -- Adding columns for paying
 
Hi Tom
you don't give up, do you :-))

@Katherine: If these functions do not work for you please provide an
example of your data, stae what our functions have returned and what
your expected result would be. I think Tom + I agree that either of
these formulas should work

--
Regards
Frank Kabel
Frankfurt, Germany

"Tom Ogilvy" schrieb im Newsbeitrag
...


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

or use OR as Frank suggested:

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



--
Regards,
Tom Ogilvy


"Katherine" wrote in message
...
The add one will not work because it will add one to those
persons who have no payment coming - I have to have a way
to identify that the one is added only to those that have
earned payment --






All times are GMT +1. The time now is 05:45 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com