How to Create an XL Worksheet for Continued Fractions
From the Desktop, select the green X for XL on the Dock to open Excel, and select File, Open a New Workbook from the menu., Open Preferences from the "Excel" menuitem., Open the "Continued Fractions" worksheet saved from the previous article, "How...
Step-by-Step Guide
-
Step 1: From the Desktop
Or, open Excel from within your Applications folder, and select File, Open a New Workbook from the menu.
Or, better yet, from the previous article on Continued Fractions, Start Working with Continued Fractions, open it and use the worksheet, Approach
2. , Recommended Settings:
Set General to R1C1 Off and Show the 10 Most Recent Documents; Edit
- set all the Top options to checked except Automatically Convert Date System.
Display number of decimal places = blank (for integers preferred), Preserve display of dates and set 30 for 21st century cutoff; View
- show Formula Bar and status bar, hover for comments and all of Objects, Show gridlines and all boxes below that auto or checked; Chart
- show chart names and data markers on hover.
Leave rest unchecked for now; Calculation
-- Automatically and calc before save, max change .000,000,000,000,01 w/o commas if you do goal-seeking a lot and save external link values and use 1904 system; Error checking
- check all; Save
- save preview picture with new files and Save Autorecover after 5 minutes; Ribbon
-- all checked except Hide group titles and Developer (unless you plan to write macros). , Label worksheet 1 "Approach 1" and label worksheet 2 "Approach 2"
or something similar.,,, For each String Formula in column G, you must manually copy it and do Edit Paste Values into cell to the right, eg. paste special values into H4 from G4, or H5 from G5, etc.
And then in the Formula Bar, you must click past the right end of the formula with the mouse as if editing, then hit the Enter or Return key, This will convert the string into an actual formula! Otherwise, a macro might be used, but that is beyond the scope of this article.
The result in H4 should be
4.46236559139785; the result in H5 should be
2.16279069767442; the result in H6 should be
6.14285714285714; and the result in H7 should be
7.00000 ... for your future reference; Enter, without quotes, the formula "=INT(H4)" into cell I4
-- the returned value should be the Integer Part, 4 of the Decimal Number,
4.46236559139785; Enter, without quotes, the formula "=H4-I4" into cell J4
-- the returned value should be the Decimal Part .46236559139785 of the Decimal Number,
4.46236559139785; Enter, without quotes, the formula "=ROUND(J4*F4,0)" into cell K4
-- the returned value should be the Rounded Remainder, 43; Enter, without semi-quotes, the formula '=K4&"/"&F4' into cell L4
-- the returned value should be the Fraction String, 43/93; Enter, without quotes, the formula "=F4" into cell M4
-- the returned value should be the Inverted Numerator, 93; Enter, without quotes, the formula "=K4" into cell N4
-- the returned value should be the Inverted Denominator, 43; Enter, without the external semi-quotes but keeping the 2 internal quotes to the formula, the formula '=IF(I4<>0,I4,"")' into cell O4
-- the returned value should be the (first part of the) Answer, 4
-- Format Cell Fill Canary Yellow; Enter, without the external semi-quotes but keeping the 2 internal quotes to the formula, the formula '=IF(O4<>""
P3+1,0)' into cell P4
-- the returned value should be the (first part of the) Max formula, 1; Select cell range B4:
P21 and Edit Fill Down; Select cell range H4:
H23 and Format Cells Border Bold Outline Dark Blue per cell.; Select cell range H5:
H21 and Edit Clear Contents
-- this is where you will do the tricky part of pasting special the values and editing in the formula bar to turn the string into a live formula manually; Enter, without the external semi-quotes but keeping the 2 internal quotes to the formula, the formula '=M4&"/"&N4' into cell B5
-- the returned value should be the Inverted Fraction(s); Select cell range B5:
B21 and do Edit Fill Down; Select cell range B2:
N21 and do Format Cells Border Dark Blue Boldest Border Surrounding Border to all the cells; Select cell range B2:
O21 and do Format Cells Border Dark Blue Boldest Border Surrounding Border to all the cells; Select cell range B2:
P23 and do Format Cells Border Dark Blue Boldest Border Surrounding Border to all the cells; Select cell G22 and enter, without quotes but with the trailing space, "ANSWER: "
and do the same for cell G23; Enter to cell H22 the formula, without surrounding semi-quotes but keeping all internal quote marks, '=""'
-- the result of this formula will be ; Enter to cell H23 the formula, without surrounding semi-quotes but keeping all internal quote marks, '=MID(H22,1,MAX(P4:
P20)*IF(MAX(P4:
P20)>9,2.5,2)+MAX(P4:
P20)-1)&IF(MAX(P4:
P20)>9,""
"]")'
-- the result of this formula will be , the Answer.
Go ahead now and do the tricky part for cells H5, H6 and H7 by copying the formulas in G5 and doing Paste Special Values to H5, then editing in the Formula Bar at the far right of the formula with the Edit Bar of the mouse, once, then clucking Enter (or Return).
Do so for G6--H6 and G7--H7 as well.
Check your results with the values given above "for future reference".
Your Final Answer then should be .
Hooray! You finished the hard part! -
Step 2: select the green X for XL on the Dock to open Excel
-
Step 3: and select File
-
Step 4: Open a New Workbook from the menu.
-
Step 5: Open Preferences from the "Excel" menuitem.
-
Step 6: Open the "Continued Fractions" worksheet saved from the previous article
-
Step 7: "How to Start Working with Continued Fractions"
-
Step 8: or whatever filename you saved it under.
-
Step 9: Enter a 1 into cell A4 and label the number of computations to be done via also doing Format Number Custom "00) " for the 1 in cell A4; and Select cell range A4:A21 and do Edit Fill Series (and leave the settings at Columns
-
Step 10: Linear
-
Step 11: Step Value 1)
-
Step 12: Enter the Column Heading into Rows 2 and 3: Enter the label Fraction to cell B3 (just enter the word "Fraction"
-
Step 13: w/o quotes); Enter the label Find "/" to cell C3 (please include the quote marks; Enter the label Length to cell D3; Enter the label Numerator to cell E3; Enter the label Denominator to cell F3; Enter the label String to cell G2 and the label Formula to cell G3; Enter the label Decimal to cell H2 and the label Number to cell H3; Enter the label Integer to cell I2 and the label Part to cell I3; Enter the label Decimal to cell J2 and the label Part to cell J3; Enter the label Rounded to cell K2 and the label Remainder to cell K3; Enter the label Fraction to cell L2 and the label String to cell L3; Enter the label Inverted to cell M2 and copy and paste it to N2; Enter the label Numerator to cell M3 and the label Denominator to N3; Enter the label A to cell O3 -- it stands for Answer; Enter the label f to cell P3 -- it stands for formula; Select rows R1:R3 and format Align Center and format Bold using the tool buttons; Select columns B:P and format Align Center and Format Number 0 decimal places
-
Step 14: use comma; and Select columns H and J using the Command key and Format Cells Number 15 decimal places.
-
Step 15: Enter the cell formulas into row 4: Without a preceding = sign
-
Step 16: enter the label 415/93 into cell B4 -- it is from the Wikipedia article on Continued Fractions
-
Step 17: so that you may check the results; Enter
-
Step 18: without semi-quotes
-
Step 19: the formula '=FIND("/"
-
Step 20: B4)' into cell C4 -- the returned value should be 4; Enter
-
Step 21: without quotes
-
Step 22: the formula "=LEN(B4)" into cell D4 -- the returned value should be 6; Enter
-
Step 23: without quotes
-
Step 24: the formula "=VALUE(MID(B4
-
Step 25: C4-1))" into cell E4 -- the returned value should be 415 (that is
-
Step 26: the MID function starts with the 1st character
-
Step 27: and finds the string equal to the occurrence of "/"
-
Step 28: less 1 -- that is 3 characters
-
Step 29: the numerator 415); Enter
-
Step 30: without quotes
-
Step 31: the formula "=VALUE(MID(B4
-
Step 32: D4-C4))" into cell F4 -- the returned value should be 93
-
Step 33: the denominator; Enter
-
Step 34: without surrounding semi-quotes but keeping the quotes internal to the formula
-
Step 35: the formula '="="&E4&"/"&F4' into cell G4 -- the returned value should be the string =415/93
-
Step 36: the fraction; Warning: Tricky Part!
Detailed Guide
Or, open Excel from within your Applications folder, and select File, Open a New Workbook from the menu.
Or, better yet, from the previous article on Continued Fractions, Start Working with Continued Fractions, open it and use the worksheet, Approach
2. , Recommended Settings:
Set General to R1C1 Off and Show the 10 Most Recent Documents; Edit
- set all the Top options to checked except Automatically Convert Date System.
Display number of decimal places = blank (for integers preferred), Preserve display of dates and set 30 for 21st century cutoff; View
- show Formula Bar and status bar, hover for comments and all of Objects, Show gridlines and all boxes below that auto or checked; Chart
- show chart names and data markers on hover.
Leave rest unchecked for now; Calculation
-- Automatically and calc before save, max change .000,000,000,000,01 w/o commas if you do goal-seeking a lot and save external link values and use 1904 system; Error checking
- check all; Save
- save preview picture with new files and Save Autorecover after 5 minutes; Ribbon
-- all checked except Hide group titles and Developer (unless you plan to write macros). , Label worksheet 1 "Approach 1" and label worksheet 2 "Approach 2"
or something similar.,,, For each String Formula in column G, you must manually copy it and do Edit Paste Values into cell to the right, eg. paste special values into H4 from G4, or H5 from G5, etc.
And then in the Formula Bar, you must click past the right end of the formula with the mouse as if editing, then hit the Enter or Return key, This will convert the string into an actual formula! Otherwise, a macro might be used, but that is beyond the scope of this article.
The result in H4 should be
4.46236559139785; the result in H5 should be
2.16279069767442; the result in H6 should be
6.14285714285714; and the result in H7 should be
7.00000 ... for your future reference; Enter, without quotes, the formula "=INT(H4)" into cell I4
-- the returned value should be the Integer Part, 4 of the Decimal Number,
4.46236559139785; Enter, without quotes, the formula "=H4-I4" into cell J4
-- the returned value should be the Decimal Part .46236559139785 of the Decimal Number,
4.46236559139785; Enter, without quotes, the formula "=ROUND(J4*F4,0)" into cell K4
-- the returned value should be the Rounded Remainder, 43; Enter, without semi-quotes, the formula '=K4&"/"&F4' into cell L4
-- the returned value should be the Fraction String, 43/93; Enter, without quotes, the formula "=F4" into cell M4
-- the returned value should be the Inverted Numerator, 93; Enter, without quotes, the formula "=K4" into cell N4
-- the returned value should be the Inverted Denominator, 43; Enter, without the external semi-quotes but keeping the 2 internal quotes to the formula, the formula '=IF(I4<>0,I4,"")' into cell O4
-- the returned value should be the (first part of the) Answer, 4
-- Format Cell Fill Canary Yellow; Enter, without the external semi-quotes but keeping the 2 internal quotes to the formula, the formula '=IF(O4<>""
P3+1,0)' into cell P4
-- the returned value should be the (first part of the) Max formula, 1; Select cell range B4:
P21 and Edit Fill Down; Select cell range H4:
H23 and Format Cells Border Bold Outline Dark Blue per cell.; Select cell range H5:
H21 and Edit Clear Contents
-- this is where you will do the tricky part of pasting special the values and editing in the formula bar to turn the string into a live formula manually; Enter, without the external semi-quotes but keeping the 2 internal quotes to the formula, the formula '=M4&"/"&N4' into cell B5
-- the returned value should be the Inverted Fraction(s); Select cell range B5:
B21 and do Edit Fill Down; Select cell range B2:
N21 and do Format Cells Border Dark Blue Boldest Border Surrounding Border to all the cells; Select cell range B2:
O21 and do Format Cells Border Dark Blue Boldest Border Surrounding Border to all the cells; Select cell range B2:
P23 and do Format Cells Border Dark Blue Boldest Border Surrounding Border to all the cells; Select cell G22 and enter, without quotes but with the trailing space, "ANSWER: "
and do the same for cell G23; Enter to cell H22 the formula, without surrounding semi-quotes but keeping all internal quote marks, '=""'
-- the result of this formula will be ; Enter to cell H23 the formula, without surrounding semi-quotes but keeping all internal quote marks, '=MID(H22,1,MAX(P4:
P20)*IF(MAX(P4:
P20)>9,2.5,2)+MAX(P4:
P20)-1)&IF(MAX(P4:
P20)>9,""
"]")'
-- the result of this formula will be , the Answer.
Go ahead now and do the tricky part for cells H5, H6 and H7 by copying the formulas in G5 and doing Paste Special Values to H5, then editing in the Formula Bar at the far right of the formula with the Edit Bar of the mouse, once, then clucking Enter (or Return).
Do so for G6--H6 and G7--H7 as well.
Check your results with the values given above "for future reference".
Your Final Answer then should be .
Hooray! You finished the hard part!
About the Author
George Ferguson
Brings years of experience writing about cooking and related subjects.
Rate This Guide
How helpful was this guide? Click to rate: