Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 08-09-2019, 09:35 AM
p45cal's Avatar
p45cal p45cal is offline Troubleshooting Searching for a Word in a List Windows 10 Troubleshooting Searching for a Word in a List Office 2016
Expert
 
Join Date: Apr 2014
Posts: 956
p45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond reputep45cal has a reputation beyond repute
Default

If I use Excel's Help on LOOKUP, ( LOOKUP function - Office Support ) amongst the informations is:
Important: The values in lookup_vector must be placed in ascending order: ..., -2, -1, 0, 1, 2, ..., A-Z, FALSE, TRUE; otherwise, LOOKUP might not return the correct value. Uppercase and lowercase text are equivalent.


To see what your lookup_vectors are, in the formula bar, select this section of the formula only:


1/SEARCH(Bead!A$2:A$94,E2)
and press F9 on the keyboard. You get this in the formula bar:
=LOOKUP(2,{#VALUE!;#VALUE!;#VALUE!;#VALUE!;#VALUE! ;#VALUE!;#VALUE!;#VALUE!;#VALUE!;#VALUE!;#VALUE!;# VALUE!;#VALUE!;#VALUE!;#VALUE!;#VALUE!;#VALUE!;#VA LUE!;#VALUE!;#VALUE!;#VALUE!;#VALUE!;#VALUE!;#VALU E!;#VALUE!;#VALUE!;#VALUE!;#VALUE!;#VALUE!;0.00318 471337579618;#VALUE!;#VALUE!;#VALUE!;#VALUE!;#VALU E!;#VALUE!;#VALUE!;#VALUE!;0.00178571428571429;#VA LUE!;#VALUE!;#VALUE!;#VALUE!;#VALUE!;#VALUE!;#VALU E!;#VALUE!;#VALUE!;#VALUE!;#VALUE!;#VALUE!;#VALUE! ;#VALUE!;#VALUE!;#VALUE!;#VALUE!;#VALUE!;#VALUE!;# VALUE!;#VALUE!;#VALUE!;#VALUE!;#VALUE!;#VALUE!;#VA LUE!;#VALUE!;#VALUE!;#VALUE!;#VALUE!;#VALUE!;#VALU E!;#VALUE!;#VALUE!;#VALUE!;#VALUE!;#VALUE!;#VALUE! ;#VALUE!;#VALUE!;#VALUE!;#VALUE!;#VALUE!;#VALUE!;# VALUE!;#VALUE!;#VALUE!;#VALUE!;#VALUE!;#VALUE!;#VA LUE!;#VALUE!;#VALUE!;#VALUE!},Bead!A$2:A$94)


You're looking up 2 amongst a bunch of #VALUE!s and 2 numeric values (0.00318471337579618 & 0.00178571428571429) which aren't in any particular order (not ascending) so as the Important note says: LOOKUP might not return the correct value.


See also the other remarks (my red):
  • If the LOOKUP function can't find the lookup_value, the function matches the largest value in lookup_vector that is less than or equal to lookup_value.
  • If lookup_value is smaller than the smallest value in lookup_vector, LOOKUP returns the #N/A error value.
So don't use LOOKUP.
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Troubleshooting Searching for a Word in a List How to return the full string (entire word) when searching with wildcards in word vba scienceguy Word VBA 13 03-23-2019 03:27 AM
Troubleshooting Searching for a Word in a List Searching for part, BUT NOT ALL, of a word... MikeWebster2000 Outlook 2 09-27-2013 06:35 AM
Troubleshooting Searching for a Word in a List Searching Multiple PowerPoint & Word Files BobbyAre PowerPoint 14 08-12-2012 06:52 AM
Troubleshooting Searching for a Word in a List Finding or searching ^ character in word document shahin3121 Word 2 03-05-2012 06:16 PM
Troubleshooting Searching for a Word in a List Searching for Word Documents jocaan Word 2 09-08-2011 11:48 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 02:16 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft