Row 3 keeps fighting Me

Mberry

New Member
Joined
Aug 25, 2017
Messages
3
=IF(AND(G2>TODAY(),H2="In Process"),"N/A",(DATEDIF(D2,TODAY(),"d")))I need it to return the value of 28Above in the formula I have in my report, however it's not giving me the correct value. I need it to return the value of 28.
Ideally I'm trying to accomplish a formula that will accomplish this..

=IF(D2>TODAY(),"Not Started",(IF(AND(G2>TODAY(),H2="In Process"),"N/A",(DATEDIF(D2,TODAY(),"d")))))
It'll return "Not Started" if the submission due date is later than TODAY(), and N/A if the remediation due date is later than TODAY() AND the status is "In Process". Otherwise it should return the difference in days between Column D and TODAY()

Can anyone help me identify my error?
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Not quite sure what your problem is, but your formula is working for me
Excel 2013 32 bit
DEFGHI
218/08/201720/08/2017In Process7
301/08/201725/08/2017In Process24
428/07/201726/08/2017In ProcessN/A
528/07/201720/08/2017In Process28
623/07/201726/08/2017??33
728/08/201726/08/2017In ProcessNot Started

<colgroup><col style="width: 25pxpx"><col><col><col><col><col><col></colgroup><thead>
</thead><tbody>
</tbody>
Data

Worksheet Formulas
CellFormula
I2=IF(D2>TODAY(),"Not Started",(IF(AND(G2>TODAY(),H2="In Process"),"N/A",(DATEDIF(D2,TODAY(),"d")))))

<thead>
</thead><tbody>
</tbody>

<tbody>
</tbody>
 
Upvote 0
If I plug that in, for the first row I end up as “Not Started” when it is and
should be listed as “N/A” (which would be a failure of the very first
condition). If I change it to D2<, it works fine… but then doesn’t
work down in Row 7+.
 
Upvote 0
Could you upload your file to somewhere like Onedrive & post a link to it?
As your formula worked for me it's very difficult to diagnose problems remotely.
 
Upvote 0

Forum statistics

Threads
1,215,521
Messages
6,125,303
Members
449,218
Latest member
Excel Master

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top