+ Reply to Thread
Results 1 to 5 of 5

Complicated Lookup and Sum formula needed!

  1. #1
    Registered User
    Join Date
    01-14-2016
    Location
    Bournemouth
    MS-Off Ver
    2007
    Posts
    2

    Complicated Lookup and Sum formula needed!

    I need some help with what I though was a simple formula, but turns out it isn't.

    I need to work out the servicing cost of an asset, depending on the number of miles travelled, which varies from asset to asset. The servicing costs also vary at different intervals.

    For example in the attached, I need to work out the servicing cost for the year for W1234, which has a start mileage of 7,000 miles and finish at 8,250. I need the formula to return that it requires a service at 7,000, 7250, 7500, 7750, 8000, and 8,250 miles, with a total cost of £4,122 (including the 7,000 mile service). This needs to go into cell D2.

    I feel it's a simple lookup and sum joint effort, but can't for the life of me work out how to do it.

    Thanks in advance.
    Attached Images Attached Images
    Last edited by glengoz; 01-14-2016 at 07:21 AM. Reason: Title Change

  2. #2
    Forum Expert
    Join Date
    03-23-2004
    Location
    London, England
    MS-Off Ver
    Excel 2019
    Posts
    7,064

    Re: Help with a challenging formula - please!

    Suggest you read Rule 1 and edit the subject title before a mod comes along

    http://www.excelforum.com/forum-rule...rum-rules.html
    Regards
    Special-K

    Ensure you describe your problem clearly, I have little time available to solve these problems and do not appreciate numerous changes to them.

  3. #3
    Registered User
    Join Date
    01-14-2016
    Location
    Bournemouth
    MS-Off Ver
    2007
    Posts
    2

    Re: Help with a challenging formula - please!

    Thanks for the heads up!

  4. #4
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,724

    Re: Help with a challenging formula - please!

    But now you have removed the text which describes what you want to achieve.

    Pete

  5. #5
    Forum Contributor
    Join Date
    06-30-2015
    Location
    Netherlands
    MS-Off Ver
    2013 / 2016 / 365
    Posts
    145

    Re: Help with a challenging formula - please!

    Hi,

    This formula =SUMPRODUCT((F2:F38>=B2)*(F2:F38<=C2)*G2:G38) results in the £4,122 you mentioned but this includes the start mileage cost as the end mileage cost as well.

    Just a word of warning.
    If you would enter the asset twice like this:
    assetnumber start end Service cost
    W1234 7000 8250 4122
    W1234 8250 8250 168


    The formula will sum the service cost amount for 8250 miles in both lines meaning the cost for 8250 will be included in the £4,122 as in the £168 as to my example.

+ 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. Very Challenging Multiple Cell Reference Formula
    By EverClever in forum Excel General
    Replies: 30
    Last Post: 12-20-2014, 11:26 AM
  2. [SOLVED] Challenging Formula Cumulative sum up to a number
    By crisaldana in forum Excel General
    Replies: 8
    Last Post: 06-17-2014, 10:42 AM
  3. Help with challenging array formula
    By chuji in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 06-22-2013, 02:11 AM
  4. Replies: 1
    Last Post: 08-24-2010, 07:12 AM
  5. Need Help with a challenging formula.
    By gamiensrule in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 07-16-2010, 10:05 PM
  6. [SOLVED] Challenging Formula
    By Gordon in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 06-23-2006, 04:30 PM
  7. Answers needed for challenging formula
    By Sum Limit and marking in forum Excel Formulas & Functions
    Replies: 16
    Last Post: 04-17-2006, 07:20 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