Example Problem_1.xlsx | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
A | B | C | D | E | F | G | H | I | J | K | L | M | N | O | |||
1 | Groups | BL | isotopeLabel | compound | Groups | BL | |||||||||||
2 | 4332.1026 | C12 PARENT | 1-Methyladenosine | %C12 | 89.10% | ||||||||||||
3 | 247.619056 | C13-label-1 | 1-Methyladenosine | %C13-1 | 5.09% | ||||||||||||
4 | 282.373093 | C13-label-1 | 2-Aminoadipate | %C13-2 | 5.81% | ||||||||||||
5 | 86606.4224 | C12 PARENT | 2-Dehydro-D-gluconate | %C12 | 85.13% | ||||||||||||
6 | 5594.67302 | C13-label-1 | 2-Dehydro-D-gluconate | %C13-1 | 5.50% | ||||||||||||
7 | 374.129334 | C13-label-2 | 2-Dehydro-D-gluconate | %C13-2 | 0.37% | ||||||||||||
8 | 736.817081 | C13-label-3 | 2-Dehydro-D-gluconate | %C13-3 | 0.72% | ||||||||||||
9 | 286.033555 | C13-label-4 | 2-Dehydro-D-gluconate | %C13-4 | 0.28% | ||||||||||||
10 | 650.682913 | C13-label-5 | 2-Dehydro-D-gluconate | %C13-5 | 0.64% | ||||||||||||
11 | 7480.36311 | C13-label-6 | 2-Dehydro-D-gluconate | %C13-6 | 7.35% | ||||||||||||
12 | 101338.69 | C12 PARENT | 2-Hydroxy-2-methylsuccinate | %C12 | 95.02% | ||||||||||||
13 | 4671.57155 | C13-label-1 | 2-Hydroxy-2-methylsuccinate | %C13-1 | 4.38% | ||||||||||||
14 | 365.32775 | C13-label-2 | 2-Hydroxy-2-methylsuccinate | %C13-2 | 0.34% | ||||||||||||
15 | 271.325041 | C13-label-3 | 2-Hydroxy-2-methylsuccinate | %C13-3 | 0.25% | ||||||||||||
16 | 101342.959 | C12 PARENT | 2-hydroxyglutaric acid | %C12 | 95.02% | ||||||||||||
17 | 4678.6522 | C13-label-1 | 2-hydroxyglutaric acid | %C13-1 | 4.39% | ||||||||||||
18 | 365.32775 | C13-label-2 | 2-hydroxyglutaric acid | %C13-2 | 0.34% | ||||||||||||
19 | 271.325041 | C13-label-3 | 2-hydroxyglutaric acid | %C13-3 | 0.25% | ||||||||||||
20 | 50318.3534 | C12 PARENT | 3-Phosphoglycerate | %C12 | 97.13% | ||||||||||||
21 | 1489.11048 | C13-label-1 | 3-Phosphoglycerate | %C13-1 | 2.87% | ||||||||||||
22 | |||||||||||||||||
23 | For example, I am taking J2, and then dividing it by Sum(J2:J4). I am trying to figure out a formula that will know to only do it for each group. The new group starts at the green highlight. | ||||||||||||||||
Sheet1 |
Cell Formulas | ||
---|---|---|
Range | Formula | |
H2:H4 | H2 | =B2/SUM(B$2:B$4) |
H5:H11 | H5 | =B5/SUM(B$5:B$11) |
H12:H15 | H12 | =B12/SUM(B$12:B$15) |
H16:H19 | H16 | =B16/SUM(B$16:B$19) |
H20:H21 | H20 | =B20/SUM(B$20:B$21) |
Cells with Conditional Formatting | ||||
---|---|---|---|---|
Cell | Condition | Cell Format | Stop If True | |
G1:G21 | Cell Value | ="%C12 " | text | NO |
G1:G21 | Cell Value | ="%C12" | text | NO |
G1:G21 | Cell Value | ="%C12" | text | NO |
G2:G21 | Cell Value | ="%C12" | text | NO |
G1:G21 | Cell Value | ="%C12" | text | NO |