Get instant live expert help with Excel or Google Sheets
“My Excelchat expert helped me in less than 20 minutes, saving me what would have been 5 hours of work!”

#### Post your problem and you’ll get Expert help in seconds.

Your message must be at least 40 characters
Our professional Expert are available now. Your privacy is guaranteed.

# How to Use the NA function

We can use the NA function to generate the #N/A error value. #N/A stands for “Not available”. The NA function is used to identify empty cells or any problem that arises in our calculation. The steps below will walk through its use.

Figure 1: How to Use the NA function

`=NA()`

## Formula

`=IF(A4="",NA(),A4*B4)`

## Setting up the Data

• We will set up the data by inputting the WEIGHT into Column A
• We will input the cost per kg into Column B
• Column C is where we want the formula to return the result with the #N/A error if there is an issue with our parameters

Figure 2: Setting up the Data

## Using the NA function

• We will click on Cell C4
• We will insert the formula below into the cell
`=IF(A4="",NA(),A4*B4)`
• We will press the enter key

Figure 3: Output for Cell C4

• We will click on Cell C4 again
• We will double-click on the fill handle (the small plus sign at the bottom right of Cell C4) and drag down to copy the formula into the other cells

Figure 4: Output of the Formula in Column C

## Explanation

`=IF(A4="",NA(),A4*B4)`

In this formula, the argument A4*B4 will return a number only if Cell A4 has a numeric value. If Cell A4 is empty, the #N/A error is returned as the result.

## Instant Connection to an Expert through our Excelchat Service

Most of the time, the problem you will need to solve will be more complex than a simple application of a formula or function. If you want to save hours of research and frustration, try our live Excelchat service! Our Excel Experts are available 24/7 to answer any Excel question you may have. We guarantee a connection within 30 seconds and a customized solution within 20 minutes.

### Did this post not answer your question? Get a solution from connecting with the expert.

Solution examples
hello, i am a web developer with woocomerce. i am finishing off a large (ish) store and are looking to give him a launch present. I have an excell spreadsheet of the product data, 600 row, 60 columns. I want each cell to have a colour depending on the number held, use as an hex value, i dont mind really. If its text then a one colour, if an empty cell another. I am kind of looking like the DNA of the shop.
Solved by X. D. in 11 mins
I have multiple sheets on one document. One sheet 1 there are about 390 individuals by name. On each subsequent sheet, they are grouped in different categories. Is there a way that if I fill one with color on sheet 1, it will autofill them on the other sheets?
Solved by F. H. in 20 mins
I have 2 columns of data. Column A with a list of items (say computer SN) and Column B with a list of Sub items (accessories). An Item (column A) can have multiple sub items (column B) and vice versa. ColumnA ColumnB Item1 SubItem1 Item2 Subitem3 Item1 Subitem3 Item3 Subitem1 There are about 250 entries. I want to create a table with unique entries. SubItem1 SubItem2 Subitem3 Item1 YES No Yes Item2 No Yes Yes Item3 Yes Yes No Not sure how to use vlookup or Index/Match.
Solved by C. C. in 37 mins
Hi please see the formula in column AU on the attached. I am trying to work out why I get #N/A whenever the value in AP = "No Work Orders". Is it something to do with the fact that this comes from the formula in AT?
Solved by A. J. in 20 mins
I am trying to add a name to column C when column B is null =IF(B2 is null,E2,B2) I am getting the #NAME?
Solved by O. S. in 6 mins