I am trying to utilize the value in E2 (which is a formula) for another formula in D2 and it creates an error. The formula in E2 does a conversion for a sample ID code. The formula in D2 formats that value with the first four characters of that value and the last three digits from F2. Mini Sheet included that includes both formulas.
SampleBook.xlsx | ||||||||||
---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | |||
1 | well # | Patient Name | Accession | Sample ID Code | accession | Resulted | Result-Date | |||
2 | 1 | A-1 | ZZTEST, COV FIVE | ZCF-0051 | ZCS-00 | 09-22-271-0051 | ||||
3 | 2 | A-2 | ZZTEST, COV SIX | ZCS-00 | 09-22-271-0053 | |||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
D2 | D2 | =CONCATENATE(LEFT(E2,4),RIGHT(F2,4)) |
E2:E3 | E2 | =CONCATENATE(LEFT(C2)&IF(ISNUMBER(FIND(" ",C2)),MID(C2,FIND(" ",C2)+1,1),"")&IF(ISNUMBER(FIND(" ",C2,FIND(" ",C2)+1)),MID(C2,FIND(" ",C2,FIND(" ",C2)+1)+1,1),""),"-",RIGHT(YEAR(D2),2)) |