Tag Archives: Tips

MINIF and MAXIF in Excel 2003 or 2007

Like COUNTIF and SUMIF, it is helpful to have a conditional MAX or MIN. Excel doesn’t have it for now (yeah, “for now”, ‘coz MS has steadily been adding such useful functions with every new release).

Well, the good news is that there is a work-around.

The approach is to have an array formula on the IF column returning a bool, and multiplying it with the column from which MAX is to be found.

Say, we need to find the MAX in column F based on a condition on Column A and K5 having the compare value. We can do this as below.

Since it is an array formula, do a Ctrl+Shift+Enter and it’ll become {=MAX((A2:A30=K5)*(F2:F30))}. Do NOT manually add the braces.

This is very similar to what we did in the above activity. Just replace MAX with MIN.


Again, this is an array formula and need to do Ctrl+Shift+Enter.

Note that empty cells in column F might break this formula.

EMI Calculation Explained – Excel

EMI Calculation is a rather complex math with the denominator being the integration of a series (or something of that sort). It is fairly complex to take a pen and paper and calculate. Well, that is if you do not have access to Excel or a similar spreadsheet. In a spreadsheet, it is a very straight-forward calculation to arrive at an EMI.

In this article am explaining how to calculate EMI and amortization schedule of your loan using MS Excel. Also, you can see by changing the EMI how your tenure changes. I’ve attached a sample sheet here with the calculation.

You can download it here: EMI Explained

This is the EMI formula in Excel
D4 has the per annum interest
D6 has the tenure in months
D3 has the loan amount.

So what if your loan is quarterly diminishing (or compounding, as they say) even though you are paying monthly. In that case the formula changes a bit.
D6 has the tenure in quarters (i.e. # of years multiplied by 4)
D3 and D4 remain unchanged.

Note the interest changed from D4/12 to D4/4 and tenure from Years * 12 to Years * 4. Also, there is a division by 3 at the end to make it monthly. Similarly you can extend it to any compounding interval.

With slight changes you can use this to calculate the return of a SIP, assuming an average return over the tenure you plan to invest.

The attached sheet has more than just the EMI formula. It’ll generate the amortization schedule for you, given a tenure so that you can play with the EMI amount to reach at a preferred tenure.

Update: Came to know later that Microsoft has similar template for amortization schedule and loan analysis. You can get it here.

Add a Sent Items Rule in Outlook 2007

This is something I haven’t been able to figure out for a while, and had resorted to manually running a rule once in a while on my sent items folder. With a lot of googling and going through various websites, finally figured out a way to separate my official and personal mails into two separate folders.

I’ll list them out here as a problem statement and the steps through which I could do the same. Applying some logic to the order in which the ruled are and the settings, this can be extended for all Sent Items rules.

Objective: Move unofficial mails to a separate folder and maintain official mails in the Sent Items folder.

Step 01: Disable Sent Items Auto Save
Go to Tools > Options > E-mail Options
Uncheck “Save copies of messages in Sent Items folder”

Step 02: Set a rule to move official mails to Sent Items
Start with a blank rule and select a sent items rule as below
Sent Items Rule

Set the following:
With mycompany.com in the recipient’s address
Move copy to folder Sent Items
Be sure to check “stop processing more rules
Stop Processing More Rules

Step 03: Set a rule to move ALL sent mails to Unofficial folder
Start with a blank sent items rule as above
Set the following:
Sent from account Microsoft Exchange Server
Move copy to folder Unofficial
Through Specified Account

Since you have stopped further rule processing after the rule set under Step 02, such mails (i.e. official ones in my example) will not hit Step 03 rule. For this to work, make sure Step 03 rule is below the Step 02 rule.

Now, all mails except the ones to mycompany.com will be delivered to Unofficial folder whereas the ones to mycompany.com will remain in Sent Items.