Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript
|
Javascript General Javascript discussions.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 29th, 2012, 08:33 AM
Registered User
 
Join Date: Mar 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Question set cell formula refers to another worksheet via javascript google docs

Sorry for my English. Simply using a Google document
I'm trying to google docs to prescribe the formula by javascript
There are 2 pages on one of these generic data, the second by the formula refers to the 1st Sheet
formula that's the plan.

Code:
=(ARRAYFORMULA(SUMIF('form'!$C:$C&'form'!$B:$B;$A2&$N$1;'form'!E:E)))
='sheet1'!$G10
=((('Тарифы'!$B$3)*C5)+(E5*('Тарифы'!$D$4))+(F5*('Тарифы'!$C$4))+(O5*('Тарифы'!$B$3)))-S5+T5-R5-Q5
=AVERAGE((ARRAYFORMULA(SUMIF('form'!$C:$C&'form'!$H:$H;$A13&O$1;'form'!$K:$K)))+(ARRAYFORMULA(SUMIF('form'!$C:$C&'form'!$H:$H;$A13&O$1;'form'!$L:$L)))+(ARRAYFORMULA(SUMIF('form'!$C:$C&'form'!$H:$H;$A13&O$1;'form'!$M:$M)))+(ARRAYFORMULA(SUMIF('form'!$C:$C&'form'!$H:$H;$A13&O$1;'form'!$N:$N))),(ARRAYFORMULA(SUMIF('form'!$C:$C&'form'!$H:$H;$A13&O$1;'form'!$O:$O))))
how to write the same thing in the javascript?
in guglhelpe have not found the answer
Formulas of this nature a lot, so it is advisable to paint.
Новинка! Нажмите на слова вверху, чтобы
 
Old March 29th, 2012, 03:33 PM
Registered User
 
Join Date: Mar 2012
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

when you enter a formula that's so
Code:
sheet.getRange(2, 1).setFormula('=(ARRAYFORMULA(SUMIF('form'!$C:$C&'form'!$B:$B;$A4&$N$1;'form'!E:E)))');
we get an error: Missing) after argument list.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Cell formula query Neal Excel VBA 1 October 19th, 2009 12:53 PM
apply named cell from another worksheet to existing formula wkt20 Excel VBA 1 September 18th, 2009 01:01 AM
Translating WorkSheet Formula in VBA AndyL Beginning VB 6 2 June 11th, 2008 04:13 AM
Using Formula on Active Cell manojkumarsoni Excel VBA 3 August 26th, 2007 08:56 AM
What would the formula "=+D4" do in a cell? BrianWren Excel VBA 2 February 2nd, 2006 03:36 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.