Civil LAB - Excel
  • What is CIVIL LAB Excel?
  • Introduction
    • How to use ? Installation
    • Introduction of the modules
    • Copy right agreement
  • Documentation
    • Ribbon Tools
      • Formatting tools
        • Color It
        • Advanced Formatting
        • Auto Units
        • Group color
      • Utilization Tools
        • Pro copy
        • Level Sum
      • EuroCode Tools
        • Eurocode 4
        • Eurocode 3
        • Eurocode 2
          • Creep Coefficient
        • Eurocode 0 & 1
      • Database tools
        • Engineer Database
        • Group to index
        • Index to group
    • Built-in functions
      • General Functions
        • CL_G_TabelInterpolation
        • CL_G_CreateListTablePicker
        • CL_G_ListTableFind
        • CL_G_Table_find
        • CL_G_VlookupTable
      • Database Function
      • Eurocode function
      • Mechanical functions
        • CL_M_Rebars_A
        • CL_M_Recdata
        • CL_M_HProfileData
        • CL_M_Zel
    • Ready made Excel
      • Parametric tool : input output
      • Composite beam stiffness
    • Excel-Python
  • Contacts and development
    • For Programmers
      • Civil LAB framework
      • Resources
      • Naming Rules
      • Guides to Function Modules
      • Guides to Data Tables
      • Guides to Ribbons
    • For Engineers
      • What is possible?
    • For Supporter
      • Donation / contribution
    • Contact infomation
  • 💾Downloads
  • Road map
    • Road Map
Powered by GitBook
On this page
  1. Documentation
  2. Built-in functions
  3. General Functions

CL_G_VlookupTable

Vlookup Table

PreviousCL_G_Table_findNextDatabase Function

Last updated 3 years ago

Description:

Do advanced Vlookup in a formatted list table, based on item names instead of the column number. allow more readable and easy data checking

Advantages compared to Vlookup:

  • The reference column does not necessarily be the first column, you can check any column now.

  • Use column names instead of column numbers for the return value, which means more readable and you can edit the data table by adding removing columns without influencing the results.

  • Easy to use, you can copy the same code across the excel with the same aimtable

The parameter list:

Parameters
Explanation
Data Type

lookupvalue

the value to be looked up

Aim_table

the table contains the data to be looked up, must be a formatted table (Home> Styles > Format as table)

Aim_name

[optional] the column name where the return values are defined. The function takes the column name of the current cell location

Ref_name

[optional] the column name where the reference values are defined. by default takes the column name of the lookup value.

Video guide:

How it works:

VlookupTable function by default looks up the row of "look up value" in the Aim table, and returns the data in the same column name of "calling cell". Thus it is better to set the same column names in the calling table and aim table. In the case, you can apply the same function across the excel table range, due to the column names are automatically mathed.

However, if the columns are different in the calling table and aim table, you can also declare it in the third and fourth optional parameters.