We’d like to remind Forumites to please avoid political debate on the Forum.
This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.
📨 Have you signed up to the Forum's new Email Digest yet? Get a selection of trending threads sent straight to your inbox daily, weekly or monthly!
The Forum now has a brand new text editor, adding a bunch of handy features to use when creating posts. Read more in our how-to guide
Another Excel Query
Comments
-
You could wrap an IF statement around it. Gets a bit messy, but it would look something like this:
=IF(ISNA(VLOOKUP($A$13,G1:H14,2,FALSE)),"No Match",VLOOKUP($A$13,G1:H14,2,FALSE))
Not sure if the op's sorted the problem yet but since I've been watching all these Excel queries.
I recently had a similar issue. Looking in another workbook sometimes returned N/A when using
=VLOOKUP(G$1,sizes.xlsx!sets,2,FALSE)
My best solution so far (which I saw mentioned recently on this forum
) to add IFERROR followed by the text of your choice.
=IFERROR(VLOOKUP(G$1,sizes.xlsx!sets,2,FALSE),"text")
Unfortunatly I've not been able to use it at work since we're still using '2003 but, as has already been mentioned the op seems to be using a later version.0 -
VoucherMan wrote: »Not sure if the op's sorted the problem yet but since I've been watching all these Excel queries.
I recently had a similar issue. Looking in another workbook sometimes returned N/A when using
=VLOOKUP(G$1,sizes.xlsx!sets,2,FALSE)
My best solution so far (which I saw mentioned recently on this forum
) to add IFERROR followed by the text of your choice.
=IFERROR(VLOOKUP(G$1,sizes.xlsx!sets,2,FALSE),"text")
Unfortunatly I've not been able to use it at work since we're still using '2003 but, as has already been mentioned the op seems to be using a later version.
That is elegant and works! Nice one.
I’m a Forum Ambassador and I support the Forum Team on the In My Home MoneySaving, Energy and Techie Stuff boards. If you need any help on these boards, do let me know. Please note that Ambassadors are not moderators. Any posts you spot in breach of the Forum Rules should be reported via the report button, or by emailing forumteam@moneysavingexpert.com.
All views are my own and not the official line of MoneySavingExpert.
0 -
I've had excel return #na when vlookup points at empty cells. Not a very elegant solution but I've pre-populated empty cells with a . (dot)
Didn't get as far as play with iferror but may next time I come across the same problem again.Apparently I'm 10 years old on MSE. Happy birthday to me...etc0 -
Another option is to use conditional formatting to hide the error:
http://support.microsoft.com/kb/182189Stompa0
This discussion has been closed.
Confirm your email address to Create Threads and Reply
Categories
- All Categories
- 353.5K Banking & Borrowing
- 254.1K Reduce Debt & Boost Income
- 455K Spending & Discounts
- 246.5K Work, Benefits & Business
- 602.8K Mortgages, Homes & Bills
- 178K Life & Family
- 260.5K Travel & Transport
- 1.5M Hobbies & Leisure
- 16K Discuss & Feedback
- 37.7K Read-Only Boards