Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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
Posted to microsoft.public.excel.worksheet.functions
|
|||
|
|||
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 |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
copy of excel file not showing formulal/function in the function b | Excel Discussion (Misc queries) | |||
LINKEDRANGE function - a complement to the PULL function (for getting values from a closed workbook) | Excel Worksheet Functions | |||
Offset function with nested match function not finding host ss. | Excel Worksheet Functions | |||
Emulate Index/Match combo function w/ VBA custom function | Excel Worksheet Functions | |||
Nested IF Function, Date Comparing, and NetworkDays Function | Excel Worksheet Functions |