Skip to content
Free Excel Tutorials
  • Home
  • Excel For Beginners
  • Excel Intermediate
  • Advanced Excel For Experts

Data Analysis

  • Calculate Conditional Percentile ‘IF’ in table in Excel
  • How to conditionally sum numeric data in an Excel table using SUMIFS
  • How to do a t-Test in Excel?
  • Excel Bar Chart
  • How to Create One and Two Variable Data Tables in Excel

References

  • How to calculate two-way lookup VLOOKUP in Excel Table
  • Vlookup Examples in Excel
  • How to get last row in text data in Excel
  • How to retrieve first match between two ranges in Excel
  • Extract data with helper column in Excel

Data Validations

  • Excel Data validation must begin with
  • Excel Data validation whole percentage only
  • Excel Data validation don’t exceed total
  • Excel Data validation must not contain
  • Excel Data validation require unique number

Invoice status with nested if in Excel

by

This tutorial shows how to calculate Invoice status with nested if in Excel using the example below;

Formula

=IF(balance=0,"Paid",IF(current_date<due_date,"Open","Overdue"))

Explanation

To determine invoice status (i.e. paid, open, overdue), you can use a nested IF formula and the TODAY function.

In the example shown, the formula in G5 is:

=IF(F5=0,"Paid",IF(TODAY()<C5,"Open","Overdue"))

How this formula works

Note: the “current date” (i.e. today) for this example is May 31, 2016

With nested IF statements, the flow is from outer IF statements to inner IF statements, and the challenge is always to construct the flow so that the formula returns a logically correct result.

Here, the outermost IF tests first to see if the balance is zero:

=IF(F5=0

If TRUE, the formula returns “Paid”.

If not, the result of the first IF is FALSE, and another IF statement is run. This one checks to see if TODAY() is less than the due date in column C:

IF(TODAY()<C5

If TRUE, the formula returns “Open”.

If FALSE, the formula returns “Overdue”.

Post navigation

Previous Post:

COSH function: Description, Usage, Syntax, Examples and Explanation

Next Post:

Excel Data validation require unique number

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

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

Logical Functions

  • IF with boolean logic in Excel
  • How to return blank in place of #DIV/0! error in Excel
  • XOR function: Description, Usage, Syntax, Examples and Explanation
  • Complete List of Excel Logical Functions, References and Examples
  • NOT function: Description, Usage, Syntax, Examples and Explanation

Date Time

  • DATEDIF function: Description, Usage, Syntax, Examples and Explanation
  • Add months to date in Excel
  • How to calculate Day of the Year in Excel
  • YEAR function: Description, Usage, Syntax, Examples and Explanation
  • How to get Weekdays, Working days between Two Dates in Excel

Grouping

  • How to randomly assign data to groups in Excel
  • Group numbers at uneven intervals in Excel
  • Group arbitrary text values in Excel
  • Map inputs to arbitrary values in Excel
  • How to randomly assign people to groups in Excel

General

  • How to calculate percent variance in Excel
  • How to calculate percent change in Excel
  • How to create dynamic worksheet reference in Excel
  • Basic error trapping example in Excel
  • How to count total columns in range in Excel
© 2026 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning