Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Function macro
Hi All,
Using excel 2007 on Vista and would like to make a macro function to do this. A= Amount for disbursement R= Number of rank numbers (usually between 8 to 22) B = A*5% to goto the lowest rank C = A*25% to goto the highest rank The balance of A to be distributed in a linear trend over the remaining Ranked numbers. In a simplified explanation say "A" = 100, "B" = 5 (5% of 100) "C" = 25 (25% of 100) So that takes 30 of the 100 leaving 70 (70%) to be distributed in a linear mode. The second lowest ranked number would be slightly larger then 5% whilst the second highest ranked number would be slightly lower than 25% I would round down to 1 decimal place. I was thinking along the line of an array function but can't get my head around it. On my spreadsheet I would like to enter in D2 the amount and in E2 the number of ranked numbers, then for the function macro to be addressed from another macro for placement of results. Any pointers please. I can't find a built in function that will do this. Skinman. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Sub Macro vrs Function Macro Auto Start | Excel Discussion (Misc queries) | |||
Macro For If Function | Excel Programming | |||
How Do I (Macro Function)? | Excel Worksheet Functions | |||
how to count/sum by function/macro to get the number of record to do copy/paste in macro | Excel Programming | |||
Function or macro help | Excel Programming |