![]() |
![]() |
|
|||||||
| Lounge v.2.0 A place to chat. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
|
|
#1 |
|
Join Date: Sep 2006
Posts: 1
|
I pasted =LOOKUP(2^15,SEARCH(D$2:D$10,A2),E$2:E$10) into b2:b25. I then entered a different phrase including one of the colors into a26. When I hit enter the formula from b25 was copied down to b26, which was blank, automatically. I don't see any macros at work. What's going on here?
|
|
|
|
|
|
#2 | |||||
|
MrExcel MVP
Join Date: Mar 2005
Location: England
Posts: 13,900
|
Hello pma, welcome to MrExcel.
This is an Excel feature (certainly in 2003), see this from Excel [2003] Help. See red highlighted section
|
|||||
|
|
|
|||||
|
|
#3 |
|
Join Date: Apr 2005
Location: Washington, DC
Posts: 123
|
|
|
|
|
|
|
#4 |
|
Join Date: Jul 2008
Posts: 75
|
Check out the posts from around Jun 17th, 2008 and the links within them. There were many posts on Barry's solution.
|
|
|
|
|
|
#5 | |
|
Join Date: Mar 2009
Posts: 0
|
Quote:
, but -forgot one thing! ![]() the challenge was for additional list items to be added without alteration to the function - keep your original with: =LOOKUP(2^15,SEARCH(Keyword,A2),Assign) where the defined names are: Keyword =OFFSET(Sheet1!$D$1,1,0,(COUNTA(Sheet1!$D:$D)-1)) & Assign =OFFSET(Sheet1!$E$1,1,0,(COUNTA(Sheet1!$E:$E))-1)) |
|
|
|
|
|
|
#6 | |
|
Join Date: Mar 2009
Posts: 0
|
Quote:
just noticed that this was covered before. You could also change the 2^15 to COUNTA(Phrases), with dynamic range but this won't make the function any different. |
|
|
|
|
|
|
#7 | |
|
Join Date: Dec 2008
Location: Chennai, IND
Posts: 105
|
Quote:
__________________
......<E> R K Ma<x>X ............<C> ...............<E> ..................<L> |
|
|
|
|
|
|
#8 | |
|
MrExcel MVP
Join Date: Feb 2002
Location: The Hague
Posts: 39,499
|
You'd need to invoke a formula of the type as in:
http://www.mrexcel.com/forum/showthread.php?t=321942 http://www.mrexcel.com/forum/showthread.php?t=323188 Applied to the problem/task at hand... Code:
=LOOKUP(9.99999999999999E+307,
SEARCH(" "&$D$2:$D$10&" "," "&A2&" "),
$E$2:$E$10)
On earlier version, we would need define dynamic named ranges, say, KEYS and SLOTS, and invoke: Code:
=LOOKUP(9.99999999999999E+307,
SEARCH(" "&KEYS&" "," "&A2&" "),
SLOTS)
Quote:
|
|
|
|
|
|
|
#9 |
|
Join Date: Apr 2007
Location: Cincinnati, Ohio
Posts: 5,337
|
Aladin,
I could only get your formula to work for the phrases that did not end with the color. The only way I could get it to work in all cases if the phrase ends with the color was by removing the &" " =LOOKUP(9.99999999999999E+307,SEARCH(" "&$D$2:$D$10," "&A2),$E$2:$E$10)
__________________
Always make a back up copy before trying new code, you never know what you might lose! |
|
|
|
|
|
#10 |
|
Join Date: Nov 2004
Location: UK
Posts: 1,743
|
schielrn - there is a string of ascii characters at the end of each cell - a bunch of 160s (not sure what this is) ending with a 32 (space). i think mr excel is messing with our minds!
removing the &" " will mean that "redditch" becomes a problem again...
__________________
Emma Your apparent nonchalance belies the fact that you can only think of me. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|