![]() |
![]() |
|
|||||||
| Excel Questions All Excel/VBA questions - formulas, macros, pivot tables, general help, etc. Please post to this forum in English only. |
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Board Regular
Join Date: Mar 2002
Posts: 78
|
Hi everyone,
Has anyone created a lookup formula that looks for the closest match of a string? Thanks in advance... |
|
|
|
|
|
#2 |
|
MrExcel MVP
Join Date: Feb 2002
Location: Christchurch New Zealand
Posts: 1,030
|
just put true at the end instead of false.
|
|
|
|
|
|
#3 |
|
Board Regular
Join Date: Mar 2002
Posts: 78
|
That will give me the next one alphabetically, true, but what about searching a dilimited string.....e.g.
look for the next Admin Support, i.e. return record 3 instead of record 2...if 1 is not an exact match 1 Accounts Payable.Admin Support 2 Accounts Payable.Manager 3 Accounts Receivable.Admin Support many thanks |
|
|
|
|
|
#4 |
|
MrExcel MVP
Join Date: Mar 2002
Location: Michigan USA
Posts: 11,452
|
Lookup is intended for selecting the first match ... and then it quits.
You could look for "Receivable.Admin Support" this is different from "Payable.Admin Support" HTH
__________________
Regards! Yogi Anand, D.Eng, P.E. Energy Efficient Building Network LLC www.energyefficientbuild.com |
|
|
|
|
|
#5 |
|
Board Regular
Join Date: Mar 2002
Posts: 78
|
Thanks.......I suspected lookup may be a bit limited...Can you suggest any other functions that may look at parts of a string and return it....
I know about FIND and MID.... Cheers |
|
|
|
|
|
#6 | |
|
MrExcel MVP
Join Date: Mar 2002
Location: Michigan USA
Posts: 11,452
|
Quote:
"Receivable.Admin Support" and if it is located in cell A2, then put in B2 =RIGHT(A2,LEN(A2)-FIND(".",A2,1)) to get "Admin Support" HTH
__________________
Regards! Yogi Anand, D.Eng, P.E. Energy Efficient Building Network LLC www.energyefficientbuild.com |
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|