Skip to content
xlsoffice. All Rights Reserved
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Lookup and Reference Examples

  • Offset in Excel
  • How to get last row in numeric data in Excel
  • How to get address of first cell in range in Excel
  • How to get address of named range in Excel
  • Vlookup Examples in Excel

Data Analysis Examples

  • How to Create Thermometer Chart in Excel
  • How To Load Analysis ToolPak in Excel
  • How To Compare Two Lists in Excel
  • How to count table rows in Excel
  • Conditional Formatting Color Scales Examples in Excel

Data Validation Examples

  • Excel Data validation require unique number
  • Excel Data validation date in next 30 days
  • Excel Data validation number multiple 100
  • Excel Data validation with conditional list
  • Excel Data validation must begin with

Category: Excel Functions

Calculate cumulative loan principal payments in Excel

by

To calculate the cumulative principal paid between any two loan payments, you can use the CUMPRINC function. Formula =CUMPRINC(rate,nper,pv,start,end,type) Explanation In the example shown, we calculate the total principal paid over the full term of the loan by using the first and last period. The formula in C10 is: =CUMPRINC(C6/12,C8,C5,1,60,0) How this formula works For this example, …

Continue Reading

Calculate interest for given period in Excel

by

To calculate the interest portion of a loan payment in a given period, you can use the IPMT function. Formula =IPMT(rate,period,periods,-loan) Explanation In the example shown, the formula in C10 is: =IPMT(C6/12,1,C8,-C5) How this formula works For this example, we want to calculate the interest portion for payment 1 of a 5-year loan of $5,000 …

Continue Reading

Calculate interest rate for loan in Excel

by

To calculate the periodic interest rate for a loan, given the loan amount, the number of payment periods, and the payment amount, you can use the RATE function. Formula =RATE(periods,payment,-amount)*12 Explanation In the example shown, the formula in C10 is: =RATE(C7,C6,-C5)*12 Loans have four primary components: the amount, the interest rate, the number of periodic …

Continue Reading

Calculate loan interest in given year in Excel

by

To calculate the total interest for a loan in a given year, you can use the CUMIPMT function. Formula =CUMIPMT(rate,nper,pv,start,end,type) Explanation In the example shown, the total interest paid in year 1 is calculated by using 1 for start period and 12 for end period. The The formula in F5 is: =CUMIPMT(5%/12,60,30000,1,12,0) Note: values hardcoded for readability only. …

Continue Reading

How to calculate present value of annuity in excel

by

To get the present value of an annuity, you can use the PV function. Formula =PV(rate,periods,payment,0,0) In the example shown, the formula in C9 is: =PV(C5,C6,C4,0,0) Explanation An annuity is a series of equal cash flows, spaced equally in time. In this example, an annuity pays 10,000 per year for the next 25 years, with …

Continue Reading

Example of payment for annuity in Excel

by

This tutorial shows how to solve for an annuity payment in Excel. An annuity is a series of equal cash flows, spaced equally in time. Case study:  Using the PMT function, the goal in this example is to have 100,000 at the end of 10 years, with an interest rate of 5%. Payments are made annually, …

Continue Reading

Example of Future value of annuity in Excel

by

To get the present value of an annuity, you can use the PV function. Formula =FV(rate,periods,payment) Explanation In the example shown, the formula in C7 is: =FV(C5,C6,-C4,0,0) Explanation An annuity is a series of equal cash flows, spaced equally in time.  In this example, a $5000 payment is made each year for 25 years, with …

Continue Reading

Future value vs. Present value examples in Excel

by

This tutorial shows how present value and future value are related using the example below:   Explanation In the example shown, Years, Compounding periods, and Interest rate are linked in columns C and F like this: F5=C9 F6=C6 F7=C7 F8=C8 The formula to calculate future value in C9 is: =FV(C8/C7,C6*C7,0,-C5,0) The formula to calculate present value in F9 …

Continue Reading

How to calculate simple interest in Excel

by

To calculate simple interest in Excel (i.e. interest that is not compounded), you can use a formula that multiples principal, rate, and term. Case Study: This example assumes that $1000 is invested for 10 years at an annual interest rate of 5%. Simple interest means that interest payments are not compounded – the interest is …

Continue Reading

How to calculate principal for given period in Excel

by

To calculate the principal portion of a loan payment in a given period, you can use the PPMT function. Formula =PPMT(rate,period,periods,-loan) Explanation In the example shown, the formula in C10 is: =PPMT(C6/12,1,C8,-C5) How this formula works For this example, we want to calculate the principal portion for payment 1 of a 5-year loan of $5,000 …

Continue Reading

Calculate periods for annuity in Excel

by

To calculate the number of periods needed for an annuity to reach a given future value, you can use the NPER function. Formula =NPER(rate,pmt,pv,fv,type) Explanation In the example shown C9 contains this formula: =NPER(C6,-C7,-C4,C5,0) Explanation An annuity is a series of equal cash flows, spaced equally in time. The goal in this example is to …

Continue Reading

Calculate payment periods for loan in Excel

by

To calculate the number of payment periods for a loan, given the loan amount, the interest rate, and a periodic payment amount, you can use the NPER function. Formula =NPER(rate,payment,-loan) Explanation In the example shown, the formula in C10 is… =NPER(C6/12,C7,-C5) How this formula works Loans have four primary components: the amount, the interest rate, …

Continue Reading

How to calculate Net Present Value (NPV) in Excel

by

NPV formula for net present value To calculate Net Present Value (NPV) you can use the NPV function. Formula =NPV(rate,cashflows)-initialcost Explanation In the example shown, the formula in F6 is: =NPV(F4,C6:C10)+C5 How this formula works Net Present Value (NPV) is the present value of expected future cash flows minus the initial cost of investment. The …

Continue Reading

Calculate payment for a loan in Excel

by

To calculate a loan payment amount, given an interest rate, the loan term, and the loan amount, you can use the PMT function. Formula =PMT(rate,periods,-amount) Explanation In the example shown, the formula in C10 is: =PMT(C6/12,C7,-C5) How this formula works Loans have four primary components: the amount, the interest rate, the number of periodic payments …

Continue Reading

Calculate original loan amount in Excel

by

To calculate the original loan amount, given the loan term, the interest rate, and a periodic payment amount, you can use the PV function. Formula =PV(rate,periods,-payment) Explanation In the example shown, the formula in C10 is… =PV(C5/12,C7,C6) How this formula works Loans have four primary components: the amount, the interest rate, the number of periodic …

Continue Reading

How to reference named range different sheet in Excel

by

This tutorials shows how to reference a named range on another sheet. To achieve this, you can use the INDIRECT function with the required sheet syntax. Formula INDIRECT(“‘”&sheet&”‘!”&name) Explanation In the example shown, the formula in D6 is: =SUM(INDIRECT(“‘”&B6&”‘!”&C6)) Which returns the sum of the named range “data” on Sheet1. How this formula works The …

Continue Reading

How to check worksheet name exists in Excel

by

To test if a worksheet name exists in a workbook, you can use a formula based on the ISREF and INDIRECT functions. Formula =ISREF(INDIRECT(“sheetname”&”!A1″)) Explanation In the example shown, the formula in C5 is: =ISREF(INDIRECT(B5&”!A1″)) How this formula works The ISREF function returns TRUE for a valid worksheet reference and FALSE is not. In this …

Continue Reading

Get workbook name and path without sheet in Excel

by

If you want to get the current workbook’s full name and path without a sheet name, you can use a formula that employs several text functions to strip off the sheet name. The final result will be a text string that looks like this: path[workbook.xlsm] Formula =SUBSTITUTE( LEFT(CELL(“filename”,A1),FIND(“]”,CELL(“filename”,A1))-1),”[“,””) Explanation How the formula works The CELL …

Continue Reading

How to get sheet name only in Excel

by

If you want to get the sheet name only (i.e. the sheet name without the file name or path) you can do so with rather long formula that uses the MID function along with the FIND function. The final result will look something like this: Sheet1 Formula =MID(CELL(“filename”,A1),FIND(“]”, CELL(“filename”,A1))+1,255) Explanation How the formula works The …

Continue Reading

How to retrieve workbook name only in Excel

by

If you want to get the workbook name only (i.e. the file name without path or sheet name) you can do so with a rather long formula that uses the MID function along with the FIND function. Formula =MID(CELL(“filename”,A1),FIND(“[“,CELL (“filename”,A1))+1,FIND(“]”,CELL(“filename”,A1)) -FIND(“[“,CELL(“filename”,A1))-1) Explanation How the formula works The cell function is used to get the full …

Continue Reading

How to get full workbook name and path in Excel

by

If you want to get the current workbook’s full path, name, and sheet with a formula, you can use the CELL function and a reference to any cell in the workbook. CELL will return the name in this format: path[workbook.xlsx]sheetname Note that you must save the worksheet in order to get the a result. Formula …

Continue Reading

How to remove trailing slash from url in Excel

by

To remove a trailing slash from a URL or path, you can use a formula based on the LEFT and LEN functions. Formula =LEFT(url,LEN(B4)-(RIGHT(url)=”/”)) Explanation In the example shown, the formula in cell C6 is: =LEFT(B4,LEN(B4)-(RIGHT(B4)=”/”)) How this formula works At the core, this formula uses the LEFT function to return text starting from the …

Continue Reading

How to strip protocol and trailing slash from URL in Excel

by

To remove the protocol (i.e. http://, ftp://, etc.) and trailing slash from a URL, you can use a formula based on the MID, FIND, and LEN functions. Formula =MID(url,FIND(“//”,url)+2,LEN(url)-FIND(“//”,url)-1-(RIGHT(url)=”/”)) Explanation In the example shown, the formula in C5 is: =MID(B4,FIND(“//”,B4)+2,LEN(B4)-FIND(“//”,B4)-1-(RIGHT(B4)=”/”)) How this formula works The core of this formula is the MID function, which extracts …

Continue Reading

How to get top level domain (TLD) in Excel

by

To extract the top level domain (called “TLD”)  from a list of domain names or email addresses, you can use a rather complex formula that uses several functions. In the formula below, domain represents a domain or email address in normal “dot” syntax. Formula =RIGHT(domain,LEN(domain)-FIND(“*”,SUBSTITUTE(domain,”.”,”*”, LEN(domain)-LEN(SUBSTITUTE(domain,”.”,””))))) Explanation In the example, the active cell contains this formula: …

Continue Reading

How to get page from URL in Excel

by

To extract the page, or the part of a path after the last forward slash (/), you can use a formula based on several Excel functions: TRIM, RIGHT, SUBSTITUTE, and REPT. Formula =TRIM(RIGHT(SUBSTITUTE(url,”/”,REPT(” “,100)),100)) Explanation In the example shown, the formula in C5 is: =TRIM(RIGHT(SUBSTITUTE(B5,”/”,REPT(” “,100)),100)) How this formula works At the core, this formula …

Continue Reading

How to extract name from email address in Excel

by

If want to extract the name part of an email address, you can do so with a formula that uses the LEFT and FIND functions. In the formula below, email represents the email address you are working with. Formula =LEFT(email,FIND(“@”,email)-1) Explanation In the example, we are using this formula: =LEFT(C4,FIND(“@”,C4)-1) Here’s how the formula works: …

Continue Reading

How to extract domain from email address in Excel

by

Atimes a user may want to extract the domain from an email address, the RIGHT, LEN, and FIND functions can be used to achieve that. In the formula below, email represents the email address you are working with. Formula =RIGHT(email,LEN(email)-FIND(“@”,email)) Explanation In the example, we are using this formula: =RIGHT(C4,LEN(C4)-FIND(“@”,C4)) Here’s how the formula works …

Continue Reading

How to create email address with name and domain in Excel

by

Atimes a user may want to build an email address from a first and last name. In that case, use a formula based on simple concatenation with help from the LEFT and LOWER functions. See illustration below: Formula =LOWER(LEFT(first)&last&”@”&domain) Explanation In the example shown, the formula in D5 is: =LOWER(LEFT(B5)&C5&”@”&$G$6) How this formula works Working …

Continue Reading

How to create email address from name in Excel

by

To build email addresses using first and last names, you can use a formula that concatenates values, with help from the LOWER and LEFT functions as needed. See example below: Formula =LOWER(LEFT(first)&last)&”@domain.com” Explanation In the example shown, the formula in D5 is: =LOWER(LEFT(C5)&B5)&”@”&”acme.com” How this formula works For a name like “Tim Brown”, this formula …

Continue Reading

How to extract domain name from URL in Excel

by

If you want to extract the domain name from a complete URL, you can do so with a formula that uses  the LEFT and FIND functions. See example: In the formula below, url is the the URL you are working with. Formula =LEFT(url,FIND(“/”,url,9)) Explanation In the example, we are using this formula: =LEFT(B4,FIND(“/”,B4,9)) Here’s how …

Continue Reading

Put names into proper case — Manipulating NAMES in Excel

by

If you need to clean up names that are not in a proper case, you can use a simple formula based on PROPER functions. Formula =PROPER(name) Explanation In the example the formula in C5 is: =PROPER(B5) How this formula works The PROPER function automatically reformats text so that all words are capitalized. At the same …

Continue Reading

Join first and last name — Manipulating NAMES in Excel

by

If you need to join separate first and last names together into a single full name, you can easily do so with concatenation using the ampersand (&) character. In the formula below, first is first name, and last is last name. Formula =first&” “&last Explanation In the example, the active cell contains this formula: =B4&” “&C4 How this formula …

Continue Reading

Extract middle name from full name — Manipulating NAMES in Excel

by

If you need to get the middle name from a full name, and you already have the first and last names in separate cells, you can use a formula that extracts the middle name using the MID and LEN functions, with help from TRIM function. Note: this is a pretty sloppy formula, but will work …

Continue Reading

Get last name from name with comma — Manipulating NAMES in Excel

by

If you need extract the last name from a full name in LAST, FIRST format, you can do so with a formula that uses the LEFT and FIND functions. The formula works with names in this format, where a comma and space separate the last name from the first name. Note: this formula will only …

Continue Reading

Extract last name from full name — Manipulating NAMES in Excel

by

If you need extract the last name from a full name, you can do so with this rather complex formula that uses several functions. Note: In the  formula below, name is a full name, with a space separating the first name from other parts of the name. Formula =RIGHT(name,LEN(name)-FIND(“*”,SUBSTITUTE(name,” “,”*”, LEN(name)-LEN(SUBSTITUTE(name,” “,””))))) Important! Handling inconsistent …

Continue Reading

Get first name from full name — Manipulating NAMES in Excel

by

If you need extract the first name from a full name, you can easily do so with the FIND and LEFT functions. In the  formula below, name is a full name, with a space separating the first name from other parts of the name. Note: this formula does not account for titles (Ms., Mr., etc) …

Continue Reading

Get first name from name with comma — Manipulating NAMES in Excel

by

To extract the first name from a full name in “Last, First” format, you can use a formula that uses RIGHT, LEN and FIND functions. Note: this formula will only work with names in Last, First format, separated with a comma and space. Formula =RIGHT(name,LEN(name)-FIND(“, “,name)-1) Explanation From the table and formula (above), name represent full …

Continue Reading

Split dimensions into two parts in Excel Worksheet

by

If you have worksheet that contains text dimensions (i.e. “50 ft x 200 ft” etc.) you can split the into two parts with formulas that use several text functions. Explanation Background A common annoyance with data is that it may be represented as text instead of numbers. This is especially common with dimensions, which may …

Continue Reading

Split numbers from units of measure in Excel

by

To split a number from a unit value, you need to determine the position of the last number. If you add 1 to that position, you have the start of the unit text. Note: these is an experimental formula that uses a hard coded array constant, set down here for reference and comment. Casually tested …

Continue Reading

Split text and numbers in Excel

by

To separate text and numbers, you can use a formula based on the FIND function, the MIN function, and the LEN function with the LEFT or RIGHT function, depending on whether you want to extract the text or the number. Formula =MIN(FIND({0,1,2,3,4,5,6,7,8,9},A1&”0123456789″)) Explanation In the example shown, the formula in C5 is: =MIN(FIND({0,1,2,3,4,5,6,7,8,9},B5&”0123456789″)) which returns …

Continue Reading

Posts navigation

  • Previous
  • 1
  • …
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • …
  • 21
  • Next

Learn Basic Excel

Ribbon
Workbook
Worksheets
Format Cells
Find & Select
Sort & Filter
Templates
Print
Share
Protect
Keyboard Shortcuts

Categories

  • Charts
  • Data Analysis
  • Data Validation
  • Excel Functions
    • Cube Functions
    • Database Functions
    • Date and Time Functions
    • Engineering Functions
    • Financial Functions
    • Information Functions
    • Logical Functions
    • Lookup and Reference Functions
    • Math and Trig Functions
    • Statistical Functions
    • Text Functions
    • Web Functions
  • Excel VBA
  • Excel Video Tutorials
  • Formatting
  • Grouping
  • Others
  • How to Capitalize first letter in a sentence in Excel
  • How to extract domain from email address in Excel
  • How to count total words in a cell in Excel
  • How to count specific words in a cell in Excel
  • Remove file extension from filename in Excel
  • How to get Weekdays, Working days between Two Dates in Excel
  • Get date from day number in Excel
  • Find Last Day of the Month in Excel
  • How to get same date next year or previous year in Excel
  • Create date range from two dates in Excel
  • Tax rate calculation with fixed base in Excel
  • ACCRINT function: Description, Usage, Syntax, Examples and Explanation
  • FV function: Description, Usage, Syntax, Examples and Explanation
  • PV function: Description, Usage, Syntax, Examples and Explanation
  • Calculate cumulative loan interest in Excel
© 2022 xlsoffice . All Right Reserved. | Teal Smiles