Help with Nested IF

cdnqte

Board Regular
Joined
Jul 14, 2004
Messages
132
Hi All,

I am struggling with an issue that I am sure is simple to resolve and I'm just missing the obvious so I'm hoping someone can help!

I have the following information in my spreadsheet

CRITERIA$b$1 = MONTH END DATE
RETURN DATE = DATE UNIT WAS RETURNED
BILLED THRU = BILLED THRU DATE
A/D = ACCRUE OR DEFER

What I NEED it to do is the following:

If RETURN DATE >= CRITERIA$B$1 AND A/D=D THEN SUM CRITERIA$B$1-BILLED TRHU *-1
IF RETURN DATE <CRITERIA$B1 THEN RETURN 0

I tried the following but it sets everything to 0
=IF([@[Return Date]]<=Criteria!$B$1,0,IF([@[A/D]]="D",SUM(Criteria!$B$1-[@[Billed Thru]]),0)*-1)

I also tried this but it is calculating values for those returned before the value in the CRITERIA$B$1 field and ignoring those with blank dates
=IF([@[Return Date]]>=Criteria!$B$1,0,IF([@[A/D]]="D",SUM(Criteria!$B$1-[@[Billed Thru]]),0)*-1)


Also, I need to make sure that if the return date is blank that it acts the same way as the scenario where the return date is > criteria$B$1



I am horrible with nested ifs so ANY HELP would be greatly appreciated!!

Thanks!
 
Last edited:

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
Try this and use your cell reference

=if(and(ReturnDate>=Criteria$B$1,A/D="D"),(Criteria$B$1-BilledThru)*(-1),RerurnDate)
 
Upvote 0

Forum statistics

Threads
1,223,904
Messages
6,175,295
Members
452,633
Latest member
DougMo

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