[mso] Re: Problems with Vlookup in Excel
- From: Thomas Hutchins <hutch99999@xxxxxxxxx>
- To: mso@xxxxxxxxxxxxx
- Date: Thu, 25 May 2006 14:36:02 -0700 (PDT)
I also have encountered this problem occasionally, and wrote the following
macro to quickly send the F2 Enter keystrokes to all the cells. Select all the
cells to be "fixed", then run the macro.
Sub ReEnter()
'Sometimes a Vlookup won't work unless the items being looked up are re-entered.
'Don't know why this is so. Pressing F2, then Enter does the trick. This macro
'sends an F2 and Enter to every cell in the selected range.
Dim c As Range, msg3 As String, Done As Long
On Error GoTo REerr1
Done& = 0
For Each c In Selection
SendKeys "{F2}"
SendKeys "{Enter}"
Done& = Done& + 1
If Done& > Selection.Count Then Exit For
Next c
Exit Sub
REerr1:
msg3$ = "Is this a protected sheet? Is a workbook open?"
MsgBox msg3$, 0, "ReEnter macro failed"
End Sub
Hope this helps,
Hutch
Jon Ulrich <cptcoolmo@xxxxxxxxx> wrote:
Hello all,
I just joined the mailing list off the recommendation
of http://www.personal-computer-tutor.com/support.htm.
I have mastered the basics of Vlookups in Excel,
however I occasionally encounter a problem when
working with data exported from MFG Pro (if you are
unfamiliar with this software, it is unimportant).
In a nutshell, the cells which I am trying to populate
using Vlookup will read #N/A- until I go to the column
from which it is drawing data, change its format to
General/Number, highlight an individual cell, hit F2,
and hit then enter. I have to do this for each cell
in the column. As you can imagine, completing the
process for every cell is rather tedious and I'm
curious if anyone knows a better way.
There are no blank spaces at the end of each cell of
data in the column, although some cells have an
apostrophe at the beginning (these are few in number).
Perhaps I will request a method of filtering out the
apostrophes in a later email ;)
Thanks for the help, let me know if I can provide any
further assistance, and have a great day!
Jon - Skillman, NJ
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or
MicrosoftOffice@xxxxxxxxxxxxxxxx
To send mail to the group, simply address it to mso@xxxxxxxxxxxxx
To Unsubscribe from this group, visit the group's homepage and use the dropdown
menu at the top. This will allow you to unsubscribe your email address or
change your email settings to digest or vacation (no mail).
http://www.freelists.org/webpage/mso
To be able to use the files section for sharing files with the group, send a
request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation with
instructions. Once you are a member of the files group, you can go here to
upload/download files:
http://www.smartgroups.com/vault/msofiles
If you are using Outlook and you see a lot of unnecessary code in your email
messages, read these instructions that explain why and how to fix it:
http://personal-computer-tutor.com/abc3/v28/greg28.htm
*************************************************************
---------------------------------
Feel free to call! Free PC-to-PC calls. Low rates on PC-to-Phone. Get Yahoo!
Messenger with Voice
*************************************************************
You are receiving this mail because you subscribed to mso@xxxxxxxxxxxxx or
MicrosoftOffice@xxxxxxxxxxxxxxxx
To send mail to the group, simply address it to mso@xxxxxxxxxxxxx
To Unsubscribe from this group, visit the group's homepage and use the dropdown
menu at the top. This will allow you to unsubscribe your email address or
change your email settings to digest or vacation (no mail).
http://www.freelists.org/webpage/mso
To be able to use the files section for sharing files with the group, send a
request to mso-moderators@xxxxxxxxxxxxx and you will be sent an invitation with
instructions. Once you are a member of the files group, you can go here to
upload/download files:
http://www.smartgroups.com/vault/msofiles
If you are using Outlook and you see a lot of unnecessary code in your email
messages, read these instructions that explain why and how to fix it:
http://personal-computer-tutor.com/abc3/v28/greg28.htm
*************************************************************
- References:
- [mso] Problems with Vlookup in Excel
- From: Jon Ulrich
Other related posts:
- » [mso] Problems with Vlookup in Excel
- » [mso] Re: Problems with Vlookup in Excel
- » [mso] Re: Problems with Vlookup in Excel
- [mso] Problems with Vlookup in Excel
- From: Jon Ulrich