I am using VLOOKUP to find school subject names from their codes. The workbook in which I do the lookup has several named ranges, when I go to this book via the Window menu then go to the Insert menu / Names, sometimes the Paste option is available but mostly it is grayed out. Why is this? It was not a problem in XL95 where the name box was available when you went to the lookup book, but Microsoft in their wisdom eliminated this in XL97
![]() |
Patch reliability is unclear, but widespread attacks make patching prudent. Go ahead and patch, but watch out for potential problems. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
-
VLOOKUP
Home » Forums » AskWoody support » Productivity software by function » MS Excel and spreadsheet help » VLOOKUP
- This topic has 14 replies, 5 voices, and was last updated 23 years, 11 months ago.
AuthorTopicWSMichael Evans
AskWoody LoungerApril 10, 2001 at 12:23 am #354857Viewing 4 reply threadsAuthorReplies-
WSJohnBF
AskWoody Lounger -
WSMichael Evans
AskWoody LoungerApril 10, 2001 at 10:51 pm #522353SubjectCodes.xls contains the subject names and codes, and the range with all the data is named ‘Codes’.
Trial.xls contains a few codes.
Open both files.
If in Trial.xls, cell A2, you type “=VLOOKUP(A1,” (without the “s), then go to the Window Menu and choose SubjectCodes.xls, then Insert/Names, you will find all the options grayed out. However on occasion I have found the Paste option available, and on choosing this I get a list of Range Names which I can choose from, in the present case I would choose ‘Codes’. This is very convenient (and in XL95 you could do this everytime because the Name Box was available), but I cannot work out why in XL97 sometimes it is available and sometimes not.
-
WSMichael Evans
AskWoody Lounger -
WSAndrew Cronnolly
AskWoody LoungerApril 10, 2001 at 11:01 pm #522355When you “=VLOOKUP(A1,”, and then goto the other book, try pressing F5 (or Ctrl-G) and you should get a list of named ranges, and you click on the appropriate choice. I know it is not the answer to your question, but I cannot explain the behaviour, which I have encountered myself from time to time.
Andrew C
-
WSMichael Evans
AskWoody Lounger -
WSSuzanna
AskWoody LoungerApril 13, 2001 at 12:13 am #522703A really quick way is to press F3 to paste in the named range. I haven’t ever had the greyed out stuff when using this method. As an aside, you have included the headings Code and Name in the named range (in your attachment) and this can produce incorrect results because the lookup column (A) has to be sorted to work properly. For instance I got #N/A in B1 when it looked up A1, but from B2 onwards it worked fine.
-
WSMichael Evans
AskWoody LoungerApril 15, 2001 at 12:42 pm #522932 -
WSSuzanna
AskWoody LoungerApril 15, 2001 at 10:41 pm #522969That sounds thrilling Michael but I’m not sure I understand exactly how you would do that (set range_lookup to false). I do lots of lookup tables and also have spreadsheets where extra info gets entered into the lookup range by other people which then goes haywire if the person forgets to sort it. Could you give an example please?
Thanks in advance.
-
WSepic60sman
AskWoody LoungerApril 15, 2001 at 11:55 pm #522973Suzanna:
The “False” statement is for VLOOKUP and HLOOKUP. It is the last term in the list of arguments for the functions. As far as your problems with “where extra info gets entered into the lookup range by other people”, if you define your named range using =offset($col$Row,0,0,counta($X:$X),N) (in the REFERS TO: window of the Dialog box), where $col$Row is the upper left corner of your data table, N is the width of your table, and X is a column within your data table with no entries above the column header and none below the last row of data. If $col$Row is a header for the first column of data, all your data will always be included with headers no matter how many rows others may add. You could then, for example, use paste that named range as a Pivot Table (which requires the headers). If you do not want the headers drop down one line and use the following for the Named Range: =offset($col$Row,0,0,counta($X:$X),N).
I have probably given you more information than you wanted but I have had a few questions about how to do this and thought it would be a good opportunity to put it out there.
Stephen -
WSSuzanna
AskWoody Lounger
-
-
-
-
WSAndrew Cronnolly
AskWoody LoungerMay 17, 2001 at 12:22 pm #526465Hi Charlene,
I tried to replicate your data structures, and can see what you mean. The MATCH function works fine when specific text is being searched, but there does seem to be a problem with non integer numbers. I think it may have something to do with sorting but without actual sample data cannot really be sure. What sort of numbers are typically in D2 and P2, and what numbers are in Z9 to AH9 ?
If you could post a sample sheet with dummy data I could see if I can locate the problem.
Andrew
WSAndrew Cronnolly
AskWoody LoungerWSAndrew Cronnolly
AskWoody LoungerMay 18, 2001 at 11:37 am #526627Charlene,
Insofar as you have a problem, it is with VLOOKUP rather that match. When you pass VLOOKUP an offset parameter, you really need to add 1 to it as passing 1 returns the actual value you are looking up. So the following slight amendment to your formula should fix it :
=VLOOKUP(S8,T11:AB15,MATCH(($P$2/$D$2),$U$10:$AB$10)+1)
Andrew
WSepic60sman
AskWoody LoungerMay 31, 2001 at 2:09 am #527907Charlene:
I really have the feeling that I should not have read this series of Posts. But I did. So, take a look at my revision of your Wkbk; it has the following changes:
1) I reversed rows T9;ab9 and T10:AB10;
2) I entered an alternate formula in cell B5 that seems to do what you want.
I did not test for all conditions due to time constraints and my ignorance of what your application is all about. I believe that MATCH function is a bit cranky and you can never really trust what EXCEL will come up with as a result of a math operation (e.g., try the following eq =IF(99-98.02=0.98,”yes”,”No”). This explains why I use “INT” function even though my condition says that the quotient is a whole number.
You may want to do some testing and modify as needed. You may also need to add an if statement to prevent the column in VLOOKUP from refering to cell AC10.
Good luck. Hope I did not confuse things more.
StephenViewing 4 reply threads -

Plus Membership
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Get Plus!
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Search Newsletters
Search Forums
View the Forum
Search for Topics
Recent Topics
-
Add serial device in Windows 11
by
Theodore Dawson
6 hours, 16 minutes ago -
Windows 11 users reportedly losing data due forced BitLocker encryption
by
Alex5723
7 hours, 15 minutes ago -
Cached credentials is not a new bug
by
Susan Bradley
10 hours, 49 minutes ago -
Win11 24H4 Slow!
by
Bob Bible
11 hours ago -
Microsoft hiking XBox prices starting today due to Trump’s tariffs
by
Alex5723
8 hours, 11 minutes ago -
Asus adds “movement sensor” to their Graphics cards
by
n0ads
13 hours, 11 minutes ago -
‘Minority Report’ coming to NYC
by
Alex5723
9 hours, 30 minutes ago -
Apple notifies new victims of spyware attacks across the world
by
Alex5723
21 hours, 52 minutes ago -
Tracking content block list GONE in Firefox 138
by
Bob99
21 hours, 17 minutes ago -
How do I migrate Password Managers
by
Rush2112
5 hours, 6 minutes ago -
Orb : how fast is my Internet connection
by
Alex5723
6 hours, 55 minutes ago -
Solid color background slows Windows 7 login
by
Alex5723
1 day, 9 hours ago -
Windows 11, version 24H2 might not download via Windows Server Updates Services
by
Alex5723
1 day, 8 hours ago -
Security fixes for Firefox
by
Susan Bradley
8 hours, 31 minutes ago -
Notice on termination of services of LG Mobile Phone Software Updates
by
Alex5723
1 day, 20 hours ago -
Update your Apple Devices Wormable Zero-Click Remote Code Execution in AirPlay..
by
Alex5723
2 days, 5 hours ago -
Amazon denies it had plans to be clear about consumer tariff costs
by
Alex5723
1 day, 20 hours ago -
Return of the brain dead FF sidebar
by
EricB
1 day, 7 hours ago -
Windows Settings Managed by your Organization
by
WSDavidO61
10 hours, 34 minutes ago -
Securing Laptop for Trustee Administrattor
by
PeachesP
6 hours, 59 minutes ago -
The local account tax
by
Susan Bradley
1 day, 8 hours ago -
Recall is back with KB5055627(OS Build 26100.3915) Preview
by
Alex5723
2 days, 18 hours ago -
Digital TV Antenna Recommendation
by
Win7and10
2 days, 10 hours ago -
Server 2019 Domain Controllers broken by updates
by
MP Support
3 days, 6 hours ago -
Google won’t remove 3rd party cookies in Chrome as promised
by
Alex5723
3 days, 7 hours ago -
Microsoft Manager Says macOS Is Better Than Windows 11
by
Alex5723
3 days, 11 hours ago -
Outlook (NEW) Getting really Pushy
by
RetiredGeek
2 days, 13 hours ago -
Steps to take before updating to 24H2
by
Susan Bradley
11 hours, 26 minutes ago -
Which Web browser is the most secure for 2025?
by
B. Livingston
2 days, 17 hours ago -
Replacing Skype
by
Peter Deegan
2 days, 6 hours ago
Recent blog posts
Key Links
S | M | T | W | T | F | S |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2025 by AskWoody Tech LLC. All Rights Reserved.