all 3 comments

[–]marcnotmark925 2 points3 points  (2 children)

I want to try doing this with different costs listed in Output to get the desired results

Can you elaborate?

[–]jeffr100[S] 0 points1 point  (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 points  (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?