Combine Nested Funtions

gleichmang

New Member
Joined
Dec 28, 2011
Messages
13
Need help combing these function into a single cell

This formula recalculates the date based off a value in column P
=IF(OR(P16="A - Svcbl(w/o Qual)",P16=""),(AM16+450),(AM16+90))

This formula determines the amount of days between today and the new date
=ABS(AN16-TODAY())

This formula enters a value based on the above calculation
=IF(AO16<90,"CURRENT","OVERDUE")

How can I combine these into a single cell in column AN?
 

Some videos you may like

Excel Facts

Who is Mr Spreadsheet?
Author John Walkenbach was Mr Spreadsheet until his retirement in June 2019.

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
41,087
Office Version
365
Platform
Windows
How about
=IF(ABS(IF(OR(P16="A - Svcbl(w/o Qual)",P16=""),(AM16+450),(AM16+90))-TODAY())<90,"Current","Overdue")
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
41,087
Office Version
365
Platform
Windows
You're welcome & thanks for the feedback
 

gleichmang

New Member
Joined
Dec 28, 2011
Messages
13
Something is still a tad off

The 'Overdue' and 'Current' don't seem to be calculating correctly... The second entry is not calculating right, where am I going wrong...

=IF(ABS(IF(OR(A3="A - Svcbl(w/o Qual)",A3=""),(B3+450),(C3+90))-TODAY())>90,"Current","Overdue")

Cond Cd
Last Insp Dt
Next Insp Dt
Inspection Status
TEST
10/24/2019 0:00
10/23/2018 0:00
Overdue
A - Svcbl(w/o Qual)
10/24/2013 0:00
10/23/2020 0:00
Current
<tbody> </tbody>
 

gleichmang

New Member
Joined
Dec 28, 2011
Messages
13
Incorrect Calculation

Where am I going wrong....

The 'Overdue' and 'Current' don't seem to be calculating correctly... The second entry in the below table is not calculating right,

=IF(ABS(IF(OR(A3="A - Svcbl(w/o Qual)",A3=""),(B3+450),(C3+90))-TODAY())>90,"Current","Overdue")

Cond CdLast Insp DtNext Insp DtInspection Status
TEST10/24/2019 0:0010/23/2018 0:00Overdue
A - Svcbl(w/o Qual)10/24/2013 0:0010/23/2020 0:00Current

<tbody>
</tbody>


Bottom line... based off the above, my value in 'Inspection Status' column for the second row should read 'overdue' not current. Cant figure out where I am off... Please help
 

Yongle

Well-known Member
Joined
Mar 11, 2015
Messages
6,062
Office Version
365
Platform
Windows
Re: Incorrect Calculation

Not offering any help, just observing that I am puzzled that inspection due in Oct 2020 should be classified as overdue in Oct 2019
 

RoryA

MrExcel MVP, Moderator
Joined
May 2, 2008
Messages
35,025
Office Version
365, 2019, 2016, 2010
Platform
Windows, MacOS
Re: Incorrect Calculation

If you add 450 days to B3 you get 17 Jan 2015. The difference between that and today is more than 90 days, so you get Current.
 

Joe4

MrExcel MVP, Junior Admin
Joined
Aug 1, 2002
Messages
53,465
Office Version
365
Platform
Windows
Re: Incorrect Calculation

I have merged your two threads together.

In the future, please do not post the same question multiple times in different threads. All clarifications, follow-ups, and bumps should be posted back to the original thread. Per forum rules, posts of a duplicate nature will typically be locked or deleted (rule 12 here: Forum Rules).
 

Watch MrExcel Video

Forum statistics

Threads
1,099,794
Messages
5,470,821
Members
406,727
Latest member
Kimze

This Week's Hot Topics

Top