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?
 

Fluff

MrExcel MVP, Moderator
Joined
Jun 12, 2014
Messages
32,151
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
32,151
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
4,650
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
34,327
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
51,460
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).
 

Forum statistics

Threads
1,081,834
Messages
5,361,594
Members
400,639
Latest member
fleyd

Some videos you may like

This Week's Hot Topics

  • populate from drop list with multiple tables
    Hi All, i have a drop list that displays data, what i want is when i select one of those from the list to populate text from different tables on...
  • Find list of words from sheet2 in sheet1 before a comma and extract text vba
    Hi Friends, Trying to find the solution on my task. But did not find suitable one to the need. Here is my query and sample file with details...
  • Dynamic Formula entry - VBA code sought
    Hello, really hope one of you experts can help with this - i've spent hours on this and getting no-where. .I have a set of data (more rows than...
  • Listbox Header
    Have a named range called "AccidentsHeader" Within my code I have: [CODE]Private Sub CommandButton1_Click() ListBox1.RowSource =...
  • Complex Heat Map using conditional formatting
    Good day excel world. I have a concern. Below link have a list of countries that carries each country unique data. [URL...
  • Conditional formatting
    Hi good morning, hope you can help me please, I have cells P4:P54 and if this cell is equal to 1 then i want row O to say "Fully Utilised" and to...
Top