We'd like to remind Forumites to please avoid political debate on the Forum... Read More »
We're aware that some users are experiencing technical issues which the team are working to resolve. See the Community Noticeboard for more info. Thank you for your patience.
📨 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!
Help with excel formulas
Options
Comments
-
Sandtree said:Were_Doomed said:
That should also work, but is actually a few more characters to type/copy.Sandtree said:
This is how most people write the above but I wonder why the below formula isnt more commonly used? In principle it feels as if it should be more efficient....Were_Doomed said:If there is no corresponding value returned by the VLOOKUP you'll get a #N/A result. You can handle this by preceding the VLOOKUP formula by using:
=IF(ISNA(VLOOKUP(etc.)),"The value you want to show for a #N/A result",VLOOKUP(etc.))
=IFERROR(VLOOKUP(etc),"The value you want to show for a #N/A result")
if(isna() -v- iferror( = 1 character save
,vlookup(etc) -v- '' = 13 or more characters saved1 -
I feel one of the points I was making was missed.As was written in a subsequent post vlookup returns the first match in the list. I presume here that having two identical entries is a data entry error, thus picking the first could therefore be incorrect and is an error -not an Excel error but a potential erroneous result.Further error trapping is desirable (in this case to find duplicates) such as sorting the list, inspecting it or highlighting equality in sequential items.That is only one example of an unforseen error that may not even be obvious in use. I believe considering what these might be and planning for them in a design of a workbook to be as important, may, more important than those errors that become obvious! Remember the missing covid records......?1
-
Heedtheadvice said:I feel one of the points I was making was missed.As was written in a subsequent post vlookup returns the first match in the list. I presume here that having two identical entries is a data entry error, thus picking the first could therefore be incorrect and is an error -not an Excel error but a potential erroneous result.Further error trapping is desirable (in this case to find duplicates) such as sorting the list, inspecting it or highlighting equality in sequential items.That is only one example of an unforseen error that may not even be obvious in use. I believe considering what these might be and planning for them in a design of a workbook to be as important, may, more important than those errors that become obvious! Remember the missing covid records......?
Also how the text values are entered - manually or imported from another system?0
Confirm your email address to Create Threads and Reply

Categories
- All Categories
- 350.8K Banking & Borrowing
- 253.1K Reduce Debt & Boost Income
- 453.5K Spending & Discounts
- 243.8K Work, Benefits & Business
- 598.7K Mortgages, Homes & Bills
- 176.8K Life & Family
- 257.1K Travel & Transport
- 1.5M Hobbies & Leisure
- 16.1K Discuss & Feedback
- 37.6K Read-Only Boards