+ Reply to Thread
Results 1 to 5 of 5

Need help with a Custom Multiplication Function

  1. #1
    Registered User
    Join Date
    03-29-2017
    Location
    Sydney, Australia
    MS-Off Ver
    2010
    Posts
    2

    Need help with a Custom Multiplication Function

    Hi All,

    I was hoping someone would be able to help me with a small problem,

    I need a function that calculates a price based on duration,

    I would like to be able to choose a value from a drop down box (this being the length of time in sec) that would have an assigned rate attached to it that would be applied to the dollar amount in the following column giving the final rate in the following column,

    Example

    15 sec selected in dropbox will result in the below equation

    00:15 = (.06 x base rate) = Actual Cost

    Below are the Duration that will be used and the rates I need attached to them

    Time (selection)|Rate|Base rate|Actual Cost
    5 | 0.3 | $xxx | $xxx
    10 | 0.5 | $xxx | $xxx
    15 | 0.60 | $xxx | $xxx
    30 | 1.00 | $xxx | $xxx
    45 | 1.60 | $xxx | $xxx
    60 | 2.00 | $xxx | $xxx

    Image attached shows the above a bit clearer (2nd image)


    Its a bit confusing but any help would be greatly appreciated

    Thanks
    Attached Images Attached Images
    Last edited by camgraf; 03-29-2017 at 01:54 AM.

  2. #2
    Forum Expert avk's Avatar
    Join Date
    07-12-2007
    Location
    India
    MS-Off Ver
    Microsoft Office 2013
    Posts
    3,223

    Re: Need help with a Custom Multiplication Function

    using Vlookup or index match you can do. If you attach sample file its more helpful of both & quick result.


    atul


    If my answer (or that of other members) has helped you, please say "Thanks" by clicking the Add Reputation button at the foot of one of their posts.

    Also: if your problem is solved, please take the time to mark your thread as SOLVED by going to the top of your first post, selecting "Thread Tools" and then "Mark thread as solved".

  3. #3
    Forum Expert
    Join Date
    11-26-2013
    Location
    Colac, Victoria, Australia
    MS-Off Ver
    Excel 2016
    Posts
    1,309

    Re: Need help with a Custom Multiplication Function

    Welcome to the forum camgraf,

    It's difficult to understand what you're asking because you posted three examples, but is all of them you has $xxx in the result fields. I can't tell if the "base rate" you speak of varies, or is constant.

    That said, assuming you have the Data Validation dropdown in A1 on the same sheet you posted, the formula =VLOOKUP(A1,$A$4:$B$9,2,0) will display the rate.

    I hope this helps, please let me know!

    Regards,

    David

    If this has been helpful
    - Please click on the *Add Reputation button at the bottom left.

    Please mark your thread as SOLVED:
    - Click Thread Tools above your first post, select "Mark your thread as Solved".


  4. #4
    Forum Moderator Glenn Kennedy's Avatar
    Join Date
    07-08-2012
    Location
    Digital Nomad... occasionally based in Ireland.
    MS-Off Ver
    O365 (PC) V 2403
    Posts
    44,002

    Re: Need help with a Custom Multiplication Function

    If the times are entirely variable, you'll need a slightly different approach, but still using VLOOKUP

    =VLOOKUP(D2,$A$2:$B$7,2,TRUE)
    Attached Files Attached Files
    Glenn




    None of us get paid for helping you... we do this for fun. So DON'T FORGET to say "Thank You" to all who have freely given some of their time to help YOU.

    Temporary addition of accented to illustrate ongoing problem to the TT: L? fh?ile P?draig sona dhaoibh

  5. #5
    Registered User
    Join Date
    03-29-2017
    Location
    Sydney, Australia
    MS-Off Ver
    2010
    Posts
    2

    Re: Need help with a Custom Multiplication Function

    Got it sorted now,

    Cant thank you all enough

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 0
    Last Post: 11-20-2015, 12:34 PM
  2. Adding in a multiplication function to an existing macro
    By 6423joel in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-26-2013, 06:02 PM
  3. Replies: 1
    Last Post: 07-20-2012, 11:34 AM
  4. Replies: 2
    Last Post: 03-29-2012, 07:52 AM
  5. Transforming array multiplication from Excel to VBA function
    By gren in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-22-2012, 09:56 AM
  6. Chain linking matrix multiplication function
    By toadhall in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-03-2010, 12:09 PM
  7. Multiplication/addition function
    By Trixie in forum Excel General
    Replies: 4
    Last Post: 01-27-2009, 03:26 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