Skip to main content

IFERROR With VLOOKUP And LEN AND LENB FUNCTION

Combining the IFERROR Function Formula with Logical VLOOKUP Functions Formula


IFERROR Function With VLOOKUP Function Formula


Description : - 

Returns a value you specify if a formula evaluates to an error; otherwise, returns the result of the formula. Use the IFERROR Function With VLOOKUP function to trap and handle errors in a formula


Below Following Values if Error : -

#N/A, #VALUE!, #REF!, #DIV/0!, #NUM!, #NAME?, or #NULL!

For Example
A                          B                    C                         D
Description         Value          Description       Value Lookup
Product               #N/A            Product                0
Product Details   #VALUE!      Sale5                   0
Item                    #REF!            Sale                     0
Sale                   #N/A             Item                      0
Sales                 #DIV/0!          Name                   0
Name                 #NAME?       Num                     0
Num                  #NUM!           Null                       0
Null                    #NULL!         Product  No.        125
Product No.      125               Product Data        220
Product Data    220               Product Details    0



                       
IFERROR With VLOOKUP Formula

=IFERROR(VLOOKUP(D:D,A:B,2,FALSE),"0")


Here the Below Screenshot

Displaying IFERROR.png

 

 

​How to Use LEN and LENB Function Formula Using in Excel

LEN and LENB functions Formula in Excel

Describes the formula syntax and usage of the LEN and LENB functions Formula in Excel

Description : -

* LEN Count the number of characters in a text string


* LENB Count the number of bytes used to represent the characters in a text string.



For Example : 

* LEN Function Count the number of characters in a text string = Total Character is 51

   LEN Formula in Excel  =LEN(A1)


LENB Function Count the number of bytes used to represent the characters in a text string = Total Bytes is 80

   LENB Formula is =LENB(A1)



Important : LENB Function counts 2 bytes per character only when a DBCS language is set as the default language. Otherwise LENB behaves the same as LEN, counting 1 byte per character

 

 

 

Comments

Post a Comment

Popular posts from this blog

Discount Formula in Excel

  Discount Formula in Excel To Discount Formula   an original price minus 5 is the same as Calculate to 95 of that value so if you have the Product Price (4585) in A2 use the Discount Formula Here the Below Example for Discount Formulas : -   5% Discount formula is =A2*0.95 10% Discount formula is =A2*0.90 15% Discount formula is =A2*0.85 20% Discount formula is =A2*0.80 25% Discount formula is =A2*0.75 30% Discount formula is =A2*0.70 40% Discount formula is =A2*0.60 50% Discount formula is =A2*0.50 Another Way to Calculate Discount Formula in Excel How to Find Discounted Amount in Excel Column A is Product Price, Column B is Discount Percentage, Column C is Discounted Amount and Column D is After Discount Amount     Discounted Amount Formula is  =A2*5%   After Discount Amount Formula is =A2-C2 Another Easiest Way to Calculate Discount F ormula  Col umn A is Product Pr ice, Col umn B is Discount Percentage % and C is After Discount

VLOOKUP Function

How to Use VLOOKUP Function Formula in Excel VLOOKUP Function Formula is one of the lookup and reference functions, when you need to find things in a table or a range by row. For example, look up an Product Quantity, Product Details or Product SKU, find any phone number by looking up Their last name (just like a telephone book Directory). The secret to VLOOKUP Function Formula  is to organize your data so that the value you look up (Product Quantity) is to the left of the return value you want to find (Product Quantity's).    VLOOKUP Function Formula Syntax : -  =VLOOKUP (lookup_value, table_array, col_index_num, [range_lookup]) For Example : -      Argument name                      Description lookup_value     (required)         Which value you want to look up. Which value you want to look up must be in the first column of the range of cells you specify in   table-array    (Lookup Value is C)   For example, if   table-array   spans cells A:B, then your lookup_value