LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBA Code help - first timer


Hello all,

I am trying to write a UDF for Excel, and I haven't worked with VB
programming before. Here is what I want to do:

Two columns next to each other (for example, a and b, but no
necessarily those exact columns). Column A is filled wit
"distribution" amounts, are long decimal numbers (ie .0084840). Colum
B is filled with matching dollar amounts (ie 10.75). So, cells A1 an
B1 are a "record" or match, A2 and B2, all the way down to An and Bn (
being any number). What I want to do is take the distribution amounts
divide it by the dollar amount (ie A1/B1), add one to the fraction
then multiply all records together. In other words:

(1+(A1/B1))*(1+(A2/B2))*(1+(A3/B3))*.........*(1+(An/Bn)).

Any help? post back here or email me at

Thanks in advance

--
Poot
-----------------------------------------------------------------------
Poots's Profile:
http://www.excelforum.com/member.php...fo&userid=2415
View this thread: http://www.excelforum.com/showthread.php?threadid=37780

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
TIMER Jase Excel Discussion (Misc queries) 1 September 8th 08 10:22 PM
Stopping a Timer / Running a timer simultaneously on Excel Paul23 Excel Discussion (Misc queries) 1 March 10th 06 12:08 PM
Timer TJ Excel Programming 1 July 9th 04 03:18 PM
How to code a timer to trigger a sub-routine ? Joseph[_10_] Excel Programming 1 December 18th 03 12:48 PM
Timer Steve R[_2_] Excel Programming 3 December 5th 03 07:54 PM


All times are GMT +1. The time now is 06:16 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"