=crazysniper;4012508@FlameRetired
........I would love to understand it in order for me to learn.......
Good!
The breakdown of this formula (and others) can get a bit wordy. There is a word limit on posts. I won't challenge it.
I'll go through a few of the initial steps and tell you about some tools you can use to teach yourself. Self education is the best education.
The heart of this formula is the two nested "IF"s......this one......
IF($A2=Comments!$A$2:$A$12,Comments!$B$2:$B$12)
If you will highlight / select just one of these in the formula bar and hit the F9 key you will see.....
Each of those numbers are the underlying values of the dates corresponding to all of the 1s (in this case) in column A of the Comments sheet. BTW dates are integers. Formatting is cosmetic. Inside of this array there is no formatting.
The other initial IF is inside of the first (innermost) MAX. Selecting that you would see.
These are compared against one another aspassed as the first argument of another IF that assigns index numbers in its second argument.
Sometimes the comparisons are TRUE sometimes FALSE.The TRUES get assigned the index numbers. The FALSE "play through".
What you need is the last date and therefore last / highest index number. These are passed outward (Excel evaluates nests from the inner most to the outer most) to the next MAX. MAX does two things. It evaluates the maximum (the 8) and coerces it out of that sea of FALSE and other numbers in the array.
That 8 is passed to INDEX which holds the target range in its first argument. The 8 corresponds with the desired item's row number in that range and returns that item.
You can follow these steps with most formulas applying two methods in Excel. One is "Evaluate formula". You will find it in the Formula menu. You can also assign it to the Quick Access Toolbar. The other is to sequentially apply the F9 key as we have here.
There is more detail to this formula that I didn't cover, but using these two devises will take you through all of those details.
Beyond that spend time on the Forum, visit other sites (there is a resource at the top of the list of new Forum posts called "Sticky: Excel Useful Links". Explore that. Read other posts; take formulas apart. Start with some topic / function you are interested in. Have fun.
Hope that helps.
Bookmarks