简体   繁体   中英

To Interpret nested if statement in Excel

Can anyone help me to interpret the following nested if statement in Excel? Thanks.

"The Imputer", "detasian", and "detnphi" are worksheet names of an Excel workbook. cell C9 and cell C10 are user inputs, and cell c16 is a result from an intermediate calculation step.

"value of cell c17"=IF(C16="A",VLOOKUP('The Imputer'!C9&'The Imputer'!C10,detasian!O23:P40,2,FALSE),IF(C16="P",VLOOKUP('The Imputer'!C9&'The Imputer'!C10,detnhpi!L23:M40,2,FALSE),""))

A lookup is performed of C9 concatenated with C10, both from sheet The Imputer in one or other of two ranges, which depending upon whether C16 contains A or P , for the exact match in the adjacent column.

The range for A is sheet detasian O23:P40 and for P sheet detnhpi L23:M40.

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