Comments on: Excel fractions filter: add cells, display as fraction, add fractions
http://ask.metafilter.com/304764/Excel-fractions-filter-add-cells-display-as-fraction-add-fractions/
Comments on Ask MetaFilter post Excel fractions filter: add cells, display as fraction, add fractionsThu, 12 Jan 2017 10:21:49 -0800Thu, 12 Jan 2017 10:44:18 -0800en-ushttp://blogs.law.harvard.edu/tech/rss60Question: Excel fractions filter: add cells, display as fraction, add fractions
http://ask.metafilter.com/304764/Excel-fractions-filter-add-cells-display-as-fraction-add-fractions
I'm converting an old hand-tally chart into Excel, but I'm unsure how to translate a simple <em>portion/total</em> fraction of cells into Excel and then add more fractions in that row. "D / (B+C)," basically. <br /><br /> The purpose of the hand-tally chart is keeping track of customer interactions at a station: total number of interactions, how many interactions were face-to-face versus by phone, how many of the total interactions included special order, displaying the total in fraction form as (special orders / total number of interactions) then adding those totals to other station totals. This is simple to do on the paper chart because it only involves addition, but I don't know to make it display as a row in Excel without the program trying to divide my fractions and such. Here's my example: <br>
<br>
Station Blue interactions on Day 1<br>
B1 Face-to-face: 47<br>
C1 Phone: 3<br>
D1 Special orders: 0<br>
E1 Blue total: 0/50 (special orders/total orders)<br>
<br>
Station Red interactions on Day 1<br>
F1 Face-to-face: 10<br>
G1 Phone: 0<br>
H1 Special orders: 3<br>
I1 Red total: 3/10<br>
<br>
J1 Grand total for Day 1: 3/60 (special orders/total orders)<br>
<br>
Meanwhile, Column A is keeping track of dates, and at Day/Row 32 there's the sum of each column for the month. Columns E, I, and J are all displayed as fractions.<br>
<br>
How do I use formulas to calculate: <br>
E1 = D1 / (B1+C1)<br>
I1 = H1 / (F1+G1)<br>
J1 = (D1+H1) / (B1+C1+F1+G1)<br>
<br>
then total them at the bottom of their columns?post:ask.metafilter.com,2017:site.304764Thu, 12 Jan 2017 10:21:49 -0800nicebookrackexcelspreadsheetsumfractionsBy: DevilsAdvocate
http://ask.metafilter.com/304764/Excel-fractions-filter-add-cells-display-as-fraction-add-fractions#4413143
Do you need Excel to "know" that E1, I1, and J1 are fractions? If not, and they only need to be human-readable, you can treat it as a string.<br>
<br>
E.g., for E1, you have<br>
<pre>=D1&"/"&B1+C1</pre><br>
I1 would be<br>
<pre>=H1&"/"&F1+G1</pre><br>
and J1 would be<br>
<pre>=D1+H1&"/"&B1+C1+F1+G1</pre><br>
<br>
For the totals, you'll need to total the colums for the raw data (B, C, D, F, G, H) then compute the "fractions" from the totals.<br>
<br>
You couldn't compute the "total" fractions from the individual fractions if they were true fractions because it wouldn't be enough information. Consider the following two examples<br>
<pre>Day 1 2 2 6 6/10<br>
Day 2 3 2 5 5/10<br>
Total 5 4 11 11/20<br>
<br>
Day 1 2 2 6 6/10<br>
Day 2 1 0 1 1/ 2<br>
Total 3 2 7 7/12</pre><br>
<br>
But the "Day 2" fractions in these examples are equal (5/10 = 1/2) but the total factions are not (11/20=0.55, 7/12≈0.58); ergo, you can't compute the total fraction directly from the individual fractions alone; you have to sum the numerator and denominator separately.comment:ask.metafilter.com,2017:site.304764-4413143Thu, 12 Jan 2017 10:44:18 -0800DevilsAdvocateBy: nicebookrack
http://ask.metafilter.com/304764/Excel-fractions-filter-add-cells-display-as-fraction-add-fractions#4413163
Nope, the fractions only need to be human-readable, not "seen" by Excel.comment:ask.metafilter.com,2017:site.304764-4413163Thu, 12 Jan 2017 11:05:07 -0800nicebookrackBy: Boobus Tuber
http://ask.metafilter.com/304764/Excel-fractions-filter-add-cells-display-as-fraction-add-fractions#4413182
Excel does have a fraction format:<br>
<a href="https://exceljet.net/lessons/how-to-use-fraction-formatting-in-excel"><br>
Excel tutorial: How to use fraction formatting in Excel <https></https></a><br>
<br>
which seems like it should work (using the 2 or 3 digit option for denominator)?comment:ask.metafilter.com,2017:site.304764-4413182Thu, 12 Jan 2017 11:18:05 -0800Boobus TuberBy: nicebookrack
http://ask.metafilter.com/304764/Excel-fractions-filter-add-cells-display-as-fraction-add-fractions#4413184
I may need to insert more columns or something to display the (special orders/total orders) together without making them "fractions," because it makes no sense to string a row's cells together but then have to manually total all the rows' numerators and denominators separately, like DevilsAdvocate says. Hmmm.comment:ask.metafilter.com,2017:site.304764-4413184Thu, 12 Jan 2017 11:21:22 -0800nicebookrackBy: DevilsAdvocate
http://ask.metafilter.com/304764/Excel-fractions-filter-add-cells-display-as-fraction-add-fractions#4413186
Note that the fraction formatting Boobus Tuber suggests will reduce a fraction to lowest terms; in your example J1 (3/60) would be displayed as 1/20. This may or may not be desirable.comment:ask.metafilter.com,2017:site.304764-4413186Thu, 12 Jan 2017 11:25:29 -0800DevilsAdvocateBy: nicebookrack
http://ask.metafilter.com/304764/Excel-fractions-filter-add-cells-display-as-fraction-add-fractions#4413193
Not desirable to reduce the fractions, no. Like DA said, they're not real "fractions;" they're just my easy visual stand-in for "Out of 60 total interactions, 3 total were special orders."comment:ask.metafilter.com,2017:site.304764-4413193Thu, 12 Jan 2017 11:32:49 -0800nicebookrackBy: meinvt
http://ask.metafilter.com/304764/Excel-fractions-filter-add-cells-display-as-fraction-add-fractions#4413207
Personally, I'd keep discrete data in separate cells and display fractions using three cells across:<br>
Data A as a right justified cell, narrow cell containing "/", Data B as a left justified cell. <br>
<br>
DataA / DataB<br>
<br>
I'm sure there may be fancier ways of doing it, but I think this will be the most intelligible to go back to and understand later.comment:ask.metafilter.com,2017:site.304764-4413207Thu, 12 Jan 2017 11:40:34 -0800meinvtBy: nicebookrack
http://ask.metafilter.com/304764/Excel-fractions-filter-add-cells-display-as-fraction-add-fractions#4413211
If I split the Total columns (E, I, J) into separate columns, is it possible to create strings to make the entire column sum cells from their rows automatically, using a wildcard(*)? Or must I string each cell separately? Something like, <br>
Grand Special Order Total: J*=D*+H*, versus Row 1 J1 = (D1+H1), Row 2 J2 = (D2+H2), etc.comment:ask.metafilter.com,2017:site.304764-4413211Thu, 12 Jan 2017 11:46:44 -0800nicebookrackBy: DevilsAdvocate
http://ask.metafilter.com/304764/Excel-fractions-filter-add-cells-display-as-fraction-add-fractions#4413224
Enter the formula for J1 then "grab" the lower right corner of J1 (click-hold) and drag down to fill J2 - J32. The formulas will automatically update.comment:ask.metafilter.com,2017:site.304764-4413224Thu, 12 Jan 2017 12:05:43 -0800DevilsAdvocate