Results 1 to 6 of 6

Code expression for SUMPRODUCT

Threaded View

  1. #1
    Registered User
    Join Date
    12-19-2014
    Location
    Maryland
    MS-Off Ver
    Office 2010
    Posts
    40

    Code expression for SUMPRODUCT

    Good Morning Everyone,

    I am stuck on getting the code expression right on a SUMPRODUCT function in my code for a project and could use some help. Here is my code that I need help with:

    txtMultiplier.Value = Application.WorksheetFunction.SUMPRODUCT(--(txtCostEach>=Sheet4!(D5:D30),--(txtCostEach<=Sheet4!(E5:E30),Sheet4(F5:F30))

    I am looking up the correct multiplier in order to multiply by the cost to determine ultimately the sell price for the part. Basically, if the cost each value is equal to or greater than the values in column D5 thru D30 and less then or equal to the value in Column E5:E30 it produces the appropriate Multiplier From Column F5:F30.

    I have the formula calculating quite nicely on the worksheet, but can't seem to get the code expression right to make it functional in my code. Could anyone assist with the right expression?

    Here is an example file of what I am trying to do: SUMPRODUCT Function Find Multiplier Example.xlsm

    Thanks,
    Larry
    Last edited by larrysdime; 02-04-2015 at 09:54 AM.

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Assistance with Vlookup VBA Code Expression
    By larrysdime in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 02-03-2015, 02:00 PM
  2. [SOLVED] sumproduct formula using a wildcard expression
    By maacmaac in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 09-15-2014, 02:39 AM
  3. How to insert a cell reference into a sumproduct expression?
    By Steve Rutkey in forum Excel General
    Replies: 13
    Last Post: 05-28-2011, 08:55 PM
  4. Sumproduct formula:Empl Code Payroll Code Amount
    By bluemeg in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 09-30-2009, 02:08 PM
  5. sumproduct in code
    By papa jonah in forum Excel General
    Replies: 2
    Last Post: 03-16-2005, 03:06 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