+ Reply to Thread
Results 1 to 5 of 5

Weighted Average Rate Code

  1. #1
    Registered User
    Join Date
    09-21-2010
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    18

    Weighted Average Rate Code

    I need help making a code that will find the Weighted Averaghe Rate and put it in Cell E6 of the Customer 1 and 2 tabs. I really am not even sure on how to start in write it. In the Customer tabs, the code would have to find the row with "Note" in Column B. Then in that row, it would need to mulitply the Account Balance by $B$6 then divide that by the Rate. After that it would have to sum all of those calculation and put it in $G$6 of each customer tab. Sorry if this is confusing. Is this code possible? I attached my workbook.

    Thanks for the help
    Nick
    Attached Files Attached Files
    Last edited by Nick3535; 10-08-2010 at 03:43 PM.

  2. #2
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Weighted Average Rate Code

    Nick - could you provide your expected answer for one or both customers?

  3. #3
    Registered User
    Join Date
    09-21-2010
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: Weighted Average Rate Code

    I'm sorry. I wrote that wrong. It would have to Divide the Account Balance By the $B$6 then multiply that by the Rate. The answer in Cell G6 would be 6.20% for customer 1.

    Thanks
    Nick

  4. #4
    Forum Guru
    Join Date
    08-26-2007
    Location
    London
    Posts
    4,606

    Re: Weighted Average Rate Code

    This array formula seems to work. Enter with ctrl+shift+enter

    =SUM(IF($B$11:$B$26="Note",$E$11:$E$26*$G$11:$G$26),0)/$B$6

  5. #5
    Registered User
    Join Date
    09-21-2010
    Location
    USA
    MS-Off Ver
    Excel 2003
    Posts
    18

    Re: Weighted Average Rate Code

    Wow. I didn't think about doing it that way. Thats much easier. Thanks

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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