Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Web Programming > JavaScript > Javascript How-To
Javascript How-To Ask your "How do I do this with Javascript?" questions here.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Javascript How-To 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 February 5th, 2007, 05:41 PM
Registered User
Join Date: Feb 2007
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default Excel to Javascript formula assistance

Can someone please assist w/ a formula conversion Excel to javascript? The Excel formula is:

What I have so far is listed below up to the "???"; adding the 2nd "IF" is what's throwing me off...

if (B3<1)

((I3*12)+(U3))+ ???

Any help is greatly appreciated. Thanks!
Old February 6th, 2007, 10:25 AM
Friend of Wrox
Join Date: Jul 2003
Posts: 683
Thanks: 0
Thanked 1 Time in 1 Post

(I3 * 12) + U3 + (S3 < 1 ? 0 : (S3 - K3) / 3)



Similar Threads
Thread Thread Starter Forum Replies Last Post
convert Excel formula to JavaScript amwith Javascript How-To 3 March 7th, 2008 06:31 AM
Excel Formula zachtom Excel VBA 4 May 6th, 2006 08:02 PM
Formula in Excel davekrunal46 Excel VBA 1 December 5th, 2005 06:51 AM
converting excel formula to javascript bRvO Javascript How-To 10 January 10th, 2005 12:41 PM
assistance writing code for a javascript arrray elogics Classic ASP Basics 1 December 30th, 2003 05:24 PM

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