Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 06-22-2016, 12:58 PM
hoopslogan hoopslogan is offline Creating a user defined function in VBA Windows XP Creating a user defined function in VBA Office 2010 64bit
Novice
Creating a user defined function in VBA
 
Join Date: Jun 2016
Posts: 1
hoopslogan is on a distinguished road
Default Creating a user defined function in VBA

Hi,



I need to create a function in VBA that produces three columns of values.
The chart below is what I have. The first two columns need to be passed as an array into this function. The values of Y, X, and the Gini Value need to be the output of this function into this table. The formula for the Y variables is as follows: E5=SUM(D5:$D$17)/$D$19 E6=SUM(D6:$D$17)/$D$19 and so on all the way down to E17. The formula for X is the same thing except with C's instead of D's. The Third Column has the formula G5=(F5-F6)*(E5+E6) G6=(F6-F7)*(E6+E7) and so on. At the bottom, Area=SUM(G5:G17), DR=Total Defaults/Total Count, and Gini=(G19-1)/(1-G20). Can someone help please?
CountDefaultsYnXnIncrement11570110.0759659891713010.9620170.1124716851759010.9057810.1154919413288410.8480350.213645479432670.9792750.7400940.272997682457580.9430050.5980760.2770381834490180.9015540.4478840.2520338164065160.808290.3004830.20466842974270.7253890.1670330.1279852791398290.5854920.06940.046845937353330.4352330.0235050.008106008290380.2642490.0119170.00315701473130.0673580.0023970.0001614230030461193Area1.710568836DR0.006335971Gini0.715099686
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating a user defined function in VBA FileSystemObject Compile Error: User-Defined Type Not Defined gsrikanth Excel Programming 2 03-28-2022 06:32 AM
User Defined Fields daveybops Outlook 1 05-06-2014 10:25 AM
Creating a user defined function in VBA User-defined Type not Defined VBA Issue OTPM Project 3 01-02-2014 01:47 PM
[HELP]Word: sub or function not defined royankidding Word VBA 0 08-29-2013 12:11 AM
Creating a user defined function in VBA Excel 2003 User Defined Function Allan_H Excel 1 03-08-2013 09:36 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:18 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft