I'm trying to assign values to specific characters then aggregate and summarize them. I was trying to use specific functions, SUM or SUMPRODUCT and CHOOSE.
For instance:
If you have a row as depicted below. Each column is a DAY within the month in which the person decided to carpool. I want to calculate the amount of One-Way Trips.
X = Round Trip (2 One-Way Trip) // M = Morning ONLY (1 One-Way Trip) // E = Evening ONLY (1 One-Way Trip) // Any Other Character is valued as a 0.
The amount of One-Way Trips for the above would be 16.
Is there a way to use SUM or SUMPRODUCT and the CHOOSE functions to accomplish this? The CHOOSE function would be CHOOSE(value, {0, 1, 2}) or something similar. I'm not sure how to loop through each column in the row and summarize each cell in the ROW range.
Thank you for your help ahead of time.
For instance:
If you have a row as depicted below. Each column is a DAY within the month in which the person decided to carpool. I want to calculate the amount of One-Way Trips.
X = Round Trip (2 One-Way Trip) // M = Morning ONLY (1 One-Way Trip) // E = Evening ONLY (1 One-Way Trip) // Any Other Character is valued as a 0.
A | B | C | D | E | F | G | H | I | J | K | L |
X | M | E | X | X | DP | X | X | X | X | 16 |
The amount of One-Way Trips for the above would be 16.
Is there a way to use SUM or SUMPRODUCT and the CHOOSE functions to accomplish this? The CHOOSE function would be CHOOSE(value, {0, 1, 2}) or something similar. I'm not sure how to loop through each column in the row and summarize each cell in the ROW range.
Thank you for your help ahead of time.