+ Reply to Thread
Results 1 to 4 of 4

Sum up costs for different rates formula

  1. #1
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Sum up costs for different rates formula

    Hi,

    i want to sum up costs in table for different rates.

    Miki Pola Cost
    1 4 140 USD
    2 40 USD
    3 90 USD

    i have a table for 2 names.

    And now Miki's rate is 20 usd, Pola's rate is 30 usd per hour.
    In table there is a number of hours per each Name.

    So when Miki has 1 hour, Pola has 4 hours it gives us = 1 * 20 USD + 4 * 30 USD = 140 USD of costs.

    How to write one easy formula to make this summing up?

    Best,
    Jacek
    Attached Files Attached Files

  2. #2
    Forum Expert Sam Capricci's Avatar
    Join Date
    06-14-2012
    Location
    Palm Harbor, Florida
    MS-Off Ver
    16.84 for Mac MS 365
    Posts
    8,499

    Re: Sum up costs for different rates formula

    this would be one way... =IF(AND(A2<>"",B2<>""),A2*20+B2*30,IF(AND(A2<>"",B2=""),A2*20,IF(AND(A2="",B2<>""),B2*30,"")))
    Make contributors happy, click on the "* Add Reputation" as a way to say thank you.
    Sam Capricci

  3. #3
    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,053

    Re: Sum up costs for different rates formula

    See file. This might work... but I suspect you'll need Option 2 for anything before O365...


    =SUMPRODUCT(A2:B2*VLOOKUP(Table1[[#Headers],[Miki]:[Pola]],F:G,2,FALSE))

    or (Option 2)

    =SUMPRODUCT(A2:B2*VLOOKUP(T(INDEX(+Table1[[#Headers],[Miki]:[Pola]],)),F:G,2,FALSE))
    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

  4. #4
    Forum Contributor
    Join Date
    01-16-2014
    Location
    Poland
    MS-Off Ver
    Excel 2016-365
    Posts
    2,940

    Re: Sum up costs for different rates formula

    Thank you Sam and Glenn!

    What does it mean "+" next to INDEX function?

    Best,
    Jacek
    Last edited by jaryszek; 03-23-2023 at 02:50 AM.

+ 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. [SOLVED] Formula to calculate total shipping costs into prorata costs
    By Torazul in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 01-23-2023, 06:57 PM
  2. [SOLVED] Calculate Total Costs based on Recurring Costs, Start Date, and Frequency
    By edaniel202 in forum Excel Formulas & Functions
    Replies: 5
    Last Post: 03-05-2021, 12:18 PM
  3. find out hire rates costs for multiple hire and of hire dates
    By ssk1966 in forum Excel - New Users/Basics
    Replies: 10
    Last Post: 01-14-2021, 07:00 AM
  4. Replies: 3
    Last Post: 12-08-2020, 12:22 PM
  5. working out weekday rates vs weekend rates
    By scott11106 in forum Excel General
    Replies: 3
    Last Post: 08-29-2015, 12:14 PM
  6. Replies: 3
    Last Post: 07-28-2014, 08:57 PM
  7. Formula For Costs. ?
    By Omnio in forum Excel - New Users/Basics
    Replies: 2
    Last Post: 08-02-2005, 04:08 AM

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