문제

효과적으로 알파벳 성적에 숫자 점수를 부여하고 합산하고 싶습니다.Excel에서 LOOKUP 함수를 배열 수식에 넣으면 작동합니다. 라코 디스

VLOOKUP 기능을 사용하면 작동하지 않습니다 (1 학년 점수 만 얻음).Google 스프레드 시트에 LOOKUP 기능이없는 것으로 보이며 VLOOKUP는 다음을 사용하는 것과 같은 방식으로 실패합니다. 라코 디스

또는 라코 디스

이 작업이 가능합니까 (하지만 구문이 잘못되었습니다)?다른 곳에서 조회를 숨기고 나중에 합산하는 대신 이와 같이 하나의 간단한 셀에서 계산할 수있는 방법을 제안 할 수 있습니까?

도움이 되었습니까?

해결책 3

I still can't see the formulae in your example (just values), but that is exactly what I'm trying to do in terms of the result; obviously I can already do it "by the side" and sum separately - the key for me is doing it in one cell.

I have looked at it again this morning - using the MATCH function for the lookup works in an array formula. But then the INDEX function does not. I have also tried using it with OFFSET and INDIRECT without success. Finally, the CHOOSE function does not seem to accept a cell range as its list to choose from - the range degrades to a single value (the first cell in the range). It should also be noted that the CHOOSE function only accepts 30 values to choose from (according to the documentation). All very annoying. However, I do now have a working solution in one cell: using the CHOOSE function and explicitly listing the result cells one by one in the arguments like this:

=ARRAYFORMULA(SUM(CHOOSE(MATCH(D1:D8,Lookups!$A$1:$A$3,0),
                                     Lookups!$B$1,Lookups!$B$2,Lookups!$B$3)))

Obviously this doesn't extend very well but hopefully the lookup tables are by nature quite fixed. For larger lookup tables it's a pain to type all the cells individually and some people may exceed the limit of 30 cells.

I would certainly welcome a more elegant solution!

다른 팁

아니요라고 생각합니다.도움말 텍스트에서 http://docs.google.com/support/spreadsheets/bin/answer.py?answer=71291&query=arrayformula&topic=&type= <인용구>

ARRAYFORMULA의 진정한 힘은 이러한 계산 중 하나에서 결과를 가져 와서 배열 또는 범위 인수를 사용하는 수식 (SUM, MAX, MIN, CONCATENATE, )으로 래핑 할 때 제공됩니다.

vlookup이 (첫 번째 인수에서) 조회하는 데 단일 셀을 사용하므로 별도의 조회 범위를 사용하지 않고는 작동 할 수 없다고 생각합니다.

<인용구>

Google 스프레드 시트에 LOOKUP 기능이없는 것 같습니다.

아마 그때는 아니지만 지금은 다음과 같습니다.

SO27774 예

grades Sheet1! A2 : A4
scoringarray Sheet1! A2 : B4

I know this thread is quite old, but I'd been struggling with this same problem for some time. I finally came across a solution (well, Frankenstiened one together). It's only slightly more elegant, but should be able to work with large data sets without trouble.

The solution uses the following:

=ARRAYFORMULA(SUM(INDIRECT(ADDRESS(MATCH(), MATCH())))

as a surrogate for the vlookup function.

I hope this helps someone!

you can do so easily like this by hardcoding it in VR table:

=SUM(IFERROR(ARRAYFORMULA(VLOOKUP(A2:A, {{"A", 6};
                                         {"B", 5};
                                         {"C", 4};
                                         {"D", 3};
                                         {"E", 2};
                                         {"F", 1}}, 2, 0)), ))

0

or you can use some side cells with rules:

=SUM(IFERROR(ARRAYFORMULA(VLOOKUP(A2:A, E2:F, 2, 0)), ))

6


alternatives: https://webapps.stackexchange.com/a/123741/186471

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top