VLOOKUP Error "did not find value" but value is defenitely there? - google-sheets

I'm trying to match the postcode with the name of the city in another sheet:
=VLOOKUP(C11,PLZ_2021_DE!A:B,2)
Here's the sheet I want the place in
And here the sheet I want to match it with, just column A
Here's the link to the file, I don't get what I'm doing wrong?
Thanks for your help!

delete E2:E rnge and use this in E2:
=INDEX(IFNA(VLOOKUP(C2:C&"", TO_TEXT(PLZ_2021_DE!A:B), 2, 0)
0 coz you want exact matches and &""/TO_TEXT coz C column has probably different formatting than A column assuming due to different cell alignment

Related

Index match values from a table

I am trying to use an advanced VLOOKUP (index small match) formula in my table, but somehow can't figure out what's wrong, it only prints one cell.
I want the formula to print (in list) all the cells from column A, that contain time above 2:00 in column J.
Link to the spreadsheet
I have attached both a screenshot and a link to my table, please help me out.
try:
=FILTER(A:A, I:I>0.08333333333, I:I<>"")

Match of an id value and extracing a string in Google Sheets

following problem:
I have a column with wrong Ids
Now I want to watch those wrong Ids with another sheet where I have same Ids and the correct link I want to match with those Ids:
So what I same up with is the following ->
=IFERROR(VLOOKUP(A2,'extract base'"B:F),"")"))
But obviously doesn't work haha. So basically very easy -> if the Id from Sheet 1 matches with the Id from Sheet two put in the second column (in my example custom_label) the value of sheet two column 2
Any help is appreciated, thank you so much!
Your current VLOOKUP formula is not structured correctly at all, and your sheet reference 'extract base'"B:F is also not written correctly. Have you read the basic documentation on VLOOKUP usage and syntax?
Delete B2:B entirely.
Then place the following in B2:
=ArrayFormula(IF(A2:A="",,IFERROR(VLOOKUP(A2:A,'extract base'!B:F,5,FALSE))))
This formula should provide results, if any, for all rows (assuming that your second sheet is, in fact, called exactly extract base).

Return value of third column based on two column matches in Google Sheets

I'm trying to sort a long table so we can analyse the data easier. What kind of data do I have?
Column A: Product name
Column B: Date (start)
Column C: Date (end)
Column D: Price
What I need to do is make an overview of all the products and their price on a specific date so I can easily make a chart to show the price changes over time. I can do this via a pivot table, this works. But I also need it as a formula.
Now I'm using: =iferror(index($D$2:$D; match($G3; $A$2:$A; 0); match(H$2; $B$2:$B; 0))) but the problem is that it is only returning the value of one date and not for the other dates (I guess because it is looking for one value and not multiple values)
Is it possible with a combination of match( and index( function?
How can I solve this problem? I hope you guys can help me. Please find a link to a test spreadsheet here: https://docs.google.com/spreadsheets/d/1llvpWCF0VRQMPwDGtQZ0qBiuCIsQBqeJtr7KCq7PBvg/edit?usp=sharing
Thank you in advance!
It is because third argument of INDEX function must point to column number from first argument. In your case there is only one column - $D$2:$D and if third argument returns anything but one it result will be an error and formula returns empty string.
Instead use:
=iferror(index($D$2:$D; match(1;($G3=$A$2:$A)*(H$2=$B$2:$B); 0)))

How to seach column for all text matches in column A and sum all of the corrosponding values in column B Excel

I'm sure this is possible, but I've been trying various ways for the past 2 hours and can't find the solution.
I need to find all the instances of a text name in column A, lookup all the numerical results in column B and sum them together.
I thought =ArrayFormula(sum(lookup(F2,$A$2:$B$1000))) would do the trick, but it's only picking up the last value on the last mention and not all the values of all the mentions.
I've attached a spreadsheet to show the data I'm looking at.
Thanks to the reference from BigBen to check out Sumifs. Using this command, the following works a treat:
=SUMIFS(B2:B3115,A2:A3115,F2)
try:
=QUERY(A2:B; "select A,sum(B) where A is not null group by A label sum(B)''")

Find Unique in google sheets - first n characters

I have a google sheet with a column (A) of urls.
Xttps://tXco/008wnbebbw
Xttps://tXco/00lR1FNKBo
Xttps://tXco/00lR1Fw9cO
Xttps://tXco/00UwZwgh2h
Xttps://tXco/00UwZwxSqR
Xttps://tXco/00UwZwxSqR
Xttps://tXco/044TcIFl72
In column B I need to find all unique urls up to the 18th character. For instance column B should show:
Xttps://tXco/008wnbebbw
Xttps://tXco/00lR1FNKBo
Xttps://tXco/00UwZwgh2h
Xttps://tXco/044TcIFl72
I have this formula which I was trying to adapt for it (not sure if it helps at all). I was trying to adapt this to use with =UNIQUE( ?
=SUMPRODUCT(--(LEFT($A$1:$A$15,18)=LEFT(A1,18)))>1
If it helps to take a look at the sheet, here it is: https://docs.google.com/spreadsheets/d/1tG7TpHNvNY86PRiePsKyKfxnuEZah6T7ZDL7dXOIcEA/edit?usp=sharing
Thanks in advance!
You may try this formula:
=ArrayFormula(vlookup(
UNIQUE(FILTER(LEFT(A2:A,17),A2:A<>"")),
FILTER({LEFT(A2:A,17),A2:A},A2:A<>""),
2,0))
How it works
it will first find unique left N chars:
UNIQUE(FILTER(LEFT(A2:A,17),A2:A<>"")
then get left N chars and original strings:
FILTER({LEFT(A2:A,17),A2:A},A2:A<>"")
and then use vlookup to get top first entry for uniques.
Try this instead without the extra column. Put it in B1:
=unique(arrayformula(if(left(A1:A,18)=left(A1:A,18),A1:A,"")))
Try this: =unique(arrayformula(left(A1:A,18)))

Resources