#1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 63
Default Need a Function

I currently have the following function calculating:

=IF(OR(AA7="",AD7<""),"",TODAY()-(AA7+65))

AA7 and AD7 are date columns. The column they calculate in is AC7. So if
AA7 is zero then AC7 is zero. If AA7 has a date then AC7 should equal
AA7+65-the current date. But if AD7 has a date then AC7 should equal AD7-AA7
instead of calculating from the first portion.

With the current function its only placing a zero when AD7 has a date. How
can I modify the current function so that I also calculates correctly??
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Need a Function

Hi,

Try this =if(AA7="","",TODAY()-(AA7+65),if(AD7="","",(AD7-AA7)))

--
Regards,

Ashsih Mathur
Microsoft Excel MVP
www.ashishmathur.com

"akemeny" wrote in message
...
I currently have the following function calculating:

=IF(OR(AA7="",AD7<""),"",TODAY()-(AA7+65))

AA7 and AD7 are date columns. The column they calculate in is AC7. So if
AA7 is zero then AC7 is zero. If AA7 has a date then AC7 should equal
AA7+65-the current date. But if AD7 has a date then AC7 should equal
AD7-AA7
instead of calculating from the first portion.

With the current function its only placing a zero when AD7 has a date.
How
can I modify the current function so that I also calculates correctly??

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 63
Default Need a Function

It didn't work. Excel stated that the formula had too many arguements for
the function.

"Ashish Mathur" wrote:

Hi,

Try this =if(AA7="","",TODAY()-(AA7+65),if(AD7="","",(AD7-AA7)))

--
Regards,

Ashsih Mathur
Microsoft Excel MVP
www.ashishmathur.com

"akemeny" wrote in message
...
I currently have the following function calculating:

=IF(OR(AA7="",AD7<""),"",TODAY()-(AA7+65))

AA7 and AD7 are date columns. The column they calculate in is AC7. So if
AA7 is zero then AC7 is zero. If AA7 has a date then AC7 should equal
AA7+65-the current date. But if AD7 has a date then AC7 should equal
AD7-AA7
instead of calculating from the first portion.

With the current function its only placing a zero when AD7 has a date.
How
can I modify the current function so that I also calculates correctly??

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Need a Function

Hi,

Sorry about that. Hope this helps.

if(AA7<"",TODAY()-(AA7+65),if(AD7<"",AD7-AA7,""))

--
Regards,

Ashsih Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Ashish Mathur" wrote in message
...
Hi,

Try this =if(AA7="","",TODAY()-(AA7+65),if(AD7="","",(AD7-AA7)))

--
Regards,

Ashsih Mathur
Microsoft Excel MVP
www.ashishmathur.com

"akemeny" wrote in message
...
I currently have the following function calculating:

=IF(OR(AA7="",AD7<""),"",TODAY()-(AA7+65))

AA7 and AD7 are date columns. The column they calculate in is AC7. So
if
AA7 is zero then AC7 is zero. If AA7 has a date then AC7 should equal
AA7+65-the current date. But if AD7 has a date then AC7 should equal
AD7-AA7
instead of calculating from the first portion.

With the current function its only placing a zero when AD7 has a date.
How
can I modify the current function so that I also calculates correctly??

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 63
Default Need a Function

That one didn't return an error, but it only calculates the first portion
regarding Column AA. I think it needs an or option because the way I can
explain it is:

if AA7 equals zero then AC7 equals zero, but if AA7 equals a date then AC7
equals Today minus AA7 plus 65. However, if AD7 equals a date then the
previous formula no longer calculates, instead AC7 would now equal AD7 minus
AA7.

"Ashish Mathur" wrote:

Hi,

Sorry about that. Hope this helps.

if(AA7<"",TODAY()-(AA7+65),if(AD7<"",AD7-AA7,""))

--
Regards,

Ashsih Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Ashish Mathur" wrote in message
...
Hi,

Try this =if(AA7="","",TODAY()-(AA7+65),if(AD7="","",(AD7-AA7)))

--
Regards,

Ashsih Mathur
Microsoft Excel MVP
www.ashishmathur.com

"akemeny" wrote in message
...
I currently have the following function calculating:

=IF(OR(AA7="",AD7<""),"",TODAY()-(AA7+65))

AA7 and AD7 are date columns. The column they calculate in is AC7. So
if
AA7 is zero then AC7 is zero. If AA7 has a date then AC7 should equal
AA7+65-the current date. But if AD7 has a date then AC7 should equal
AD7-AA7
instead of calculating from the first portion.

With the current function its only placing a zero when AD7 has a date.
How
can I modify the current function so that I also calculates correctly??



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Need a Function


if(and(AA7<"",AD7=""),TODAY()-(AA7+65),if(and(AD7<"",AD7<""),AD7-AA7,0))

Hope this helps.

--
Regards,

Ashsih Mathur
Microsoft Excel MVP
www.ashishmathur.com

"akemeny" wrote in message
...
That one didn't return an error, but it only calculates the first portion
regarding Column AA. I think it needs an or option because the way I can
explain it is:

if AA7 equals zero then AC7 equals zero, but if AA7 equals a date then AC7
equals Today minus AA7 plus 65. However, if AD7 equals a date then the
previous formula no longer calculates, instead AC7 would now equal AD7
minus
AA7.

"Ashish Mathur" wrote:

Hi,

Sorry about that. Hope this helps.

if(AA7<"",TODAY()-(AA7+65),if(AD7<"",AD7-AA7,""))

--
Regards,

Ashsih Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Ashish Mathur" wrote in message
...
Hi,

Try this =if(AA7="","",TODAY()-(AA7+65),if(AD7="","",(AD7-AA7)))

--
Regards,

Ashsih Mathur
Microsoft Excel MVP
www.ashishmathur.com

"akemeny" wrote in message
...
I currently have the following function calculating:

=IF(OR(AA7="",AD7<""),"",TODAY()-(AA7+65))

AA7 and AD7 are date columns. The column they calculate in is AC7.
So
if
AA7 is zero then AC7 is zero. If AA7 has a date then AC7 should equal
AA7+65-the current date. But if AD7 has a date then AC7 should equal
AD7-AA7
instead of calculating from the first portion.

With the current function its only placing a zero when AD7 has a date.
How
can I modify the current function so that I also calculates
correctly??

  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 63
Default Need a Function

That one worked perfectly.

Thanks!

"Ashish Mathur" wrote:


if(and(AA7<"",AD7=""),TODAY()-(AA7+65),if(and(AD7<"",AD7<""),AD7-AA7,0))

Hope this helps.

--
Regards,

Ashsih Mathur
Microsoft Excel MVP
www.ashishmathur.com

"akemeny" wrote in message
...
That one didn't return an error, but it only calculates the first portion
regarding Column AA. I think it needs an or option because the way I can
explain it is:

if AA7 equals zero then AC7 equals zero, but if AA7 equals a date then AC7
equals Today minus AA7 plus 65. However, if AD7 equals a date then the
previous formula no longer calculates, instead AC7 would now equal AD7
minus
AA7.

"Ashish Mathur" wrote:

Hi,

Sorry about that. Hope this helps.

if(AA7<"",TODAY()-(AA7+65),if(AD7<"",AD7-AA7,""))

--
Regards,

Ashsih Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Ashish Mathur" wrote in message
...
Hi,

Try this =if(AA7="","",TODAY()-(AA7+65),if(AD7="","",(AD7-AA7)))

--
Regards,

Ashsih Mathur
Microsoft Excel MVP
www.ashishmathur.com

"akemeny" wrote in message
...
I currently have the following function calculating:

=IF(OR(AA7="",AD7<""),"",TODAY()-(AA7+65))

AA7 and AD7 are date columns. The column they calculate in is AC7.
So
if
AA7 is zero then AC7 is zero. If AA7 has a date then AC7 should equal
AA7+65-the current date. But if AD7 has a date then AC7 should equal
AD7-AA7
instead of calculating from the first portion.

With the current function its only placing a zero when AD7 has a date.
How
can I modify the current function so that I also calculates
correctly??

  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,766
Default Need a Function

Thank you for the feedback

--
Regards,

Ashsih Mathur
Microsoft Excel MVP
www.ashishmathur.com

"akemeny" wrote in message
...
That one worked perfectly.

Thanks!

"Ashish Mathur" wrote:


if(and(AA7<"",AD7=""),TODAY()-(AA7+65),if(and(AD7<"",AD7<""),AD7-AA7,0))

Hope this helps.

--
Regards,

Ashsih Mathur
Microsoft Excel MVP
www.ashishmathur.com

"akemeny" wrote in message
...
That one didn't return an error, but it only calculates the first
portion
regarding Column AA. I think it needs an or option because the way I
can
explain it is:

if AA7 equals zero then AC7 equals zero, but if AA7 equals a date then
AC7
equals Today minus AA7 plus 65. However, if AD7 equals a date then the
previous formula no longer calculates, instead AC7 would now equal AD7
minus
AA7.

"Ashish Mathur" wrote:

Hi,

Sorry about that. Hope this helps.

if(AA7<"",TODAY()-(AA7+65),if(AD7<"",AD7-AA7,""))

--
Regards,

Ashsih Mathur
Microsoft Excel MVP
www.ashishmathur.com

"Ashish Mathur" wrote in message
...
Hi,

Try this =if(AA7="","",TODAY()-(AA7+65),if(AD7="","",(AD7-AA7)))

--
Regards,

Ashsih Mathur
Microsoft Excel MVP
www.ashishmathur.com

"akemeny" wrote in message
...
I currently have the following function calculating:

=IF(OR(AA7="",AD7<""),"",TODAY()-(AA7+65))

AA7 and AD7 are date columns. The column they calculate in is AC7.
So
if
AA7 is zero then AC7 is zero. If AA7 has a date then AC7 should
equal
AA7+65-the current date. But if AD7 has a date then AC7 should
equal
AD7-AA7
instead of calculating from the first portion.

With the current function its only placing a zero when AD7 has a
date.
How
can I modify the current function so that I also calculates
correctly??

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
copy of excel file not showing formulal/function in the function b oaallam Excel Discussion (Misc queries) 4 September 6th 07 01:20 PM
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) [email protected] Excel Worksheet Functions 0 September 5th 06 03:44 PM
Offset function with nested match function not finding host ss. MKunert Excel Worksheet Functions 1 March 21st 06 10:46 PM
Emulate Index/Match combo function w/ VBA custom function Spencer Hutton Excel Worksheet Functions 2 May 2nd 05 05:26 PM
Nested IF Function, Date Comparing, and NetworkDays Function carl Excel Worksheet Functions 2 December 29th 04 09:57 PM


All times are GMT +1. The time now is 08:18 AM.

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"