I have a series of columns where users enter number of samples tested each month. They can indicate the number of batches in the same column using a delimeter. E.g., 4(2) means 4 samples were tested in 2 batches. We cannot add a separate column to indicate batches.
I want to sum the total number of samples across the range of columns.
This formula works but I want shorten it up. Any ideas?
Conceptually:
Formula:
=SUM(IF(CONTAINS("(", A@row), VALUE(SUBSTITUTE(LEFT(A@row, FIND("(", A@row) - 1), " ", "")), A@row), IF(CONTAINS("(", B@row), VALUE(SUBSTITUTE(LEFT(B@row, FIND("(", B@row) - 1), " ", "")), B@row), IF(CONTAINS("(", C@row), VALUE(SUBSTITUTE(LEFT(C@row, FIND("(", C@row) - 1), " ", "")), C@row), IF(CONTAINS("(", D@row), VALUE(SUBSTITUTE(LEFT(D@row, FIND("(", D@row) - 1), " ", "")), D@row), IF(CONTAINS("(", E@row), VALUE(SUBSTITUTE(LEFT(E@row, FIND("(", E@row) - 1), " ", "")), E@row))