Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using "If cell contains #N/A" as a formula condition.

I need help on my Excel sheet. How can I declare the following IF condition properly?

if A1 = "n/a" then C1 = B1 else if A1 != "n/a" or has value(int) then C1 = A1*B1 
like image 578
bobbyjones Avatar asked Jan 07 '14 02:01

bobbyjones


People also ask

How do you check if a cell contains a value in Excel?

The Excel ISNUMBER function returns TRUE when a cell contains a number, and FALSE if not. You can use ISNUMBER to check that a cell contains a numeric value, or that the result of another function is a number. The Excel FIND function returns the position (as a number) of one text string inside another.


2 Answers

Input the following formula in C1:

=IF(ISNA(A1),B1,A1*B1)

Screenshots:

When #N/A:

enter image description here

When not #N/A:

enter image description here

Let us know if this helps.

like image 128
NullDev Avatar answered Sep 22 '22 11:09

NullDev


You can also use IFNA(expression, value)

like image 41
Micah Chaney Avatar answered Sep 24 '22 11:09

Micah Chaney