Excel if value is not null

Содержание

  1. Функция IsNull
  2. Синтаксис
  3. Замечания
  4. Пример
  5. См. также
  6. Поддержка и обратная связь
  7. Null in Excel
  8. Null in Excel
  9. ISBLANK Function to Find NULL Value in Excel
  10. #1 – How to Find NULL Cells in Excel?
  11. #2 – Shortcut Way of Finding NULL Cells in Excel
  12. #3 – How to Fill Our Values to NULL Cells in Excel?
  13. Things to Remember
  14. Recommended Articles
  15. Сравнение значений null в Power Query
  16. Blank and null values in Excel add-ins
  17. null input in 2-D Array
  18. null input for a property
  19. null property values in the response
  20. Blank input for a property
  21. VBA ISNULL
  22. VBA ISNULL Function
  23. How to Use VBA ISNULL Function in Excel?
  24. Example #1 – VBA ISNULL
  25. Pros of VBA IsNull
  26. Things to Remember
  27. Recommended Articles

Функция IsNull

Возвращает значение типа Boolean, которое указывает, не содержит ли выражение достоверных данных (Null).

Синтаксис

IsNull(выражение)

Замечания

IsNull возвращает значение True (Истина), если используется expression равное Null; в другом случае IsNull возвращает значение False (Ложь). Если expression состоит из нескольких переменных, значение Null, заданное для одной из них, приводит к возврату значения True для всего выражения.

Значение Null указывает, что Variant не содержит достоверных значений. Null не приравнивается к значению Empty (Пусто), которое указывает, что переменная не была инициализирована. Это также не то же самое, что строка нулевой длины («»), которую иногда называют пустой строкой.

Используйте функцию IsNull, чтобы определить, содержит ли выражение значение Null. Выражения, для которых может потребоваться значение True , в некоторых случаях, например If Var = Null и If Var <> Null , всегда имеют значение False. Это связано с тем, что любое выражение, содержащее значение NULL , само по себе имеет значение NULL и , следовательно, false.

Пример

В этом примере используется функция IsNull, чтобы определить, содержит ли переменная значение Null.

См. также

Поддержка и обратная связь

Есть вопросы или отзывы, касающиеся Office VBA или этой статьи? Руководство по другим способам получения поддержки и отправки отзывов см. в статье Поддержка Office VBA и обратная связь.

Источник

Null in Excel

Null is an error that occurs in Excel when the two or more cell references provided in a formula are incorrect, or the position they have been placed in is erroneous. For example, suppose we use space in formulas between two cell references; we will encounter a null error. In that case, there are two reasons to meet this error, one if we used an incorrect range reference and another when we use the intersect operator, which is the space character.

Null in Excel

NULL is nothing but nothing or blank in Excel. Usually, when working in Excel, we encounter many NULL or blank cells. We can use the formula and find out whether the particular cell is blank (NULL) or not.

We have several ways of finding the NULL cells in Excel. Today’s article will take a tour of dealing with NULL values in Excel.

How do you find which cell is blank or null? Yes, we must look at the particular cell and decide. Let us discover many methods of finding the null cells in Excel.

Table of contents

ISBLANK Function to Find NULL Value in Excel

The syntax is straightforward. Value is nothing but the cell reference; we are testing whether it is blank or not.

Note: ISBLANK will treat the single space as one character; if the cell has only space value, it will be recognized as a non-blank or non-null cell.

#1 – How to Find NULL Cells in Excel?

Assume we have the values below in the Excel file and want to test all the null cells in the range.

    Let us open the ISBLANK formula in cell B2 cell.

Select cell A2 as the argument. Since there is only one argument, close the bracket.

We got the result as given below:

Then, drag and drop the formula to other remaining cells.

We got the results. But look at cell B7. Even though there is still no value in cell A7, the formula returned the result as a FALSE, non-null cell.

It counts the no. of characters and gives the result.

The LEN function returned the no. of character in the A7 cell as 1. So, there should be a character in it.

Let us edit the cell now. So, we found the space character here. Let us remove the space character to make the formula show accurate results.

We have removed the space character, and the ISBLANK formula returned the result as TRUE. That is because even the LEN function says there are zero characters in cell A7.

#2 – Shortcut Way of Finding NULL Cells in Excel

We have seen the traditional formula way to find the null cells. Without using the ISBLANK function, we can find the null cells.

Let us open the formula with an equal sign (=).

After the equal sign, select cell A2 as the reference.

Now open one more equal sign after the cell reference.

Now mention open double-quotes and close double-quotes. (“”)

The sign double quotes (“”) says the selected cell is NULL or not. If the selected cell is NULL, we will get TRUE. Else, we will get FALSE.

Drag the formula to the remaining cells.

We can see that in cell B7, we got the result as “TRUE.” So it means it is a null cell.

#3 – How to Fill Our Values to NULL Cells in Excel?

We have seen how to find the NULL cells in the Excel sheet. In our formula, we could only get TRUE or FALSE. But we can also receive our values for the NULL cells.

Consider the below data for an example.

Step 1: Open the IF condition first.

Step 2: Here, we need to do a logical test. We need to test whether the cell is NULL or not. So apply A2=”.”

Step 3: If the logical test is TRUE (TRUE means cell is NULL), we need the result as “No Values Found.”

Step 4: If the logical test is FALSE (which means the cell contains values), then we need the same cell value.

We got the result as the same cell value.

Step 5: Drag the formula to the remaining cells.

So, we have got our value of No Values Found for all the NULL cells.

Things to Remember

  • Even space will be considered a character and treated as a non-empty cell.
  • Instead of ISBLANK, we can also use double quotes (“ ”) to test the NULL cells.
  • If the cell seems blank and the formula shows it as a non-null cell, then you need to test the number of characters using the LEN function.

Recommended Articles

This article is a guide to Null in Excel. We discuss the top methods to find null values in Excel using ISBLANK and shortcuts to replace those null cells, along with practical examples and a downloadable template. You may learn more about Excel from the following articles: –

Источник

Сравнение значений null в Power Query

Недавно мне нужно было сделать очень простую операцию в Power Query. В столбце с числами нужно было выполнить проверку “значение меньше N” и в новом столбце вывести соответствующий текст. Функция дополнительного столбца выглядит примерно так:

На самом деле некоторые значения – null (то есть пустые):

Данные содержат null и в результате сравнения возникает ошибка

И такая простая операция возвращает ошибку для этих значений!

Почему? Есть некоторая ловушка, спрятанная в глубинах документации (а именно на странице 67 PDF-файла “Power Query Formula Language Specification (October 2016)”, который можно найти тут.

Если коротко, то вот краткая выжимка из документации:

Значения null можно сравнивать на равенство, но null равен только null:

Но если вы хотите сравнить null с любым другим значением при помощи относительного оператора (например, , =), тогда результат сравнения будет не логическое значение типа true или false , а именно null . В разделе “6.7 Relational operators” об этом есть маленькое замечание:

If either or both operands are null , the result is the null value.

Так и в чем уловка? В выражении if…then…else после слова if должно идти логическое значение (например, как результат какого-то сравнения):

Когда мы сравниваем (практически любые) значения одного типа, мы в результате получаем логическое значение: true или false . Но в случае с null мы получим логическое значение только в случае, если мы сравниваем null на равенство:

НО если мы сделаем относительное сравнение null с SomeValue, тогда результат – НЕ логическое значение (он будет null ), и выражение if…then…else вернет ошибку:

Источник

Blank and null values in Excel add-ins

null and empty strings have special implications in the Excel JavaScript APIs. They’re used to represent empty cells, no formatting, or default values. This section details the use of null and empty string when getting and setting properties.

null input in 2-D Array

In Excel, a range is represented by a 2-D array, where the first dimension is rows and the second dimension is columns. To set values, number format, or formula for only specific cells within a range, specify the values, number format, or formula for those cells in the 2-D array, and specify null for all other cells in the 2-D array.

For example, to update the number format for only one cell within a range, and retain the existing number format for all other cells in the range, specify the new number format for the cell to update, and specify null for all other cells. The following code snippet sets a new number format for the fourth cell in the range, and leaves the number format unchanged for the first three cells in the range.

null input for a property

null is not a valid input for single property. For example, the following code snippet is not valid, as the values property of the range cannot be set to null .

Likewise, the following code snippet is not valid, as null is not a valid value for the color property.

null property values in the response

Formatting properties such as size and color will contain null values in the response when different values exist in the specified range. For example, if you retrieve a range and load its format.font.color property:

  • If all cells in the range have the same font color, range.format.font.color specifies that color.
  • If multiple font colors are present within the range, range.format.font.color is null .

Blank input for a property

When you specify a blank value for a property (i.e., two quotation marks with no space in-between » ), it will be interpreted as an instruction to clear or reset the property. For example:

  • If you specify a blank value for the values property of a range, the content of the range is cleared.
  • If you specify a blank value for the numberFormat property, the number format is reset to General .
  • If you specify a blank value for the formula property and formulaLocale property, the formula values are cleared.

Источник

VBA ISNULL

VBA ISNULL Function

ISNULL function in VBA is used for finding the null value in excel. This seems easy but when we have a huge database which is connected to multiple files and sources and if we asked to find the Null in that, then any manual method will not work. For that, we have a function called IsNull in VBA which finds the Null value in any type of database or table. This can only be done in VBA, we do not have any such function in Excel.

Syntax of ISNULL in Excel VBA

Valuation, Hadoop, Excel, Mobile Apps, Web Development & many more.

The syntax for the VBA ISNULL function in excel is as follows:

As we can see in the above screenshot, IsNull uses only one expression and to as Boolean. Which means it will give the answer as TRUE and FALSE values. If the data is Null then we will get TRUE or else we will get FALSE as output.

How to Use VBA ISNULL Function in Excel?

We will learn how to use a VBA ISNULL function with example in excel.

Example #1 – VBA ISNULL

Follow the below steps to use IsNull in Excel VBA.

Step 1: To apply VBA IsNull, we need a module. For this go to the VBA window and under the Insert menu select Module as shown below.

Step 2: Once we do that we will get a blank window of fresh Module. In that, write the subcategory of VBA IsNull or in any other name as per your need.

Code:

Step 3: For IsNull function, we will need one as a Variant. Where we can store any kind of value. Let’s have a first variable Test as Variant as shown below.

Code:

Step 4: As we know that IsNull works on Boolean. So we will need another variable. Let’s have our second variable Answer as Boolean as shown below. This will help us in knowing whether IsNull is TRUE or FALSE.

Code:

Step 5: Now give any value to the first variable Test. Let’s give it a text value “VBA Macro” as shown below.

Code:

Step 6: Now we will use our second variable Answer with IsNull function as shown below.

Code:

As we have seen in the explanation of VBA IsNull, that syntax of IsNull is Expression only. And this Expression can be a text, cell reference, direct value by entering manually or any other variable assigned to it.

Step 7: We can enter anything in Expression. We have already assigned a text value to variable Test. Now select the variable into the expression.

Code:

Step 8: Once done, then we will need a message box to print the value of IsNull if it is TRUE or FALSE. Insert Msgbox and give any statement which we want to see. Here we have considered “Is the Test is null?” as shown below.

Code:

Step 9: And then add rest of the variable which we defined above separated by the ampersand (&) as shown below which includes our second variable Answer and name of the message box as “VBA ISNULL Function Example”.

Code:

Step 10: Now compile the code by pressing F8 and run it by pressing the F5 key if there is no error found. We will see the Isnull function has returned the Answer as FALSE. Which means text “VBA Macro” is not null.

Step 11: Now we will see if numbers can be null or not. For this, we use a new module or we can use the same code that we have written above. In that, we just need to make changes. Assign any number to Test variable in place of text “VBA Macro”. Let’s consider that number as 123123 as shown below.

Code:

Step 12: Now again compile the code or we can compile the current step only by putting the cursor there and pressing F8 key. And run it. We will get the message box with the statement that our Test variable which is number 123123 is also not a Null. It is FALSE to call it a null.

Step 13: Now it is clear that neither Text nor Number can be Null. To test further, now we will consider a blank. A reference which has no value. For this, in the same previously written code put the double inverted (“”) commas with nothing in it in Test variable as shown below. Now we will is if a Blank can be a null or not.

Code:

Step 14: We will get a message which says the Blank reference is also not null. It is FALSE to call it so.

Step 15: We have tried Text, Number and Blank for testing if they are null or not. Now we will text Null itself under variable Test as see if this is a null or not.

Code:

Step 16: Now run the code. We will in the message box the statement for “Is the Test is null?” has come TRUE.

Which means, in data if there are any cells with Blank, Space, Text or Number. Those cells will not be considered as Null.

Pros of VBA IsNull

  • We can find if a cell is Null or not.
  • We can test any variable if it is null or not.
  • This quite helps in a big database which is fetched from some source.

Things to Remember

  • IsNull finds only Null as Null. Text, Numbers, and Blanks are not null.
  • IsNull is only applicable in VBA. Excel doesn’t have any function as IsNull or other matching function which can give the same result as IsNull.
  • To use the code multiple times, it is better to save the excel in Macro Enable Excel format. This process helps in retaining the code for future use.
  • IsNull only returns the value in the Boolean form, means in TRUE and FALSE
  • Considering the Variant as Test variable allow us to use numbers, words and blank values in it. It considers all the type of values majorly used for Boolean.

Recommended Articles

This is a guide to VBA ISNULL. Here we discuss how to use Excel VBA ISNULL function along with practical examples and downloadable excel template. You can also go through our other suggested articles –

Источник

IsNull Function in Microsoft Excel

The Excel IsNullFunction is used to determine whether or not a variable has a value assigned or not.

The Basics:

 True/False = IsNull(Variable)

Code

Dim variableToEvaluate As Variant
variableToEvaluate = Null

If IsNull(variableToEvaluate) Then MsgBox "The variable variableToEvaluate has no assigned value"

Output

Note: An effective way to evaluate if a value has been assigned to any variable is to use the following command len(trim(Variable))>0. No matter what type of variable is used if it contains a value this function will identify it.

Code

'Declare variables
Dim StringToProcess As String'Variable string to process
Dim arrValues() As String'String Array
Dim A, B As Long
'Value to use as a counter
Dim tmpValue As Variant
Dim Check As Boolean

StringToProcess = ActiveSheet.Cells(2, 1).Value 'Assign the information to process to our variable

arrValues() = Split(StringToProcess, " ") 'Parse the string into a string array using a space delimiter
Counter = 5
For A = LBound(arrValues) To UBound(arrValues)
	Check = IsNumeric(arrValues(A))
	If Check Then
		ActiveSheet.Cells(Counter, 1).Value = CDbl(arrValues(A))
		Counter = Counter + 1
	End If
Next
	

Output

  • #2

Try

=IF(AND(E99<>»»,OR(E99=»No»,I99<=4,E99=»text»,I99=»text»)),1,0)

  • #3

Sorry, for clarification: I also do not want null values in col I. I tried the following, but I am not getting the right answer:

=IF(AND((E99<>»»),OR (I99<>»»),,OR(E99=»No»,I99<=4,E99=»text»,I99=»text»)),1,0)

  • #4

=IF(AND((E99<>»»),OR (I99<>»»),OR(E99=»No»,I99<=4,E99=»text»,I99=»text»)),1,0)
Correction without extra comma :)

  • #5

Try

=IF(AND(E99<>»»,I99<>»»,OR(E99=»No»,I99<=4,E99=»text»,I99=»text»)),1,0)

  • #6

It did not work. I may not have explained it correctly. Col E contains Yes, No and blanks, Col I contains numbers 1-10 and blanks. I want to bring back: Col E = No OR Col I <=4, no blanks
<TABLE style=»WIDTH: 288pt; BORDER-COLLAPSE: collapse» border=0 cellSpacing=0 cellPadding=0 width=384><COLGROUP><COL style=»WIDTH: 48pt» span=6 width=64><TBODY><TR style=»HEIGHT: 33.75pt» height=45><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: #4bacc6; WIDTH: 48pt; HEIGHT: 33.75pt; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid» class=xl63 height=45 width=64>Geo</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: #4bacc6; WIDTH: 48pt; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid» id=td_post_2824097 class=xl63 width=64>Region</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: #4bacc6; WIDTH: 48pt; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid» class=xl63 width=64>Rep</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: #4bacc6; WIDTH: 48pt; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid» class=xl63 width=64>Cust#</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: #4bacc6; WIDTH: 48pt; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid» class=xl63 width=64>Was the Issue Addressed?</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: #4bacc6; WIDTH: 48pt; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid» class=xl63 width=64>Level of Support</TD></TR><TR style=»HEIGHT: 15pt» height=20><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 48pt; HEIGHT: 15pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 height=20 width=64>Americas1</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>East</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>Rep1</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>70706230</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>Yes</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64> </TD></TR><TR style=»HEIGHT: 15pt» height=20><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 48pt; HEIGHT: 15pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 height=20 width=64>Americas2</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>West</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>Rep2</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>70723549</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64> </TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>10</TD></TR><TR style=»HEIGHT: 15pt» height=20><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 48pt; HEIGHT: 15pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 height=20 width=64>EMEA</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>North </TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>Rep3</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>60696810</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>Yes</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64> </TD></TR><TR style=»HEIGHT: 15pt» height=20><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 48pt; HEIGHT: 15pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 height=20 width=64>Ap</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>South</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>Rep5</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>90719603</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>No</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>3</TD></TR><TR style=»HEIGHT: 15pt» height=20><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 48pt; HEIGHT: 15pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 height=20 width=64>Japan</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>South</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>Rep7</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>80713298</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>Yes</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>8</TD></TR><TR style=»HEIGHT: 15pt» height=20><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 48pt; HEIGHT: 15pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 height=20 width=64>EMEA</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>East</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>Rep8</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>20716087</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>Yes</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>4</TD></TR><TR style=»HEIGHT: 15pt» height=20><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 48pt; HEIGHT: 15pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 height=20 width=64>EMEA</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>East</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>Rep9</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>20716088</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64> </TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64> </TD></TR><TR style=»HEIGHT: 15pt» height=20><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 48pt; HEIGHT: 15pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 height=20 width=64>EMEA</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>East</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>Rep10</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>20716089</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>No</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>2</TD></TR><TR style=»HEIGHT: 15pt» height=20><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; WIDTH: 48pt; HEIGHT: 15pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 height=20 width=64>EMEA</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>East</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>Rep11</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>20716090</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>Yes</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext; BACKGROUND-COLOR: transparent; WIDTH: 48pt; BORDER-TOP: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>1</TD></TR></TBODY></TABLE>
=IF(AND(E693<>»», I693<>»»,OR(E693=»No»,I693<=4,E693=»text»,I693=»text»)),1,»») is not working

  • #7

Hi,
If anyone has a suggestion, it would be appreciated.

It did not work. I may not have explained it correctly. Col E contains Yes, No and blanks, Col I contains numbers 1-10 and blanks. I want to bring back: Col E = No OR Col I <=4, no blanks

<TABLE style=»WIDTH: 288pt; BORDER-COLLAPSE: collapse» border=0 cellSpacing=0 cellPadding=0 width=384><COLGROUP><COL style=»WIDTH: 48pt» span=6 width=64><TBODY><TR style=»HEIGHT: 33.75pt» height=45><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: #4bacc6; WIDTH: 48pt; HEIGHT: 33.75pt; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid» class=xl63 height=45 width=64>Geo</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: #4bacc6; WIDTH: 48pt; BORDER-LEFT-COLOR: windowtext; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid» id=td_post_2824097 class=xl63 width=64>Region</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: #4bacc6; WIDTH: 48pt; BORDER-LEFT-COLOR: windowtext; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid» class=xl63 width=64>Rep</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: #4bacc6; WIDTH: 48pt; BORDER-LEFT-COLOR: windowtext; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid» class=xl63 width=64>Cust#</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: #4bacc6; WIDTH: 48pt; BORDER-LEFT-COLOR: windowtext; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid» class=xl63 width=64>Was the Issue Addressed?</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: #4bacc6; WIDTH: 48pt; BORDER-LEFT-COLOR: windowtext; BORDER-TOP: windowtext 0.5pt solid; BORDER-RIGHT: windowtext 0.5pt solid» class=xl63 width=64>Level of Support</TD></TR><TR style=»HEIGHT: 15pt» height=20><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP-COLOR: windowtext; WIDTH: 48pt; HEIGHT: 15pt; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 height=20 width=64>Americas1</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP-COLOR: windowtext; WIDTH: 48pt; BORDER-LEFT-COLOR: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>East</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP-COLOR: windowtext; WIDTH: 48pt; BORDER-LEFT-COLOR: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>Rep1</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP-COLOR: windowtext; WIDTH: 48pt; BORDER-LEFT-COLOR: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>70706230</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP-COLOR: windowtext; WIDTH: 48pt; BORDER-LEFT-COLOR: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>Yes</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP-COLOR: windowtext; WIDTH: 48pt; BORDER-LEFT-COLOR: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64></TD></TR><TR style=»HEIGHT: 15pt» height=20><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP-COLOR: windowtext; WIDTH: 48pt; HEIGHT: 15pt; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 height=20 width=64>Americas2</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP-COLOR: windowtext; WIDTH: 48pt; BORDER-LEFT-COLOR: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>West</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP-COLOR: windowtext; WIDTH: 48pt; BORDER-LEFT-COLOR: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>Rep2</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP-COLOR: windowtext; WIDTH: 48pt; BORDER-LEFT-COLOR: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>70723549</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP-COLOR: windowtext; WIDTH: 48pt; BORDER-LEFT-COLOR: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64></TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP-COLOR: windowtext; WIDTH: 48pt; BORDER-LEFT-COLOR: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>10</TD></TR><TR style=»HEIGHT: 15pt» height=20><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP-COLOR: windowtext; WIDTH: 48pt; HEIGHT: 15pt; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 height=20 width=64>EMEA</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP-COLOR: windowtext; WIDTH: 48pt; BORDER-LEFT-COLOR: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>North </TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP-COLOR: windowtext; WIDTH: 48pt; BORDER-LEFT-COLOR: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>Rep3</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP-COLOR: windowtext; WIDTH: 48pt; BORDER-LEFT-COLOR: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>60696810</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP-COLOR: windowtext; WIDTH: 48pt; BORDER-LEFT-COLOR: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>Yes</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP-COLOR: windowtext; WIDTH: 48pt; BORDER-LEFT-COLOR: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64></TD></TR><TR style=»HEIGHT: 15pt» height=20><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP-COLOR: windowtext; WIDTH: 48pt; HEIGHT: 15pt; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 height=20 width=64>Ap</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP-COLOR: windowtext; WIDTH: 48pt; BORDER-LEFT-COLOR: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>South</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP-COLOR: windowtext; WIDTH: 48pt; BORDER-LEFT-COLOR: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>Rep5</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP-COLOR: windowtext; WIDTH: 48pt; BORDER-LEFT-COLOR: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>90719603</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP-COLOR: windowtext; WIDTH: 48pt; BORDER-LEFT-COLOR: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>No</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP-COLOR: windowtext; WIDTH: 48pt; BORDER-LEFT-COLOR: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>3</TD></TR><TR style=»HEIGHT: 15pt» height=20><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP-COLOR: windowtext; WIDTH: 48pt; HEIGHT: 15pt; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 height=20 width=64>Japan</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP-COLOR: windowtext; WIDTH: 48pt; BORDER-LEFT-COLOR: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>South</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP-COLOR: windowtext; WIDTH: 48pt; BORDER-LEFT-COLOR: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>Rep7</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP-COLOR: windowtext; WIDTH: 48pt; BORDER-LEFT-COLOR: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>80713298</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP-COLOR: windowtext; WIDTH: 48pt; BORDER-LEFT-COLOR: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>Yes</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP-COLOR: windowtext; WIDTH: 48pt; BORDER-LEFT-COLOR: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>8</TD></TR><TR style=»HEIGHT: 15pt» height=20><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP-COLOR: windowtext; WIDTH: 48pt; HEIGHT: 15pt; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 height=20 width=64>EMEA</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP-COLOR: windowtext; WIDTH: 48pt; BORDER-LEFT-COLOR: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>East</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP-COLOR: windowtext; WIDTH: 48pt; BORDER-LEFT-COLOR: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>Rep8</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP-COLOR: windowtext; WIDTH: 48pt; BORDER-LEFT-COLOR: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>20716087</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP-COLOR: windowtext; WIDTH: 48pt; BORDER-LEFT-COLOR: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>Yes</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP-COLOR: windowtext; WIDTH: 48pt; BORDER-LEFT-COLOR: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>4</TD></TR><TR style=»HEIGHT: 15pt» height=20><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP-COLOR: windowtext; WIDTH: 48pt; HEIGHT: 15pt; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 height=20 width=64>EMEA</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP-COLOR: windowtext; WIDTH: 48pt; BORDER-LEFT-COLOR: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>East</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP-COLOR: windowtext; WIDTH: 48pt; BORDER-LEFT-COLOR: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>Rep9</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP-COLOR: windowtext; WIDTH: 48pt; BORDER-LEFT-COLOR: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>20716088</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP-COLOR: windowtext; WIDTH: 48pt; BORDER-LEFT-COLOR: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64></TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP-COLOR: windowtext; WIDTH: 48pt; BORDER-LEFT-COLOR: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64></TD></TR><TR style=»HEIGHT: 15pt» height=20><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP-COLOR: windowtext; WIDTH: 48pt; HEIGHT: 15pt; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 height=20 width=64>EMEA</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP-COLOR: windowtext; WIDTH: 48pt; BORDER-LEFT-COLOR: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>East</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP-COLOR: windowtext; WIDTH: 48pt; BORDER-LEFT-COLOR: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>Rep10</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP-COLOR: windowtext; WIDTH: 48pt; BORDER-LEFT-COLOR: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>20716089</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP-COLOR: windowtext; WIDTH: 48pt; BORDER-LEFT-COLOR: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>No</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP-COLOR: windowtext; WIDTH: 48pt; BORDER-LEFT-COLOR: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>2</TD></TR><TR style=»HEIGHT: 15pt» height=20><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BORDER-LEFT: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP-COLOR: windowtext; WIDTH: 48pt; HEIGHT: 15pt; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 height=20 width=64>EMEA</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP-COLOR: windowtext; WIDTH: 48pt; BORDER-LEFT-COLOR: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>East</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP-COLOR: windowtext; WIDTH: 48pt; BORDER-LEFT-COLOR: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>Rep11</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP-COLOR: windowtext; WIDTH: 48pt; BORDER-LEFT-COLOR: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>20716090</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP-COLOR: windowtext; WIDTH: 48pt; BORDER-LEFT-COLOR: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>Yes</TD><TD style=»BORDER-BOTTOM: windowtext 0.5pt solid; BACKGROUND-COLOR: transparent; BORDER-TOP-COLOR: windowtext; WIDTH: 48pt; BORDER-LEFT-COLOR: windowtext; BORDER-RIGHT: windowtext 0.5pt solid» class=xl64 width=64>1</TD></TR></TBODY></TABLE>
I tried:
=IF(AND(E693<>»», I693<>»»,OR(E693=»No»,I693<=4,E693=»text»,I693=»text»)),1,»») — not working

Thanks in advance!

GTO

MrExcel MVP


  • #8

…The objective is to only bring back cells that have No in column E OR <=4 in column I. The problem is there are blank rows. How do I not include the blank cells?

I am probably mis-reading this, but if looking for «No» in Col E, I was thinking just check Col I for the blanks?

=ABS(OR(E2=»No»,AND(I2<=4,I2<>»»)))

mark

shg

shg

MrExcel MVP


  • #9

Maybe =—AND(COUNTA(E2,I2)=2, OR(E2=»no», I2<=4))

  • #10

SHG, by jove I think that did it.

Thanks to you all for your help!

VBA ISNULL Function

ISNULL in VBA is a logical function used to determine whether a given reference is empty or NULL. That is why the name ISNULL is an inbuilt function that gives us True or False as a result. Based on the result, we can arrive at conclusions. For example, if the reference is empty, it returns a True or False value.

Finding the errors is not the easiest job in the world, especially in a huge spreadsheet finding them in between the data is almost impossible. Finding the NULL value in the worksheet is one of the frustrating jobs. To resolve this problem, we have a function called “ISNULL” in VBA.

This article will show you how to use the “ISNULL” function in VBA.

ISNULL is a built-in function in VBA and is categorized as an Information function in VBA that returns the result in Boolean type, i.e., either TRUE or FALSE.

If the testing value is “NULL, ” it returns TRUE or will return FALSE. This function is available only with VBA. We cannot use this with the Excel worksheet function. However, we can use this function in any sub procedure and function procedure.

Table of contents
  • VBA ISNULL Function
    • Syntax
    • Examples of ISNULL Function in VBA
      • Example #1
      • Example #2
      • Example #3
      • Example #4
    • Recommended Articles

VBA ISNULL

Syntax

Take a look at the syntax of the ISNULL function.

ISNULL Formula

  • This function has only one argument, i.e., “Expression.”
  • An expression is nothing but the value we are testing; the value could be a cell referenceCell reference in excel is referring the other cells to a cell to use its values or properties. For instance, if we have data in cell A2 and want to use that in cell A1, use =A2 in cell A1, and this will copy the A2 value in A1.read more, direct value, or variable assigned value.
  • The Null indicates that the expression or variable does not contain valid data. Null is not the empty value because VBA thinks the variable value has not yet been started and does not treat it as Null.

Examples of ISNULL Function in VBA

Below are examples of the VBA ISNULL function.

Example #1

Start with a simple VBA ISNULL example. First, check whether the value Excel VBA is NULL. The below code is the demonstration code for you.

Code:

Sub IsNull_Example1()
'Check the value "Excel VBA" is null or not
'Declare two Variables
'One is to store the value
'Second one is to store the result

Dim ExpressionValue As String
Dim Result As Boolean

ExpressionValue = "Excel VBA"

Result = IsNull(ExpressionValue)

'Show the result in message box
MsgBox "Is the expression is null? : " & Result, vbInformation, "VBA ISNULL Function Example"

End Sub

VBA ISNULL Example 1

When you run this code using the F5 key or manually, we will get the result as “FALSE” because the supplied value “Excel VBA” is not a NULL value.

VBA ISNULL Example 1-1

Example #2

Now, check whether the value “47895” is NULL or not. Below is the code to demonstrate the formula.

Code:

Sub IsNull_Example2()
'Check the value 47895 is null or not

'Declare two Variables
'One is to store the value
'Second one is to store the result
Dim ExpressionValue As String
Dim Result As Boolean

ExpressionValue = 47895

Result = IsNull(ExpressionValue)

'Show the result in message box
MsgBox "Is the expression is null? : " & Result, vbInformation, "VBA ISNULL Function Example"

End Sub

VBA ISNULL Example 2

Even this code will return the result as FALSE because the supplied expression value “47895” isn’t the NULL value.

VBA ISNULL Example 2-1

Example #3

Now, check whether the empty value is NULL or not. For example, the below code tests whether the empty string is NULL or not.

Code:

Sub IsNull_Example3()
'Check the value "" is null or not

'Declare two Variables
'One is to store the value
'Second one is to store the result
Dim ExpressionValue As String
Dim Result As Boolean

ExpressionValue = ""

Result = IsNull(ExpressionValue)

'Show the result in message box
MsgBox "Is the expression is null? : " & Result, vbInformation, "VBA ISNULL Function Example"

End Sub

Example 3

This formula also returns FALSE because VBA treats the empty value as a variable that is uninitialized yet and one cannot consider it as a NULL value.

Example 3-1

Example #4

Now, we will assign the word “Null” to the variable “ExpressionValue” and see the result.

Code:

Sub IsNull_Example4()
'Check the value "" is null or not

'Declare two Variables
'One is to store the value
'Second one is to store the result
Dim ExpressionValue As Variant
Dim Result As Boolean

ExpressionValue = Null

Result = IsNull(ExpressionValue)

'Show the result in message box
MsgBox "Is the expression is null? : " & Result, vbInformation, "VBA ISNULL Function Example"

End Sub

VBAISNULL Example 4

Run this code manually or use the F5 key. Then, this code will return TRUE because the supplied value is NULL.

VBA ISNULL Example 4-1

You can download this VBA ISNULL Function template here – VBA ISNULL Excel Template

Recommended Articles

This article has been a guide to VBA ISNULL. Here, we learn how to use the VBA ISNULL function to find the null values in Excel Worksheet, along with practical examples and downloadable codes. Below are some useful Excel articles related to VBA: –

  • CSTR in Excel VBA
  • Count Function in VBA
  • AutoFill in VBA
  • Random Numbers in VBA
  • VBA Save As

Null — это тип ошибки, которая возникает в Excel, когда две или более ссылки на ячейки, указанные в формулах, неверны или позиция, в которой они были размещены, неверна, если мы используем пробел в формулах между двумя ссылками на ячейки, мы столкнемся с нулевой ошибкой, там Есть две причины возникновения этой ошибки: одна — если мы использовали неправильную ссылку на диапазон, а другая — когда мы использовали оператор пересечения, который является символом пробела.

Нулевой в Excel

NULL — это не что иное, как ничего или пустое значение в excel. Обычно, когда мы работаем в excel, мы сталкиваемся с множеством NULL или пустых ячеек. Мы можем использовать формулу и выяснить, является ли конкретная ячейка пустой (NULL) или нет.

У нас есть несколько способов найти NULL-ячейки в Excel. В сегодняшней статье мы рассмотрим работу со значениями NULL в Excel.

Как определить, какая ячейка на самом деле пустая или пустая? Да, конечно, нам просто нужно посмотреть на конкретную ячейку и принять решение. Давайте откроем для себя множество методов поиска нулевых ячеек в Excel.

Функция ISBLANK для поиска значения NULL в Excel

В Excel у нас есть встроенная функция ISBLANK function, которая может находить пустые ячейки на листе. Давайте посмотрим на синтаксис функции ISBLANK.

Синтаксис прост и понятен. Значение — это не что иное, как ссылка на ячейку, которую мы проверяем, является ли она пустой или нет.

Поскольку ISBLANK — это логическая функция Excel, в результате она вернет TRUE или FALSE. Если ячейка ПУСТО (NULL), она вернет ИСТИНА, иначе она вернет ЛОЖЬ.

Примечание. ISBLANK будет рассматривать один пробел как один символ, и если в ячейке есть только пробел, он будет распознаваться как непустая или непустая ячейка.

# 1 — Как найти NULL ячейки в Excel?

Вы можете скачать этот шаблон Excel с нулевым значением здесь — Шаблон Excel с нулевым значением

Предположим, у вас есть следующие значения в файле Excel, и вы хотите протестировать все пустые ячейки в диапазоне.

Откроем формулу ISBLANK в ячейке B2.

Выберите ячейку A2 в качестве аргумента. Поскольку есть только один аргумент, закройте скобку

Мы получили результат, как показано ниже:

Перетащите формулу в другие оставшиеся ячейки.

Мы получили результаты, но посмотрим на ячейку B7, хотя в ячейке A7 нет значения, формула все же вернула результат как False, т.е. ненулевую ячейку.

Давайте применим функцию LEN в Excel, чтобы найти номер. символов в ячейке.

Он считает нет. символов и дает результат.

Функция LEN вернула номер символа в ячейке A7 как 1. Итак, в нем должен быть символ.

Теперь отредактируем ячейку. Итак, мы нашли здесь пробел, давайте удалим пробел, чтобы формула показывала точные результаты.

Я удалил пробел, и формула ISBLANK вернула результат как ИСТИНА, и даже функция LEN сообщает, что в ячейке A7 нет символов.

# 2 — Быстрый способ поиска NULL ячеек в Excel

Мы видели традиционный способ поиска пустых ячеек с помощью формулы. Без использования функции ISBLANK мы можем найти нулевые ячейки.

Откроем формулу со знаком равенства (=).

После равенства выбирает ячейку A2 в качестве ссылки.

Теперь откройте еще один знак равенства после ссылки на ячейку.

Теперь упомяните открытые двойные кавычки и закрытые двойные кавычки. («»)

Знаки, заключенные в двойные кавычки («»), указывают, является ли выбранная ячейка ПУСТОЙ или нет. Если выбранная ячейка — ПУСТО (NULL), мы получим ИСТИНА, иначе мы получим ЛОЖЬ.

Перетащите формулу в оставшиеся ячейки.

Мы видим, что в ячейке B7 мы получили результат «Истина». Это означает, что это пустая ячейка.

# 3 — Как заполнить наши собственные значения до NULL ячеек в Excel?

Мы видели, как найти NULL-ячейки на листе Excel. В нашей формуле в результате мы могли получить только ИСТИНА или ЛОЖЬ. Но мы также можем получить свои собственные значения для NULL ячеек.

Рассмотрим в качестве примера данные ниже.

 

Шаг 1. Сначала откройте условие IF.

Шаг 2: Здесь нам нужно провести логический тест, т.е. нам нужно проверить, является ли ячейка NULL или нет. Так что примените A2 = ””.

Шаг 3: Если логический тест — ИСТИНА (ИСТИНА означает, что ячейка НУЛЯ), нам нужен результат как «Значения не найдены».

Шаг 4: Если логический тест — ЛОЖЬ (ЛОЖЬ означает, что ячейка содержит значения), то нам нужно то же значение ячейки.

Мы получили результат как то же значение ячейки.

Шаг 5: Перетащите формулу в оставшиеся ячейки.

Итак, у нас есть собственное значение « Никаких значений не найдено» для всех ячеек NULL.

То, что нужно запомнить

  • Даже пробел будет считаться символом и рассматриваться как непустая ячейка.
  • Вместо ISBLANK мы также можем использовать двойные кавычки («») для проверки NULL ячеек.
  • Если ячейка кажется пустой, а формула показывает ее как ненулевую ячейку, вам необходимо проверить количество символов с помощью функции LEN.

Проверка переменных и выражений с помощью встроенных функций VBA Excel: IsArray, IsDate, IsEmpty, IsError, IsMissing, IsNull, IsNumeric, IsObject.

Проверка переменных и выражений

Встроенные функции VBA Excel — IsArray, IsDate, IsEmpty, IsError, IsMissing, IsNull, IsNumeric, IsObject — проверяют значения переменных и выражений на соответствие определенному типу данных или специальному значению.

Синтаксис функций для проверки переменных и выражений:

Expression — выражение, переменная или необязательный аргумент для IsMissing.

Все функции VBA Excel для проверки переменных и выражений являются логическими и возвращают значение типа Boolean — True или False.

Функция IsArray

Описание функции

Функция IsArray возвращает значение типа Boolean, указывающее, является ли переменная массивом:

  • True — переменная является массивом;
  • False — переменная не является массивом.

Пример с IsArray

Sub Primer1()

Dim arr1(), arr2(1 To 10), arr3

    Debug.Print IsArray(arr1)  ‘Результат: True

    Debug.Print IsArray(arr2)  ‘Результат: True

    Debug.Print IsArray(arr3)  ‘Результат: False

arr3 = Array(1, 2, 3, 4, 5)

    Debug.Print IsArray(arr3)  ‘Результат: True

End Sub

Как показывает пример, функция IsArray возвращает True и в том случае, если переменная только объявлена как массив, но еще не содержит значений.

Функция IsDate

Описание функции

Функция IsDate возвращает логическое значение, указывающее, содержит ли переменная значение, которое можно интерпретировать как дату:

  • True — переменная содержит дату, выражение возвращает дату, переменная объявлена с типом As Date;
  • False — в иных случаях.

Пример с IsDate

Sub Primer2()

Dim d1 As String, d2 As Date

    Debug.Print IsDate(d1)  ‘Результат: False

    Debug.Print IsDate(d2)  ‘Результат: True

d1 = «14.01.2023»

    Debug.Print IsDate(d1)  ‘Результат: True

    Debug.Print IsDate(Now)  ‘Результат: True

End Sub

Функция IsEmpty

Описание функции

Функция IsEmpty возвращает значение типа Boolean, указывающее, содержит ли переменная общего типа (As Variant) значение Empty:

  • True — переменная содержит значение Empty;
  • False — переменной присвоено значение, отличное от Empty.

Пример с IsEmpty

Sub Primer3()

Dim s As String, v As Variant

    Debug.Print IsEmpty(s)  ‘Результат: False

    Debug.Print IsEmpty(v)  ‘Результат: True

v = 125

    Debug.Print IsEmpty(v)  ‘Результат: False

Range(«A1»).Clear

    Debug.Print IsEmpty(Range(«A1»))  ‘Результат: True

Range(«A1») = 123

    Debug.Print IsEmpty(Range(«A1»))  ‘Результат: False

End Sub

Как видно из примера, функцию IsEmpty можно использовать для проверки ячеек на содержание значения Empty (пустая ячейка общего формата).

Функция IsError

Описание функции

Функция IsError возвращает логическое значение, указывающее, является ли аргумент функции значением ошибки, определенной пользователем:

  • True — аргумент функции является значением ошибки, определенной пользователем;
  • False — в иных случаях.

Пользователь может определить одну или несколько ошибок для своей процедуры или функции с рекомендациями действий по ее (их) исправлению. Возвращается номер ошибки с помощью функции CVErr.

Пример с IsError

Допустим, пользователь определил, что ошибка №25 означает несоответствие аргумента функции Vkuba числовому формату:

Function Vkuba(x)

    If IsNumeric(x) Then

        Vkuba = x ^ 3

    Else

        Vkuba = CVErr(25)

    End If

End Function

Sub Primer4()

    Debug.Print Vkuba(5)  ‘Результат: 125

    Debug.Print IsError(Vkuba(5))  ‘Результат: False

    Debug.Print Vkuba(«пять»)  ‘Результат: Error 25

    Debug.Print IsError(Vkuba(«пять»))  ‘Результат: True

End Sub

Функция IsMissing

Описание функции

Функция IsMissing возвращает значение типа Boolean, указывающее, был ли необязательный аргумент типа данных Variant передан процедуре:

  • True — если в процедуру не было передано значение для необязательного аргумента;
  • False — значение для необязательного аргумента было передано в процедуру.

Пример с IsMissing

Function Scepka(x, Optional y)

    If Not IsMissing(y) Then

        Scepka = x & y

    Else

        Scepka = x & » (а необязательный аргумент не подставлен)»

    End If

End Function

Sub Primer5()

    Debug.Print Scepka(«Тропинка», » в лесу»)  ‘Результат: Тропинка в лесу

    Debug.Print Scepka(«Тропинка»)  ‘Результат: Тропинка (а необязательный аргумент не подставлен)

End Sub

Функция IsNull

Описание функции

Функция IsNull возвращает логическое значение, указывающее, является ли Null значением переменной или выражения:

  • True — значением переменной или выражения является Null;
  • False — в иных случаях.

Пример с IsNull

Функция IsNull особенно необходима из-за того, что любое условие с выражением, в которое входит ключевое слово Null, возвращает значение False:

Sub Primer6()

Dim Var

Var = Null

    If Var = Null Then Debug.Print Var  ‘Результат: «»

    If Var <> Null Then Debug.Print Var  ‘Результат: «»

    If IsNull(Var) Then Debug.Print Var  ‘Результат: Null

End Sub

Функция IsNumeric

Описание функции

Функция IsNumeric возвращает значение типа Boolean, указывающее, можно ли значение выражения или переменной рассматривать как число:

  • True — если аргумент функции может рассматриваться как число;
  • False — в иных случаях.

Пример с IsNumeric

Sub Primer7()

Debug.Print IsNumeric(«3,14»)  ‘Результат: True

Debug.Print IsNumeric(«четыре»)  ‘Результат: False

End Sub

Функция IsObject

Описание функции

Функция IsObject возвращает логическое значение, указывающее, является ли переменная объектной:

  • True — переменная содержит ссылку на объект или значение Nothing;
  • False — в иных случаях.

Функция IsObject актуальна для переменных типа Variant, которые могут содержать как ссылки на объекты, так и значения других типов данных.

Пример с IsObject

Sub Primer8()

Dim myObj As Object, myVar As Variant

    Debug.Print IsObject(myObj)  ‘Результат: True

    Debug.Print IsObject(myVar)  ‘Результат: False

Set myVar = ActiveSheet

    Debug.Print IsObject(myVar)  ‘Результат: True

End Sub


Понравилась статья? Поделить с друзьями:
  • Excel if value is found in column
  • Excel if value in range of values
  • Excel if value in list of values
  • Excel if value in cell is in a range
  • Excel if value format cell