Putting it all together – Final Project Evaluation Model [Part 6 of 6]

Share

Facebook
Twitter
LinkedIn

This is a guest post written by Paramdeep from Pristine. Chandoo.org is partnering with Pristine to bring an excel financial modeling online training program for you.

Project Valuation Model ExcelThis is Part 6 of 6 on Financial Modeling using Excel

In this tutorial we are going to learn how to build assumptions & input sheets in our excel financial model. The 6 parts of this tutorial are,

  1. Introduction to Financial Modeling
  2. Building a layout for Project Evaluation Model – Best practices
  3. Building Inputs and Assumptions Sheet
  4. Building Projections for Project Evaluation
  5. Modeling the Cash Flow Statement and Projections
  6. Putting it all together – Final Project Evaluation Model
  7. Join our Financial Modeling Classes

I am sorry for the slight delay in the post. Things have been very hectic for the last few weeks as we were just completing our training on Financial Modeling in Excel – Real Estate (RE) sector for JP Morgan. The real estate valuation is very similar to the project evaluation that we are doing for the simple reason:

  • Project evaluation and real estate valuation are limited duration projects (If you intend to sell the RE project in near future) unlike general companies (which are an on-going concern)
  • For both these the timing of the cash is very important. A delay in the timing might appear to be ok for the developer, but the investor’s calculations (typically IRR) go for a toss

In India most of the RE developers are businessmen, who are concerned about the cash that the project generates. They are not really too bothered if they receive it in April or September (After all they are getting the cash). But the investors are really bothered by these delays – Some PE investors have a limited period investment horizon and some are too concerned about the IRR generated by the project. As we figured out in our class, Real estate projects are very sensitive to delays in cash generation! Excel is a great tool to show this effect in a matter of 30 secs (Use XIRR and data-tables). Maybe I will write about this functionality in one of my posts later!

For the time being lets come back to our project.

What is time value of money?

Let me start with a very simple to understand example.

  1. If you invest $100 in bank today, what would be its value 1 year down the line (assuming 10% interest rate)?
  2. The value should be 100*(1+10%) = $ 110.
  3. Now if you keep this invested for another year, what would be its value 2 years down the line?
  4. The value should be 110*(1+10%) = $ 121. I can also write it as 110*(1+10%)^2
  5. Similarly if you keep invested for 10 years, the value would be 110 * (1+10%)^10

This is the simple concept of compounding.

The inverse of this concept (What if you wanted $110 after 1 year, or 110*(1+10%)^10 after 10 years), how much should you invest today, is called discounting. Clearly $100 today is worth $110 a year after and $121 two years hence.

Time Value Of Money Illustration

If I have more than 1 cash flows, I can discount them depending on the time duration and if I sum them all, its called Net Present Value (NPV) of all cash flows. We would take the outflows as Negative Cash and inflows as Positive Cash.

Npv Formula

In excel, you can either discount all cash flows or calculate the NPV of the project by using the function =NPV(Discount Rate, Cash)

Npv Calculations Excel Project Valuation Modeling

What is the rate on which money should be discounted?

When equity investors invest, they take greater risk as compared to banks lending money. Obviously their expectation of return would be higher. In some cases, the equity investor might have a return figure in mind (Based on the risk I am taking, I would like to have Min. 15% return on my invested money).

Sometimes, this expected return can be calculated by using the capital asset pricing model (CAPM). What this states is very simple – Equity investors want a premium apart from the risk free rate (Lets call this expectation of equity investors as Re) . So there are two parts to the return expectation:

Re = Risk Free + Premium apart from Risk free

Now this premium depends on how much risk I am taking (Typically measured with respect to the volatility in returns with respect to the benchmark index). So I say:

Re = Risk Free + Beta * (Market Returns – Risk Free Returns)

The beta measures the movement of your returns with respect to market returns.

Expected Returns Calculation Capm Project Valuation Modeling Excel

Now apart from the equity investors, there would be some debt in the project. Typically debt holders expect a lower return (Lets call it Rd).

The overall expectation of return from the project is the weighted average of these returns, Re and Rd.

Wacc Weighted Average Cost Of Capital Excel

To create this switch in the model, I have used data-validation (so that the user can just input one of these options)

Project Model Switching Valuation Methods

To create such a drop down, use data validation – list option in excel

Data Validation Project Valuation Modeling

Internal Rate of Return

The same concept can be viewed from a return angle as well. If I can calculate a discount rate that makes the present value of the expected cash inflows just equal to the initial cost of the project, then that rate would be sort of a break even rate for me (Considering the time value of money). This rate is called the Internal rate of return (IRR).

Irr Calculations Excel

Many investors have a certain hurdle IRR in mind and if the project is generating an IRR less than the hurdle IRR, they would not invest in the project.

To calculate IRR, there is no analytical solution possible. You can use the excel function =IRR(Cash) to get the IRR of the cash flows.

Making a decision in our case

First let me summarize the decision criteria for you. I would invest in the project based on the following conditions:

NPV Rule:

  • If NPV > 0: The project may be accepted (Please note that positive NPV is not a sufficient condition)
  • If NPV = 0: The investor should be indifferent
  • If NPV < 0: The project must not be accepted (Please note that positive NPV is a necessary condition)

Please note that sometimes people might decide to take on the project even though the NPV is negative!

IRR Decision Rule

  • If IRR > the required rate of return, accept the project
  • If IRR < the required rate of return, reject the project

In our case, we are getting the NPV to be 21 and an IRR to be 12%. In this case it’s a borderline case and my feeling is that Mr. Samar would invest in the project (After all Mohit is his son!!) J.

Download Project Valuation Templates

I have created a template for you, where the subheadings are given and you have to link the model to get the cash numbers! You can download the same from here:

Project Valuation Template – Blank

You can go through the case and fill in the yellow boxes. I also recommend that you try to create this structure on your own (so that you get a hang of what information is to be recorded).

Also you can download this filled template and check, if the information you recorded, matches mine or not!  😉

Project Valuation Template – Solution

I am just doing that for the single sheet model and recommend that you do the same for multi-sheet model as a homework problem. If you face any issue, post your excel with the exact problem and we can discuss the way to move forward.
Financial Modeling using Excel - Online Classes by Chandoo.org & Pristine

Next Steps

We are not done with a basic model for evaluation of a project. There are other nuances that we could not tackle (Given the time and space constraint) – What if the cash does not come at year end, what could be the scenarios in which this project is not a viable project, what can be done to make the project more interesting, etc. I do hope that you found the posts interesting and look forward to your comments and suggestions!

Read previous part of this series – Modeling Cash-flow projections

How do you make project investment decisions?

We are very eager to learn from your experience and know your ideas. What methods of valuation do you use? How do you model them? Share using comments.

Join our Financial Modeling Classes:

Chandoo.org is partnering with Pristine to bring an online financial modeling training program for you. Click here to learn more about our financial modeling class & join.

Added by Chandoo:

Thank you Paramdeep & Pristine:

Many thanks to Paramdeep and Pristine for making this happen. I am really enjoying this series and learning a lot of valuable tricks about financial modeling.

If you like this series, say thanks to Paramdeep. I am sure he can take any amount of appreciation without choking.

This article is written by Pristine. The author can be contacted on paramdeep@edupristine.com.
Pristine is an awesome training institute for CFA, PRIMA, GARP etc. They have trained folks at HSBC, BoA etc. Chandoo.org is partnering with Pristine to bring an excel financial modeling online training program for you.
Facebook
Twitter
LinkedIn

Share this tip with your colleagues

Excel and Power BI tips - Chandoo.org Newsletter

Get FREE Excel + Power BI Tips

Simple, fun and useful emails, once per week.

Learn & be awesome.

Welcome to Chandoo.org

Thank you so much for visiting. My aim is to make you awesome in Excel & Power BI. I do this by sharing videos, tips, examples and downloads on this website. There are more than 1,000 pages with all things Excel, Power BI, Dashboards & VBA here. Go ahead and spend few minutes to be AWESOME.

Read my storyFREE Excel tips book

Overall I learned a lot and I thought you did a great job of explaining how to do things. This will definitely elevate my reporting in the future.
Rebekah S
Reporting Analyst
Excel formula list - 100+ examples and howto guide for you

From simple to complex, there is a formula for every occasion. Check out the list now.

Calendars, invoices, trackers and much more. All free, fun and fantastic.

Advanced Pivot Table tricks

Power Query, Data model, DAX, Filters, Slicers, Conditional formats and beautiful charts. It's all here.

Still on fence about Power BI? In this getting started guide, learn what is Power BI, how to get it and how to create your first report from scratch.

54 Responses to “6 Tips for Writing Better VLOOKUPs”

  1. andrew says:

    Hi, I am loving the VLOOKUP series this week. 🙂

    Could you please expand a little on why you don't recommend using 1 or 0 in place of true or false? I am in the habit of doing this.

  2. "You can even omit the last argument if it is 0"

    Excel's default for the last argument is TRUE. Because of this, it's dangerous to omit the last arguement. I would use either FALSE or 0. Never omit if you want an exact match.

  3. Daniel Ferry says:

    Nice series, Chandoo!
    .
    Your readers may be interested to know that the quickest formula method to do lookups in Excel is an array-entered INDEX.
    .
    This is one of the many topics covered in the Excel Hero Academy:
    Excel Hero Academy
    .
    Regards,
    Daniel Ferry
    Excel Hero Academy

  4. sam says:

    1. Never use VLOOKUP/HLOOKUP - Always use Match /Index
    2. Sort your data before performing a Loookup
    3. Use 1/-1 option Match as it is at least 10 times faster than the 0 option- But modified to perform an exact match rather than an approximate match as described below
    a) A Column containing a Match Fucntion to Find the Position with the 1/-1 option
    b) A Status column containing a Index to check the status (present/not present)
    c) Multiple array entered Index colums to pick

  5. Gregory says:

    In tip number 5 you state, "you can even omit the last argument if it is 0" which is not correct. If you omit the last argument, Range_Lookup, is TRUE, as Mike Alexander points out.

  6. Sundeep says:

    Excellent series - Need some help from the expert. how easy it is to add/expand a named range in a lookup formula?

  7. Chandoo says:

    @Mike & Gregory: I am sorry for the confusion. The formula =VLOOKUP(value, range, column #) assumes last argument as TRUE.

    Where as the formula =VLOOKUP(value, range, column #, ) assumes last argument is blank or empty which internally gets treated as 0.

    And that is what I mean by you can even omit last argument. I state that "Remember, you must place a comma (,) after the column number if you are planning to use this." otherwise, this will not work.

    @Andrew: I suggest not using 0 or 1 as they are more cryptic and lead to confusion when your spreadsheet gets to someone else's hands.

    @Daniel: Thanks for that.

    @Sam: Good tips. I would just add that using VLOOKUP / HLOOKUP is ok as long as they solve the problem you have and do not take too much time. The performance improvements you get with array entered index or other techniques are minimal when dealing with small and moderately sized data sets.

  8. Hui... says:

    @Sundeep
    Very easy

    Have a read of: http://chandoo.org/wp/2009/10/15/dynamic-chart-data-series/
    Particularly Point 3. Create a new named range and type OFFSET formula

  9. Sundeep says:

    @Hui - Thanks.

    If I have a large workbook with many Vlookups and if I change the range to named range...is there an easy way to change all the formulas? It is more of wishful thinking than a question 🙂

  10. Chandoo says:

    @Sundeep... You can use Apply names from formulas ribbon to apply names to a selected range. This technique works when the ranges are mapped to static references. Dynamic refs. thru OFFSET are bit more tricky.

    You can use the find / replace to automatically replace all $A$1:$C$1000 with dynamic range lstData. See this: http://chandoo.org/wp/2009/02/17/spreadsheet-formulas-edit/

  11. Hui... says:

    @Sundeep
    On the Formulas Tab, Click on the Drop Down on the Define Name button and select Apply Names
    Select one or all Named Ranges and apply
    Excel will go through your worksheet/s and change the Ranges for Named Ranges.

  12. bill says:

    i cannot believe i missed the new to 2007 formula "IFERROR". your mention of this will help reduce the number of characters in many formulars i use (with "ISERROR") by at least 40% along with commensurate reductions in spreadsheet size and calculation speed... not to mention future reduction in typing and debugging time in formulas. thank you. and thank excel.

  13. jayank2000 says:

    Newbie here.
    I am not able to understand the Tip#1. Use of "val", "tbl". I tried and it kept on giving error.
    Chandoo's Tip#1: =VLOOKUP(valSalesPerson,tblData,3,FALSE)
    Does it need column headings? And how do you l lookup the value I am looking.
    Thanks in advance.

  14. JimH says:

    I need some help with creating a formula. I have a list of names on tab 1. (About 20) On tab 2 I have a list of names and there total sales (About 3,500) I created a name range for both the first list of names on tab 1 (Producer) and a name range for the second list on tab 2 (Agent_List) The sales on tab 2 for each producer is in the 7th colume.

    I need the formula to identify name of Producer (Tab1) from the Agent_List and then choose the total sales for that producer.

    This is the formula I put together and I only get #REF!
    VLOOKUP(PRODUCER,AGENT_LIST,7,FALSE)

  15. Hui... says:

    @JimH
    I assume you are adding a column next to the Agent_List on Tab 2 and looking up values from the Agent_List and retrieving values from the Producer list
    .
    So the format for your equation will be:
    =VLOOKUP(A2,Producer,7,FALSE)
    or
    =VLOOKUP(Agent_List,Producer,7,FALSE)
    .
    Note that the named range Producer must be at least 7 columns wide, not just Column A or you will get the #REF! error also

  16. Lala says:

    Hi

    Can anyone please help or this totally impossible in excel? I am trying to do a vlookup with a range of cells that contains "comments" in them and unsuccessful.

    Thank you

  17. Hui... says:

    @Lala
    You cannot search within comments unless you use VBA

  18. Jennie says:

    My tips are:

    Pay attention to data types - no fly if mixing text and numbers. I run into this problem a lot with files downloaded from access that have a tendency to mix data types on me when it hits excel.

    Pay attention to $ - If pulling from the same workbook, $ won't auto fill on your range and you will potentially miss hits.

    • blah blah says:

      Yeah, the data type mixing has bitten several folks I work with in the rear.

      EG: I work at a company where marketing source codes are 10-alphanumeric. But, some codes are like "12345" while others are "123abc". When access or sql dumps to excel, the numerical ones convert to numbers while the text ones stay text.

      So, what I do is create a reference column next to them in which I do a =TRIM([column]). Trim not only removes front/back spaces, it converts a value to text data type. This is useful, b/c sometimes sql db admins will store data with a fixed string length (eg: a column may get stored as char(50), which means it will have 50 chars no matter if it has to add extra spaces at the end to pad it out.) When you dump this to excel, the extra spaces remain at the end. So, the Trim command not only converts numbers to text, it removes padded spaces at the end. Very useful when working with sql dumps.

  19. ankit says:

    I have two sheets, in first sheet i have given a criteria of month (like jan, feb), then on another sheet i have month wise sheet like
    jan feb mar
    a 2 5 8
    b 5 9 8
    c 9 12 89

    now i need in first sheet if i give criteria jan then answer is 2+5+9, or if i give feb then answer is 5+9+12 and like that, how to get that??

  20. Nicole says:

    I am pretty well versed in VLOOKUP but I have a challenge I can't figure out. When I complete the VLOOKUP in one cell, it works fine. When I drag the formula down (using $ where necessary) the value from the first LOOKUP populates in the new cell. If I double click on the cell and hit 'enter' then the correct value is pulled in from the vlookup. Any suggestions why the formula isn't executing correctly until I hit enter?

    • Hui... says:

      @Nicole
      It sounds like Calculation is set to Manual
      Goto the Data Tab Calculation and set it to Automatic

      • Nicole says:

        Absolutely FANTASTIC!! Thank you so much. Slight variation on my version of Excel. I had to go to Formulas Tab then to Calculation sub-tab, Calculation Options, change setting to Automatic. Thank you thank you thank you. Saved me hours of more frustration!

  21. [...] than maybe sorted, which it usually is anyway).Use COUNTIF or MATCH to speed up calculationAs many others have pointed out, VLOOKUP returns #N/A if the lookup value is not found. Instead of using a [...]

  22. Sh says:

    I have more than 2 columns in a table I'm so confused cuz the results i get is #N/A =(

  23. Jerome says:

    I have a 2-sheet database.  Sheet 2 has a list of Accronyms in column A and their description in column B.  On sheet 1, column A is where you input your Acronym. In column B, the formula takes Acronym from column A, looks it up on sheet 2, and displays it on column B. 

    After some research, I found how to make custom text if there is not a match on the Acromyn.  The question i have is, is that when there is no text in comumn A, sheet 1, column B, sheet 1 displays my custom text "ABBREVIATION NOT FOUND".  I'm trying to write a forumla that leaves column B blank unitl there is an input in column A.

    This is my current forulma:
    =IF(ISNA(VLOOKUP(A4,Description!A:B,2,FALSE)),"ABBREVIATION NOT FOUND",(VLOOKUP(A4,Description!A:B,2,FALSE)))

    Any help out there?

    Thanks,

    Jerome

    • Chandoo says:

      Hi Jerome... Thanks for your question. Try this formula instead:

      =IF(A4<>"", IFERROR(VLOOKUP(A4,Description!A:B,2,FALSE),”ABBREVIATION NOT FOUND”), "")

      Works in XL 2007 or above. For older versions use this:

      =IF(A4<>"", IF(ISNA(VLOOKUP(A4,Description!A:B,2,FALSE)),”ABBREVIATION NOT FOUND”,(VLOOKUP(A4,Description!A:B,2,FALSE))), "")

      Btw, to learn more about IFERROR see this: http://chandoo.org/wp/2011/03/11/iferror-formula/

  24. Salvador says:

    I have 2 worksheet, the first one is like this:
    A     B     C     D
    1   DOG   1     BROWN
    1   DOG   2     WHITE
    2   CAT    1    SMALL
    2   CAT    2     MEDIUM
    2    CAT   3     BIG
    THE SECOND WORKSHEET IS LIKE THIS:
    A                  B                                         C                    D
    ENTER#      fORMULA 1 WITH VLOOK          ENTER #     FORMULA 2
                     (RETURN ANIMAL)                                    RETURN TYPE
     
    FOR EXAMPLE i NEED WORKS LIKE THIS:
    2                 CAT                               2                         MEDIUM
     
    FIRST FORMULA IS EASY NOT PROBLEM. bUT FOR THE SECOND i DO NOT FIND HOW TO DO IT. PLEASE HELP.

    • Jo says:

      This would be how I would handle your second formula, in your first worksheet, I would insert a column between C & D. In that column I would have a formula to concatenate the values in column A & C (example =concatenate(a2,c2)) which would result in:

      A B C D E
      1 DOG 1 11 BROWN
      1 DOG 2 12 WHITE
      2 CAT 1 21 SMALL
      2 CAT 2 22 MEDIUM
      2 CAT 3 23 BIG

      Then in the second worksheet formula 2 would be:

      =vlookup(concatenate($a2,$c2),AnimalType columns D&E,2,false)

  25. Gazza says:

    Great Stuff Chandoo
    In your 6th post you say use SUMIF instead of VLOOKUP as it runs faster.
    What if you have a spread sheet with repeated data and you only want to pull one value back?
    would it be best to use a simple VLOOKUP
    or something like: IF(COUNTIF < 2, SUMIF, VLOOKUP)
    I have set COUNTIF < 2 (not just = 1) to take advantage of the fact that if COUNTIF = 0 you won’t get an error

  26. Jo says:

    Now if only you could use the column header name instead of the column index number in the VLOOKUP function.

    Scenario: I have a list/table in one spreadsheet that I use to lookup values in other spreadsheets. If I insert columns in my list/table, I have to go into the other spreadsheet(s) and increment the VLOOKUP formulas' column index number to capture the right column of values.

    Example: if I inserted a column in Table1, my formula:
    =VLOOKUP(A1,Table1,2,FALSE) would have to change to:
    =VLOOKUP(A1,Table1,3,FALSE),
    it would be so much better if you could code something like:
    =VLOOKUP(A1,Table1,Table1[price],FALSE)

    If my lookup result is numeric data I could use sumif as suggested and use the list/table references; is there a similar function I can use for alphanumeric data lookups that uses list/table references?

  27. andy says:

    tip:

    you can use dynamic column reference for your look up if you want to pull multiple column values from another sheet with the same row reference without having to rewrite the the formula, e.g.

    range a1:d1 = "header", 2 , 3, 4
    b2 = vlookup($a2, LookUpRange, b$2, 0)
    c2 = vlookup($a2, LookUpRange, c$2, 0)
    b3 = vlookup($a3, LookUpRange, b$2, 0)

    the above will bring back the value two columns away from LookUpRange in b2, 3 for c2 and 4 for d2 for the same reference, a2. By freezing just the column for your lookup reference value and just the rows for your column reference, you can drag your forums both down and right while keeping all reference both constant and dynamic... as oxymoronic as that sounds.

    • chris says:

      my TIP, building on what Andy says above re using a dynamic refrence: if you use the column functon in the header row - should someone add extra columns to the source sheet your lookup will adapt and still return the right result.

  28. Chaz says:

    With the below formula I am getting "too many arguments for this function. any help?

    =IFERROR(VLOOKUP(RIGHT(M3,7),notes!A:A,1,FALSE),"Failure to process correctly",IFERROR(VLOOKUP(RIGHT(n,2),notes!A:A,1,FALSE),"Failure to process correctly"))

  29. WelshIan says:

    Chaz - IFERROR only requires 2 arguments, you have entered 3 (the vlookup, the error message, the 2nd IFERROR).

    Change your formula to the following:

    =IF(isERROR(VLOOKUP(RIGHT(M3,7),notes!A:A,1,FALSE)),”Failure to process correctly”,IFERROR(VLOOKUP(RIGHT(n,2),notes!A:A,1,FALSE),”Failure to process correctly”))

    Ian

    • WelshIan says:

      Hmm, I'm not sure my formula will return the required output.

      This tests if there is an error in the 1st vlookup, then checks the 2nd, and only returns the error message if both vlookups are errors. Is that what you wanted to do?
      =IF(isERROR(VLOOKUP(RIGHT(M3,7),notes!A:A,1,FALSE)),IFERROR(VLOOKUP(RIGHT(n,2),notes!A:A,1,FALSE),”Failure to process correctly”),VLOOKUP(RIGHT(M3,7),notes!A:A,1,FALSE))

  30. erik says:

    I am trying to use a vlookup with a named range for the lookup array. This works fine. However now I would like to replace this named range with a cell reference (which obviously contains the name of the named range) but get a N/A error message. Is this really not possible?

    vlookup ( A1, named range, 2, 0 ) . This works
    vlookup ( A1, F1, 2, 0 ) . Where cell F1 contains the the text with named range. This does not work.

    Any tips or thoughts would be appreciated. Thank you in advance

  31. erik says:

    Works like a charm. Thank you!

  32. Matt says:

    Some opinions on the pros and cons of using named ranges on http://www.excelvlookuphelp.com along with a few other hot tips

  33. d j says:

    Hello,
    Chandoo,

    Can u explain me how to use vlookup formula in 2 sheets in one excel workbook.

  34. Satish says:

    Hi am Using Index match function to overcome the limitation of Vlookup. But I am failed to get the same result as i get in Vlookup. in vlookup as we can expand the Columns of Vlookup in one single shot. Like Vlookup($A4,A1:G9,3,0) but same Result i Not get in Index match Function. Please help

  35. Sean Burke says:

    Dear Excel super-users,

    Sourcing data from different sheets.

    I'd like to specify in the vlookup formula which sheet to source data from.

    This source sheet will change depending of the name of the person selected in a specific cell C1 on the sheet where the vlookup formula is being run from.

    I'd be grateful for any tips to achieve this.

    Regards,

    Sean

  36. raghuwar singh bisht says:

    dear sir /madam

    please proved me lookup formula
    and exp--------- insert picture formula attched excel sheet

  37. Jayme says:

    Us the Column formula in place of the 3rd argument will save you time when you want to bring in all data columns!

Leave a Reply