How to use the Vlookup function in combination with the Left function.

The VLOOKUP and LEFT functions can be combined. The purpose of combining these two functions is to look up values ​​in a data table based on a portion of a string. Lets explore how to use these functions to answer this question.

Combining functions in Excel makes calculations easier and more accurate. The VLOOKUP function looks up information based on a condition, while the LEFT function extracts characters from the left side of a string.

 

INSTRUCTIONS ON HOW TO USE THE VLOOKUP FUNCTION IN COMBINATION WITH THE LEFT FUNCTION

Syntax and usage of the VLOOKUP and LEFT functions

The VLOOKUP function: Used to look up and return results vertically.

- Syntax: =VLOOKUP(lookup_value, table_array, col_index_num, [range_lookup])

+ lookup_value: The value to look up

+ table_array: The data range to look up

+ col_index_num: The column order from which to retrieve data

+ range_lookup: Search range, TRUE (relative lookup) or FALSE (absolute lookup)

Notes on using F4:

- F4 (once): Fix both column and row ($A$8)

- F4 (twice): Fix row, not column (A$8)

- F4 (3 times): Fix column, not row ($A8)

The LEFT function is used to extract the characters from the left side of a string.

- Syntax: =LEFT(text, n)

+ text: The string of characters to be extracted

+ n: Number of characters to cut

We will use examples to better understand how to use and combine these two functions.

Let's assume we have a data table like the one below:

We will use the LEFT function to retrieve the Department Code from the Class column.

Step 1 : Fill in cell C6 with the formula: =LEFT(B6,2). The meaning of this formula is to remove 2 characters from cell B6.

Step 2: Then press Enter . The result will be the two characters CN that have been extracted from the string CNTT1 .

Step 3 : Drag from cell C6 downwards so that the cells below automatically fill in the formula and display the corresponding result.

Step 4: Fill in cell D6 with the formula: =VLOOKUP($C6,$G$6:$H$10,2,0). $C6 is the value to search for, $G$6:$H$10 is the data range to look up, 2 is the column number to retrieve the value from within the data range, and 0 is the absolute search range.

Step 5: Then press Enter . The result will show the Department Name corresponding to the Department Code . Scroll down again so that the cells below automatically fill in the formulas and give the corresponding results.

Step 6: Fill in cell E6 with the formula: =VLOOKUP(LEFT(B6,2),$G$6:$H$10,2,0). We replace the value used for searching from $C6 with LEFT(B6,2) .

Step 7: Then press Enter and do the same as step 5.


Above is how to combine the VLOOKUP function with the LEFT function. Hopefully, this article helps you use these functions effectively in your work. If you encounter any difficulties, don't hesitate to leave a question below the article, and the TipsMake team will assist you.

Besides being combined with the LEFT function, the VLOOKUP function can also be combined with the IF function to solve other problems. You can refer to how  to combine the VLOOKUP and IF functions  to find data based on conditions here.

Other Office information articles
  • Common calculation functions in Excel, formulas, and examples.

    save these common excel functions to save time, increase productivity, and improve your spreadsheet data handling skills.
  • How to use the VLOOKUP function in Excel: formulas and detailed examples.

    the vlookup function in excel allows users to quickly look up data by column, especially useful when working with large tables. to use it effectively, you need to understand the syntax, how to apply it, and how to troubleshoot common errors.
  • Basic Excel functions in accounting

    there are many basic accounting functions that excel learners need to know to use in their work. the use of excel functions ranges from easy to difficult, and the basic accounting excel functions discussed in this article will be extremely useful knowledge for readers who want to learn excel and use basic excel functions in accounting.
  • Tips for using Google Docs more effectively

    google docs is a convenient online document creator and editor, preferred by many for creating reports and collaborating on projects. even if you've mastered the basic features of google docs, there are some tips for using it effectively that you may not have heard of. some google docs tricks include using keyboard shortcuts, drag-and-drop functionality, creating shortcuts, restoring previous versions of documents, and translation, etc.
  • How to limit responses in Google Forms

    besides manually restricting responses in google forms or using built-in features, users can also install third-party browser extensions to perform similar functions.
  • How to type mathematical formulas in Google Docs

    as a popular online work application for office workers, google docs supports document creation in many different formats, including charts, images, and mathematical formulas. if you don't know how to insert, import, or type mathematical formulas in google docs, the content in this article will help you solve your problem.
Category

System

Windows XP

Windows Server 2012

Windows 8

Windows 7

Windows 10

Wifi tips

Virus Removal - Spyware

Speed ​​up the computer

Server

Security solution

Mail Server

LAN - WAN

Ghost - Install Win

Fix computer error

Configure Router Switch

Computer wallpaper

Computer security

Mac OS X

Mac OS System software

Mac OS Security

Mac OS Office application

Mac OS Email Management

Mac OS Data - File

Mac hardware

Hardware

USB - Flash Drive

Speaker headset

Printer

PC hardware

Network equipment

Laptop hardware

Computer components

Advice Computer

Game

PC game

Online game

Mobile Game

Pokemon GO

information

Technology story

Technology comments

Quiz technology

New technology

British talent technology

Attack the network

Artificial intelligence

Technology

Smart watches

Raspberry Pi

Linux

Camera

Basic knowledge

Banking services

SEO tips

Science

Strange story

Space Science

Scientific invention

Science Story

Science photo

Science and technology

Medicine

Health Care

Fun science

Environment

Discover science

Discover nature

Archeology

Life

Travel Experience

Tips

Raise up child

Make up

Life skills

Home Care

Entertainment

DIY Handmade

Cuisine

Christmas

Application

Web Email

Website - Blog

Web browser

Support Download - Upload

Software conversion

Social Network

Simulator software

Online payment

Office information

Music Software

Map and Positioning

Installation - Uninstall

Graphic design

Free - Discount

Email reader

Edit video

Edit photo

Compress and Decompress

Chat, Text, Call

Archive - Share

Electric

Water heater

Washing machine

Television

Machine tool

Fridge

Fans

Air conditioning

Program

Unix and Linux

SQL Server

SQL

Python

Programming C

PHP

NodeJS

MongoDB

jQuery

JavaScript

HTTP

HTML

Git

Database

Data structure and algorithm

CSS and CSS3

C ++

C #

AngularJS

Mobile

Wallpapers and Ringtones

Tricks application

Take and process photos

Storage - Sync

Security and Virus Removal

Personalized

Online Social Network

Map

Manage and edit Video

Data

Chat - Call - Text

Browser and Add-on

Basic setup