问题
A newbie here, can someone help me to figure it out. I have the follwoing data in Excel:
Column A:
T1
T2
T3
2T1
3T2
1T3
I want to return how often T1 occurs in column A.. T1 in column A should be 3 (T1 + 2T1)
Does someone know how to solve this problem?
回答1:
Possibly multiple ways, one way would be:
Formula in C2
:
=SUM(IF(MID(A$1:A$6,SEARCH("T",A$1:A$6),LEN(A$1:A$6))=B2,IFERROR(LEFT(A$1:A$6,SEARCH("T",A$1:A$6)-1)*1,1),0))
Note: Confirm through CtrlShiftEnter
来源:https://stackoverflow.com/questions/61652190/excel-formula-to-find-a-specific-number