Public Schedule Face-to-Face & Online Instructor-Led Training - View dates & book

if funtion

ResolvedVersion 2013

IF funtion

Hi there,

I am wanting to use the =IF function to say if a cell =numbers then true = cell*1.2, false = NA

This is because I am adding in PO amounts, but some cells aren't just a number and contain text so are coming up with #VALUE.

thus my IF function looks like

=IF(A1=number and not text, "NA", B2*A1)

what do I put in for 'numbers and not text'?

Thank you,
Siobhan

RE: IF funtion

Hi Siobhan

Thanks for getting in touch. This is easier if you use an IFERROR function. You'd put something like this:

=IFERROR(B2*A1, "NA")

If there is an issue with the multiplication, it will write "NA".

Kind regards

Gary Fenn
Microsoft Office Specialist Trainer

Tel: 0207 987 3777
Best STL - https://www.stl-training.co.uk
98%+ recommend us

London's leader with UK wide delivery in Microsoft Office training and management training to global brands, FTSE 100, SME's and the public sector

RE: IF funtion

Hi Siobhan

You can use an additional function to deal with values that normally create an error.

This function is called iferror()

Its job is to step in if something causes the results of your formula to generate an error.

You could use it as follows:

=iferror(YOUR-IF-FORMULA),"")

replace YOUR-IF-FORMULA with your current IF formula.
The part after the comma will return an empty value if the formula runs into an error. If you would prefer to return zero just change the formula as follows:

=iferror(YOUR-IF-FORMULA),"0")

Let me know if this works for you or if you have any further questions.

Kind regards,
Andrew

Excel tip:

Quickly insert a function

In Excel 97 and 2000 it was known as the Paste Function dialog box, these days it's known as the Insert Function dialog box. Regardless, one has to choose Insert|Function. or the fx button to open it up. There is, however, a non-mousey way to get hold of the Insert Function dialog box: press Shift+F3 in a blank cell to open the Insert Function dialog.

Press Shift+F3 after a function name and open bracket to open the Function Arguments dialog. For example, type =VLOOKUP( into a cell and press Shift+F3 to obtain a detailed description of VLOOKUP's arguments.

View all Excel hints and tips

Connect with us:

0207 987 3777

Call for assistance

Request Callback

We will call you back

Server loaded in 0.11 secs.