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

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the \$ sign).

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
5
Views
926
Replies
2
Views
478
Replies
3
Views
449
Replies
4
Views
237
Replies
6
Views
98

1,181,745
Messages
5,931,778
Members
436,803
Latest member
Strycure12

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