I've created a spreadsheet with two tabs to manage my supplements and provide my doctor with a condensed report. The first tab is the 173 lines of Data. The second tab is the Report. To create the Report tab, I sorted the Data and copied Data.B to Report.B as I wanted to ensure that the values would match for the sumif function. I then removed any duplicate lines from Report.B. In Report.A I placed the following SUMIF formula and pasted it into each field. The formula doesn't work on 41 lines but it does work on the rest of the 131 lines.
Code: Select all
=SUMIF(Data.$B$2:$B$173;B5;Data.$A$2:$A$173)
Code: Select all
=C5/D5*E5
Code: Select all
=C6/D6*E6
The Data tab is often sorted by different columns but the Report should always sum the data regardless of it's position.
I'm using
AOO415m1(Build:9789) - Rev. 1817496
2017-12-11 17:25
on
Microsoft Windows 10 Home
Version 10.0.14393 N/A Build 14393