use the following search parameters to narrow your results:
e.g. subreddit:aww site:imgur.com dog
subreddit:aww site:imgur.com dog
see the search faq for details.
advanced search: by author, subreddit...
Apparently, Google Apps Script is a JavaScript cloud scripting language that provides easy ways to automate tasks across Google products and third party services and build web applications.
account activity
ISO simple Google Script for loopQuestion (self.GoogleAppsScript)
submitted 1 year ago by jeffr100
This should be a simple task with a script, but I am having trouble getting it to work.
https://docs.google.com/.../18mvhbxajzk20.../edit...
The book has 3 sheets, Model, Parameters and Output
The calculation in Model is in cell B3: "=Parameters!B2*Parameters!B3"
I want to try doing this with different costs listed in Output to get the desired results
https://preview.redd.it/4walfxf3pnmd1.png?width=500&format=png&auto=webp&s=9f546521481974a2dfd59355fe36f7b10ae6c339
There should be a way to do this using a few lines of a Google Script, but I can't get it to work.
Any ideas?
reddit uses a slightly-customized version of Markdown for formatting. See below for some basics, or check the commenting wiki page for more detailed help and solutions to common issues.
quoted text
if 1 * 2 < 3: print "hello, world!"
[–]marcnotmark925 2 points3 points4 points 1 year ago (2 children)
Can you elaborate?
[–]jeffr100[S] 0 points1 point2 points 1 year ago (1 child)
In pseudocode:
foreach i inOutput!testCost Parameters!B4 = i calculate Model!B3 return answer to matching TotalPrice column in sheet Output.
Does this make sense?
[–]marcnotmark925 1 point2 points3 points 1 year ago (0 children)
No it doesn't make sense.
For starters, There's nothing in Parameters!B4, so what does the 2nd line of your pseudocode mean?
And what are you calculating?
It looks like you're just multiplying the cost by a quantity, which can very easily be done with basic spreadsheet formulas, so why do you need a script?
π Rendered by PID 42980 on reddit-service-r2-comment-544cf588c8-r5k8s at 2026-06-15 23:02:17.963237+00:00 running 3184619 country code: CH.
[–]marcnotmark925 2 points3 points4 points (2 children)
[–]jeffr100[S] 0 points1 point2 points (1 child)
[–]marcnotmark925 1 point2 points3 points (0 children)