我需要一些文档上的Google Spreadsheets帮助。我想看一下外部文档中某个单元格中是否有(任何)值,但我希望在11个不同的单元格中进行更大规模的操作。
我拥有它所以它将粘贴至少一个(包含所有代码)但我需要它在一个单元格上运行所有这些代码。我到目前为止的代码是:
=IF(ISBLANK(Attendance!$C10:$M$10), "GR",
IF(ISBLANK(Attendance!$D$10:$M$10), "MG",
IF(ISBLANK(Attendance!$E$10:$M$10), "PM",
IF(ISBLANK(Attendance!$F$10:$M$10), "GD",
IF(ISBLANK(Attendance!$G$10:$M$10), "MK",
IF(ISBLANK(Attendance!$H$10:$M$10), "CE",
IF(ISBLANK(Attendance!$I$10:$M$10), "PI",
IF(ISBLANK(Attendance!$K$10:$M$10), "SL",
IF(ISBLANK(Attendance!$L$10:$M$10), "BC",
IF(ISBLANK(Attendance!$M$10), "IN"))))))))))
答案 0 :(得分:0)
此公式是否符合您的要求:
=VLOOKUP(COUNTA(C10:M10),{1,"GR";2,"MG";3,"PM";4,"GD";5,"MK";6,"CE";7,"PI";8,"SL";9,"BC";10,"IN";11,""},2,0)
如果没有,请分享一些样本数据和预期结果
答案 1 :(得分:0)
以下情况似乎适合:
=if(isblank(C10)," GR","")&if(isblank(D10)," MG","")&if(isblank(E10)," PM","")&if(isblank(F10)," GD","")&if(isblank(G10)," MK","")&if(isblank(H10)," CE","")&if(isblank(I10)," PI","")&if(isblank(J10)," aa","")&if(isblank(K10)," SL","")&if(isblank(L10)," BC","")&if(isblank(M10)," IN","")