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

Data Analysis

  • Get column name from index in Excel Table
  • Conditional Formatting Icon Sets Examples in Excel
  • How to Create One and Two Variable Data Tables in Excel
  • How to conditionally sum numeric data in an Excel table using SUMIFS
  • Error Bars in Excel

References

  • How to get last row in mixed data with blanks in Excel
  • Get nth match with INDEX / MATCH in Excel
  • How to get relative column numbers in a range in Excel
  • Multi-criteria lookup and transpose in Excel
  • Basic INDEX MATCH approximate in Excel

Data Validations

  • Excel Data validation date in next 30 days
  • Excel Data validation allow weekday only
  • Excel Data validation must not contain
  • How To Create Drop-down List in Excel
  • Excel Data validation specific characters only

Map inputs to arbitrary values in Excel

by

This tutorial shows how to Map inputs to arbitrary values in Excel using the example below;

Formula

=VLOOKUP(input,map_table,column,0)

If you need to map or translate inputs to arbitrary values, you can use the VLOOKUP function.

In the example, we need to map the numbers 1-6 as follows:

Input Output
1 10
2 81
3 17
4 23
5 13
6 31

Since there is no way to derive the output (i.e. it’s arbitrary), we need to do some kind of lookup. The VLOOKUP function provides an easy way to do this.

In the example shown, the formula in F7 is:

=VLOOKUP(F6,B5:C10,2,0)

How this formula works

This formula uses the value in cell F6 for a lookup value, the range B5:C10 for the lookup table, 2 to indicate “2nd column”, and zero as the last argument to force an exact match.

Although in this case we are mapping numeric inputs to numeric outputs, the same formula will handle text values for both inputs and outputs.

Alternative with CHOOSE

If you have a limited number of inputs, and if the inputs are are numbers starting with 1, you can also use the CHOOSE function. For the example shown the equivalent formula based on CHOOSE is:

=CHOOSE(F6,10,81,17,23,13,31)

The choose function is unwieldy for large amounts of data but for smaller data sets that map to a 1-based index, it has the advantage of being an “all in one” solution.

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

  • Not Equal To ‘<>‘ operator in Excel
  • TRUE function: Description, Usage, Syntax, Examples and Explanation
  • How to return blank in place of #DIV/0! error in Excel
  • How to use IFS function in Excel
  • Extract multiple matches into separate rows in Excel

Date Time

  • Convert Excel time to Unix time in Excel
  • How to calculate workdays per month in Excel
  • Convert date to month and year in Excel
  • How to get Weekdays, Working days between Two Dates in Excel
  • Two ways to sum time over 30 minutes in Excel

Grouping

  • Group arbitrary text values in Excel
  • Running count group by n size in Excel
  • Group numbers with VLOOKUP in Excel
  • How to randomly assign people to groups in Excel
  • Group times into 3 hour buckets in Excel

General

  • Select, Insert, Rename, Move, Delete Worksheets in Excel
  • Zoom Worksheet in Excel
  • Count cells that do not contain errors in Excel
  • 3D SUMIF for multiple worksheets in Excel
  • AutoFit Column Width, AutoFit Row Height in Excel
© 2025 xlsoffice . All Right Reserved. | Teal Smiles | Abbreviations And Their Meaning