Turn Formula into Layperson's Terms

macmomma4

New Member
I know this is an odd post, but I need to put the following formula into layperson's terms and can't seem to . I need to be able to explain it to a co-worker who isn't the most excel saavy. Can anyone help?

=IF(AND(ISBLANK(\$I7)=TRUE,ISBLANK(\$J7)=TRUE),"",IF(AND(ISBLANK(\$I7)=FALSE,ISBLANK(\$J7)=TRUE),MAX(0,MIN(\$AL\$6,DATEVALUE("3/31/2005"))-MAX(\$I7,DATEVALUE("1/1/2005"))+1),MAX(0,MIN(\$J7,DATEVALUE("3/31/2005"))-MAX(\$I7,DATEVALUE("1/1/2005"))+1)))

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.

texasalynn

Well-known Member
a programmer once told me do one thing at a time. Take each piece of the formula and break it down.

IF(AND(ISBLANK(\$I7)=TRUE,ISBLANK(\$J7)=TRUE
test is the cell I7 blank? Yes
test is the cell J7 blank? Yes
now both together must be true
do something
bother together not true or just one not true
do something different.

and so on . . .
HTH
texasalynn

Greg Truby

MrExcel MVP
1. If both I7 and J7 are blank return nothing (an empty string)
2. If I7 is not blank, but J7 is blank return the days between the earlier of (AL6 and 3/31/05) and the later of (I7 or 1/1/05), plus one day<ul>
3. If the difference above is less than zero, return zero.
[*]Otherwise (J7 is not blank) return the days between the earlier of (J7 or 3/13/05) and the later of (I7 or 1/1/05) plus one day.<ul>[*]If the difference above is less than zero, return zero.[/list][/list]Also, on the Tools menu there is an option for Formula Auditing. Under Formula Auditing there is an option for Evaluate Formula. You can use the Evaluate Formula tool to step through a complex formula like this and see how each bit gets evaluated. Very helpful.

macmomma4

New Member
Ahhhh...I just couldn't seem to break it down like that . Thank you texasalynn and Greg. That helped a bunch.

Replies
4
Views
114
Replies
20
Views
614
Replies
9
Views
342
Replies
0
Views
216
Replies
5
Views
135

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

1,151,970
Messages
5,767,387
Members
425,410
Latest member
SmittyT

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.

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

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