+ Reply to Thread
Results 1 to 7 of 7

Calculate cost of the delivery with several criteria

  1. #1
    Registered User
    Join Date
    03-03-2014
    Location
    essex
    MS-Off Ver
    Excel 2010
    Posts
    7

    Unhappy Calculate cost of the delivery with several criteria

    I'm having trouble trying to work out what formula to use for the following calculation. I need to work out the cost of the delivery there is different services available and also different size packages. Would be grateful for any guidance.


    Book1.xlsx
    Last edited by zbor; 03-06-2014 at 04:42 AM.

  2. #2
    Forum Guru Kaper's Avatar
    Join Date
    12-14-2013
    Location
    Warsaw, Poland
    MS-Off Ver
    most often: Office 365 in Windows environment
    Posts
    8,863

    Re: Formula but what one is best?

    The data layout is not convenient, but for F2:

    =B2*OFFSET($C$22,E2+(D2="ND")*8,0)+C2*OFFSET($B$22,E2+(D2="ND")*8,0)+IF(A2<>0,OFFSET($C$22,E2+(D2="ND")*8,A2),0)

    and copy down

    shall work.

    there are 3 parts (for halfs and qtrs similar): using offset by zone number + offset 8 down if ND service
    =B2*OFFSET($C$22,E2+(D2="ND")*8,0)
    and
    =C2*OFFSET($B$22,E2+(D2="ND")*8,0)
    for full - offset down as above + offset right by the number
    =IF(A2<>0,OFFSET($C$22,E2+(D2="ND")*8,A2),0)
    Best Regards,

    Kaper

  3. #3
    Forum Moderator - RIP Richard Buttrey's Avatar
    Join Date
    01-14-2008
    Location
    Stockton Heath, Cheshire, UK
    MS-Off Ver
    Office 365, Excel for Windows 2010 & Excel for Mac
    Posts
    29,464

    Re: Formula but what one is best?

    Hi,

    See if the attached helps.

    It's not clear from your data which is the FULL list of prices. I have assumed it's column G on sheet 2 of the attached but no doubt you can adjust accordingly if you follow the general technique.
    Attached Files Attached Files
    Richard Buttrey

    RIP - d. 06/10/2022

    If any of the responses have helped then please consider rating them by clicking the small star icon below the post.

  4. #4
    Registered User
    Join Date
    03-03-2014
    Location
    essex
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Formula but what one is best?

    Thank you very much Kaper that works a treat, you said the data layout was not convenient what would be the best way to layout the data.

  5. #5
    Registered User
    Join Date
    03-03-2014
    Location
    essex
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Formula but what one is best?

    I have noticed an error in the formula when trying to calculate more than one full package the formula multiplies the number of packages by the rate for one full package instead of using the rates for 2/3/4 packages sent. Please help!

  6. #6
    Forum Moderator zbor's Avatar
    Join Date
    02-10-2009
    Location
    Croatia
    MS-Off Ver
    365 ProPlus
    Posts
    16,037

    Re: Formula but what one is best?

    Your post does not comply with Rule 1 of our Forum RULES. Your post title should accurately and concisely describe your problem, not your anticipated solution.

    Use terms appropriate to a Google search. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will be addressed according to the OP's experience in the forum: If you have less than 10 posts, expect (and respond to) a request to change your thread title. If you have 10 or more posts, expect your post to be locked, so you can start a new thread with an appropriate title.

    To change a Title on your post, click EDIT then Go Advanced and change your title, if 2 days have passed ask a moderator to do it for you.

    (This thread should receive no further responses until this moderation request is fulfilled, as per Forum Rule 7)
    Never use Merged Cells in Excel

  7. #7
    Registered User
    Join Date
    03-03-2014
    Location
    essex
    MS-Off Ver
    Excel 2010
    Posts
    7

    Re: Formula but what one is best?

    Apologies please can you change the title of the thread as it was started three days ago. thank you

+ 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. how to hide formula in formula box, view lookup result in formula box?
    By vengatvj in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 10-14-2013, 04:06 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