Results 1 to 14 of 14

IF Statement in VBA

Threaded View

arthur1974 IF Statement in VBA 10-31-2013, 05:38 AM
Norie Re: IF Statement in VBA 10-31-2013, 05:52 AM
arthur1974 Re: IF Statement in VBA 10-31-2013, 05:58 AM
Norie Re: IF Statement in VBA 10-31-2013, 06:05 AM
arthur1974 Re: IF Statement in VBA 10-31-2013, 06:08 AM
Norie Re: IF Statement in VBA 10-31-2013, 06:18 AM
arthur1974 Re: IF Statement in VBA 10-31-2013, 06:38 AM
Norie Re: IF Statement in VBA 10-31-2013, 06:43 AM
arthur1974 Re: IF Statement in VBA 10-31-2013, 06:47 AM
Norie Re: IF Statement in VBA 10-31-2013, 06:49 AM
arthur1974 Re: IF Statement in VBA 10-31-2013, 06:56 AM
arthur1974 Re: IF Statement in VBA 10-31-2013, 07:36 AM
Norie Re: IF Statement in VBA 10-31-2013, 07:41 AM
arthur1974 Re: IF Statement in VBA 10-31-2013, 07:45 AM
  1. #1
    Registered User
    Join Date
    10-23-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    10

    IF Statement in VBA

    Hi,

    I have devised an Excel Motor Calculator Spreadsheet, however I'm having trouble calculating a certain variable, the motor displacement. This is due to the motor displacement having two different formulas, which obviously use different variables. The two formulas in question are below:

    (1) MotorDisplacement = (Flow * 1000 * VolumetricEfficiency) / Speed

    (2) MotorDisplacement = (MotorTorque1 * 20 * 3.142) / (PressureDifferential * MechanicalEfficiency)


    I'm guessing I need to use an IF stament to basically say - IF Volumetric Efficiency, Flow and Speed are known, use equation (1) to calculate the displacement, or IF Motor Troque, Pressure Differential and Mechanical Efficiency are knoqn, use equation (2).

    Please could someone assist me with the code?

    I've attached the spreadsheet in question.

    Thanks.
    Attached Files Attached Files
    Last edited by arthur1974; 10-31-2013 at 05:41 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. VBA Compile Error : line number or label or statement or end of statement
    By excellearner121 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 06-04-2013, 06:41 PM
  2. [SOLVED] Combining If Statement, Is Blank Statement and HLookUp
    By kimberlyre2000 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 11-29-2012, 01:27 PM
  3. Replies: 4
    Last Post: 06-01-2012, 10:05 AM
  4. Replies: 4
    Last Post: 05-16-2012, 05:33 PM
  5. [SOLVED] Utilize a Select Case Statement in Target Intersect Statement
    By max57 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 07-29-2009, 08:55 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1