98.7% Of all customers recommend us, we're so confident about our results we publish all reviews and stats
View Live Stats View ReviewsForum home » Delegate support and help forum » Microsoft Excel Training and help » IF funtion
IF funtion
Resolved · Medium Priority · Version 2013
Siobhan has attended:
Excel Intermediate course
Excel Advanced course
Project Management - Framework & Processes course
PowerPoint Intermediate Advanced course
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
Training information:
See also:
Welcome. Please choose your application (eg. Excel) and then post your question. Our Microsoft Qualified trainers will then respond within 24 hours (working days). Frequently Asked Questions
Any suggestions, questions or comments? Please post in the Improve the forum thread. |
Excel tip:Use RANDBETWEEN to generate random numbersThere may be occassions where you need to generate random numbers in your spreadsheet. Use the RANDBETWEEN function to generate random numbers between two values that you specify. |