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

Data Analysis

  • Conditional Formatting Rules in Excel
  • How To Create Frequency Distribution in Excel
  • How to count table rows in Excel
  • How to create Gauge Chart in Excel
  • Conditional Formatting Color Scales Examples in Excel

References

  • How to use Excel ROWS Function
  • Approximate match with multiple criteria in Excel
  • How to get relative column numbers in a range in Excel
  • How to reference named range different sheet in Excel
  • Find Closest Match in Excel Using INDEX, MATCH, ABS and MIN functions

Data Validations

  • Excel Data validation specific characters only
  • Excel Data validation number multiple 100
  • Data validation must not exist in list
  • Excel Data validation date in specific year
  • Excel Data validation date in next 30 days

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

by

What is IFS function in Excel?

IFS function is one of the Logical functions in Microsoft Excel that checks whether one or more conditions are met, and returns a value that corresponds to the first TRUE condition. IFS can take the place of multiple nested IF statements, and is much easier to read with multiple conditions.

Syntax of IFS function

Generally, the syntax for the IFS function is:

=IFS([Something is True1, Value if True1,Something is True2,Value if True2,Something is True3,Value if True3)

Worked Example:   How to use IFS function in Excel

Examples of IFS function

Example 1

 

The formula for cells A2:A6 is:
  • =IFS(A2>89,”A”,A2>79,”B”,A2>69,”C”,A2>59,”D”,TRUE,”F”)

Which says IF(A2 is Greater Than 89, then return a “A”, IF A2 is Greater Than 79, then return a “B”, and so on and for all other values less than 59, return an “F”).

Example 2

The formula in cell G7 is:

  •  =IFS(F2=1,D2,F2=2,D3,F2=3,D4,F2=4,D5,F2=5,D6,F2=6,D7,F2=7,D8)

Which says IF(the value in cell F2 equals 1, then return the value in cell D2, IF the value in cell F2 equals 2, then return the value in cell D3, and so on, finally ending with the value in cell D8 if none of the other conditions are met).

Worked Example:   How to use IFS function in Excel

IFS formula explanation

  • To specify a default result, enter TRUE for your final logical_test argument. If none of the other conditions are met, the corresponding value will be returned. In Example 1, rows 6 and 7 (with the 58 grade) demonstrate this.
  • If a logical_test argument is supplied without a corresponding value_if_true, this function shows a “You’ve entered too few arguments for this function” error message.
  • If a logical_test argument is evaluated and resolves to a value other than TRUE or FALSE, this function returns a #VALUE! error.
  •  If no TRUE conditions are found, this function returns #N/A error.
Worked Example:   How to use IFS function in Excel

Important! Please note that the IFS function allows you to test up to 127 different conditions. However, we don’t recommend nesting too many conditions with IF or IFS statements. This is because multiple conditions need to be entered in the correct order, and can be very difficult to build, test and update.

Post navigation

Previous Post:

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

Next Post:

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

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

  • How to use Excel NOT Function
  • Nested IF function example in Excel
  • NOT function: Description, Usage, Syntax, Examples and Explanation
  • FALSE function: Description, Usage, Syntax, Examples and Explanation
  • OR function Examples in Excel

Date Time

  • Convert Excel time to decimal minutes
  • NETWORKDAYS.INTL function: Description, Usage, Syntax, Examples and Explanation
  • Get first day of month in Excel
  • Add business days to date in Excel
  • Check If Two Dates are same month in Excel

Grouping

  • Group arbitrary text values in Excel
  • Running count group by n size in Excel
  • Group times into unequal buckets in Excel
  • How to randomly assign data to groups in Excel
  • Categorize text with keywords in Excel

General

  • Subtotal by color in Excel
  • 44 Practical Excel IF function Examples
  • With vs Without Array Formula in Excel
  • How to generate random date between two dates in Excel
  • How to calculate percentage discount in Excel
© 2023 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning