Excel VLOOKUP issue - excel

I have a problem on a VLOOKUP function in an Excel.
Basically i am trying to search a route from another spreadsheet, using a reference number.
- example: I put in a reference (lets say WPC 80) and i want to get a route (for this ex it should be Pitesti - Wrzesnia:
The problem is that it gives me something random.
I know that maybe im not using it correctly, but do you have any idea?
Thank you!

As noted in VLOOKUP documentation, the last parameter contols whether to use Exact Match or Approximate Match.
Try using exact matching:
=VLOOKUP(..., FALSE)

Sorry not enough rep to post a comment. When using vlookup, and the Range_Lookup parameter is TRUE, the lookup table must be sorted in ascending order, or you will get unusual results. Also ensure you put an absolute reference on the lookup table for when you drag it down.

Better use INDEX and MATCH combination, faster and far more reliable.

Related

How to find first unique value in a column of SKU?

So I have two columns, A & B, (like below). There's 2 components to the ID, the design (CEN101A) and the size (-6).
I'm trying find the first item of each design. So in this example, I would highlight (CEN106A-6, CEN101B-6, CEN101D-6, etc.). This is so I can use them as a parent for the other sizes.
I've tried many in-built functions but nothing seems to work. Is VBA able to easily find these values?
#BigBen is right, this is fairly easy if you can find what the actual design code is. For good measure I'd use a running count and add the hyphen back including a wildcard into the COUNTIF():
Formula for conditional formatting rule on range A2:A7:
=COUNTIF(A$2:A2,#TEXTSPLIT(A2,"-")&"-*")=1
Without TEXTSPLIT(), use a combo of LEFT() and FIND() as per the comment by #P.b:
=COUNTIF(A$2:A2,LEFT(A2,FIND("-",A2))&"*")=1

Why isn't isnumber search not working correctly with given data?

I am trying to get Excel to search for a series of keywords in title using the ISNUMBER() search function, but it's bringing back all FALSE, which is wrong. Any help would be greatly appreciated:
I made sure I F4'd the item list -- still wrong
=ISNUMBER(SEARCH(R2,$G$2:$G$22))
Use MATCH:
=ISNUMBER(MATCH("*"&R2&"*",$G$2:$G$22,0))
With the Search set up the way you have it, it will only return the value of the first in the list. You can wrap SUMPRODUCT around the formula:
=SUMPRODUCT(--ISNUMBER(SEARCH(R2,$G$2:$G$22)))>0
But that is more intensive then the simple MATCH.
This assumes that the Keyword that is being looked-up is in R2 and the range $G$2:$G$22 us the list of titles.
If it is the other way around then the SEARCH is backwards and should be:
=SUMPRODUCT(--ISNUMBER(SEARCH($G$2:$G$22,R2)))>0

Extract Parameter from URL Excel

does anybody has an excel formula for me which just gives me back the clickid parameter? Unfortunately this parameter is not always at the same position so I can't fix it with character count. It should always be between &clickid= and &
https://app.appsflyer.com/id770725904?pid=website_adwords&c=C_DEU_billig&tl_rf=https%3A%2F%2Fwww.google.com%2F&tl_nw=g&tl_mt=e&clickid=EAIaIQobChMIj5zchvqs4AIVQamaCh06NQlOEAAYASACEgJhRPD_BwE&af_keywords=billig+telefonieren+nach+iran&af_c_id=1597316081&af_adset_id=60710335432&af_ad_type=1t1&af_adset=Iran&af_ad_id=303032652682
Well for sure a regular expression will be able to find this, but a rather simple formula could do the trick aswell. For example:
=MID(A1,FIND("clickid=",A1)+8,FIND("&",A1,FIND("clickid=",A1)+8)-(FIND("clickid=",A1)+8))
This will work but someone may have a tidier option ...
=LEFT(SUBSTITUTE(MID(A1,FIND("clickid",A1),1000),"clickid=", ""),FIND("&",SUBSTITUTE(MID(A1,FIND("clickid",A1),1000),"clickid=", ""))-1)
Throw your URL into cell A1 and test it out.

EXCEL - Function Lookup - confusing behaviour

See simple lookup example below, as taken from the MS official website]
=LOOKUP(C2,$A$2:$A$6,$B$2:$B$6)
Changes in the 'lookup-vector' result in wrong outcomes of the lookup function:
Any ideas why this happens?
[FYI: I am only allowed to post one link]
Your issue arises because to use LOOKUP in array form your data must be sorted.
When you put 100 before the 6 your data becomes unsorted and you'll get unexpected errors.
The strongly recommended practice for array form lookups is to use VLOOKUP or HLOOKUP. The following formula will work even when you change your frequency column:
=VLOOKUP(C2,$A$2:$B$6,2,0)
Source: https://support.office.com/en-us/article/LOOKUP-function-446D94AF-663B-451D-8251-369D5E3864CB

vlookup not working when unique identifier has spaces and/or slashes

I am trying to do a VLOOKUP in excel, and I have, lets say the following unique identifiers:
Failure
Accept/Fail Okay
Accept/Fail N/A
Success
using the VLOOKUP, when i use Failure or Success as the unique identifier, it finds the data I am looking for, but if I try to VLOOKUP the other which spaces or slashes, it just returns #N/A.
Is there something I am missing? like i said, the simple 1 word ones are found with no issues, but the others don't work.
Any help would be appreciated!
Thanks
Tried this on my end and was able to reproduce the problem.
The solution appears to be to set the optional [range_lookup] argument to FALSE. After doing this, I was able to perform successful lookups using all of the provided values.

Resources