简体   繁体   中英

Reference & replace value in cell with value in range in google spreadsheet

I'm trying to do something which should be fairly trivial in Google Spreadsheet: I have a database of people in one sheet defined by "ID" and "Label" where the ID is a consecutive number and Label is the Name Surname of each person.

I'd need to be able, in a different sheet, to allow my team to type in the "Label" of a person and have the adjacent cell to show up the corresponding ID.

Given that sheet 1 is something like:
ID Label
01 Alice Johnson
02 Bert Junger
03 Carlos Lopez

I would like that in sheet 2 would happen something like:
person = raw_input() if(person == exist in sheet 1):
get person's col and row from sheet 1 return value(person's col-1, person's row)

Ideally, I'm looking to do this only with google spreadsheets formulae, since it would be otherwise hard for my colleagues to be able to work on it.

Thank you so much everyone!

您可以使用“索引匹配”公式或“ V查找”来执行此操作

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM