Google sheets to use a web calculator.

How can I use google sheets to use a web calculator.
Enter Amount, Term, & Interest Rate & return the 2 resulting values given by the calculator into the google sheet
Steve HarrisAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

zvitamConsultantCommented:
you implement the calculator within google sheets by using formulas & functions.
0
mohan singhWeb developerCommented:
yes Mr ZVITAM is correct use formulas and create function

 create function like this
<?php

function interest($invest,$year,$rate=15,$n=1){
    $accumulated=0;
    if ($year > 1){
            $accumulated=interest($invest,$year-1,$rate,$n);
            }
    $accumulated += $invest;
    $accumulated = $accumulated * pow(1 + $rate/(100 * $n),$n);
    return $accumulated;
    }

?>
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Steve HarrisAuthor Commented:
Thank you for your reply. I did try to do this in Sheets;but, in this situation I'd need to use "GoalSeek" which is not available.

Sub Calculate()

   Sheets("Amort").Range("N22").Offset(rowOffset:=Sheets("Amort").Range("J5").Value, columnOffset:=0).GoalSeek Goal:=0, ChangingCell:=Sheets("Amort").Range("P10")
   Sheets("Amort").Range("W22").Offset(rowOffset:=Sheets("Amort").Range("J5").Value, columnOffset:=0).GoalSeek Goal:=0, ChangingCell:=Sheets("Amort").Range("P12")
   Sheets("Amort").Range("AY22").Offset(rowOffset:=Sheets("Amort").Range("J5").Value, columnOffset:=0).GoalSeek Goal:=0, ChangingCell:=Sheets("Amort").Range("P14")
       
End Sub

W22, N22, AY22 are the Loan amount 25,000.
J5 is 240 (20 Years)

My other alternative is to scrape the data from web, see picture attached
8F447AA5-3FF3-4664-B8B9-FDF0ED0AD93F.png
0
Steve HarrisAuthor Commented:
Thanks again,
I've created a new question for this at:

Google sheets to enter Amount in a Special web calculator
0
Steve HarrisAuthor Commented:
I am closing this as I have Asked a new Question at:
Google sheets to enter Amount in a Special web calculator
Posted on 2018-04-25

Which better defines what I am looking for.
I thank those that gave me new insight into php
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.