Sep 17 2021 12:11 PM
I am creating a sheet that has 96 columns (for months of a project) and I need to sum certain cells if there are values in the columns. Each month an amount will be typed into one of the cells in one of the 96 columns, for example, B2 and then the next month a new amount typed into C2, then D2 and so on.
The way this needs to work is that if there is data in say B2,C2,D2,E2 I need cell CX2 to sum B2,C2,&D2 and then cell CY2 to display the value of cell E2. The following month there would be data is B2,C2,D2,E2,F2 and I would need cell CX2 to sum B2:E2 and cell CY2 to display F2. Is this possible in excel?
Sorry if something like this has already been asked. I couldn't figure out how to craft a search that returned meaningful results.
Sep 17 2021 12:22 PM
SolutionIn CY2:
=INDEX(B2:CS2,MATCH(9.99999999999999E+307,B2:S2))
or
=LOOKUP(9.99999999999999E+307,B2:CS2)
In CX2:
=SUM(B2:CS2)-CY2
Sep 17 2021 12:33 PM
Sep 21 2021 12:35 PM
Sep 21 2021 01:42 PM
Sep 17 2021 12:22 PM
SolutionIn CY2:
=INDEX(B2:CS2,MATCH(9.99999999999999E+307,B2:S2))
or
=LOOKUP(9.99999999999999E+307,B2:CS2)
In CX2:
=SUM(B2:CS2)-CY2