Nest if Functions – It’s All About Doing It Step By Step

Excel function tutorials

I often get these types of questions where someone is trying to do a nested if function but having trouble doing so. Here is one such example:

“I am trying to write a and/if statement to read if b2=”manager” and d2=”b” and h2

How I send Outlook Email Through Excel

Excel 2013, Excel macros

One of the main things that I like to do when automating excel files is getting the whole process done. What do I mean? Not only creating a file and saving it to a drive, but also sending it out to the group that I need it to get to on a daily basis.

For example, I have this file that creates a list of tennis players:

Suppose that I run this file every day, save it to a drive and send it to 4-5 people? I can do all of that (more or less) from my excel file. How? By helping Microsoft Excel communicate with Outlook.

It’s similar to what you’d do when building any other macro. I personally use 2 different steps:

#1-Add the “standard” email funfction to my file. For this to be done, I always copy the same text to my files:

Then, I can simply ad the relevant code to my existing macros. Here is a simplified version that would send out a file:

It’s fairly straightforward and it works:) Once I click the button, an email shows up and I can simply press “send”

You can download the spreadsheet here!

Converting PDF’s to Excel

Excel 2013

Ahhh! I’ve personally been looking for this for a very long time. I have been working on a tennis website for years and always had a very big issue trying to convert pdf files where the tournament draws would be into excel files where my macro’s could help produce content. Basically, I would get a file like this:

Into an excel file. I personally tried at least 15 different solutions to do this, some that required payment and never had any luck in getting a good solution. Finally, I was directed to a program that worked out well. It’s not free but not very expensive either. You can try it here:

I get the following result:

Not bad right? This was done using the free trial version.


Doing An IRR function in Excel manually Using The Goal Seek Function

Excel function tutorials

The other day I got an interesting question from a reader. He was trying to do an IRR (internal rate of return) but had one specification. An IRR function assumes that all cash flows are at the same period of the year. He wanted something more precise that would account for the fact that some cash flows might be at the start, beginning or middle of the year. I suggested that he try to do an IRR manually and decided to give it a try myself.

First, take a look at a traditional IRR function result:

Then, I decided to get the same result but with a function instead. How?

An IRR function is the rate of return for break-even. So I created a formula manually that would calculate the “NAV”. When that NAV would become $0, I would have the correct IRR. Look at this screen:

Then, I used the goal seek function to set the nav to $0.

As you can see, I get the same result:

Then, I did the same exercise but changed the years to reflect the period. So Q1 of the 3rd year would become 2.25, etc. See the result here:

AverageIf Function Using Excel

Excel 2013, Excel function tutorials

I’ve heard from several of you that use Excel to manage large sets of data nad I know hata few of you must then get different metrics from that data depending on specific conditions. I’ve already covered Sumif quite a bit so today I thought I’d get into “averageif”. Let’s start with a large set of data:

This is an example of the top rankings in the WTA tennis tour. One typical thing that you could end up wanting to do is find information such as:

-What is the average # of tournaments that the top Russians have played compared with the top Americans. Here is How I would do it:

I’m certain that many of you can now imagine how this could be used.