0

Now my formula for this may be wrong, but I am trying to collect data in google docs based on a sheet which contains responses from a google sheets survey.

The link to the google spreadsheet is here.

The first sheet of the document contains the responses. There are four columns, the first being time, the second being name, the third being which size of sweatshirt, and the fourth being which type (crew/hoodie).

The second sheet contains the formulas I am having problems with. I have all the names already listed (those are the only people who will be able to order a sweatshirt) and I want to correlate the name with the type of sweatshirt they are getting. I know this data seems repetitive from the first sheet, but just ignore that if you would.

The formula that I am using currently is =VLOOKUP(A2,'Form Responses 1'!B$2:D,3) where A2 is the name of the person, Form Responses B$2:D refers to the first sheet, and 3 being the column where the Hoodle/Crew information is stored.

The function is not returning correct values for all of the names. Some names which do appear on sheet 1 are showing up as having nothing and even some names are showing the wrong type (crew instead of hoodie).

Can anyone see a problem in my vLookup formula? Sorry if its a simple mistake, I just cant seem to identify the problem.

Thanks!

4

1 回答 1

3

VLOOKUP最多可以有 4 个参数,第 4 个是匹配类型。

默认情况下,匹配类型是TRUE(或1)表示“近似”匹配。这就是弄乱你的结果的原因。

您需要为公式指定FALSE(或)的匹配类型以执行精确匹配:0

=VLOOKUP(A2,'Form Responses 1'!B$2:D,3,0)

或者,

=VLOOKUP(A2,'Form Responses 1'!B$2:D,3,FALSE)
于 2014-04-04T15:06:51.653 回答