+ Reply to Thread
Results 1 to 5 of 5

Post Codes with Different numbers with Different Postage Costs

  1. #1
    Registered User
    Join Date
    07-10-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    3

    Post Codes with Different numbers with Different Postage Costs

    Hi,

    I am new to this type of forum.

    I have a list of postcodes with ranges (eg BH1-25 & BH26-50) each of these 2 different areas has a different postage cost.

    I want to find the postage cost from a post code ie comparing the first letters to a list and then doing some sort of greater than and less than from maybe 2 other lists.

    ab 1 25 CALL
    ab 26 99 91.43
    AL 1 99 41.12
    b 1 99 37.25
    ba 1 99 41.12
    bb 1 99 41.12
    bd 1 99 41.12
    bh 1 10 42.41
    bh 11 23 53.38
    bh 24 99 47.80

    For example from above for BH15 returning 53.38. I have taken and split the letters from the numbers so have BH in a cell and 15 in a cell.

    Any ideas / help - Must be some sort of array of lookup and sumif ???

    Thanks

    Steve

  2. #2
    Forum Contributor
    Join Date
    05-09-2013
    Location
    United Kingdom
    MS-Off Ver
    Excel 2013
    Posts
    259

    Re: Post Codes with Different numbers with Different Postage Costs

    Hi, post an example of the workbook with just enough data to test. Also some before and after results and how you got there would be good. Once you have done this I would expect you to get a swift answer. In the mean time try Vlookup to get the costs from the postcode.

  3. #3
    Forum Guru martindwilson's Avatar
    Join Date
    06-23-2007
    Location
    London,England
    MS-Off Ver
    office 97 ,2007
    Posts
    19,320

    Re: Post Codes with Different numbers with Different Postage Costs

    you can use sumproduct like this
    SUMPRODUCT(--(A1:A10=F1),--(B1:B10<=G1),--(C1:C10>=G1),D1:D10)
    or even
    =IF(SUMPRODUCT(--(A1:A10=F1),--(B1:B10<=G1),--(C1:C10>=G1),D1:D10)=0,"call",SUMPRODUCT(--(A1:A10=F1),--(B1:B10<=G1),--(C1:C10>=G1),D1:D10))
    see attached
    Attached Files Attached Files
    "Unless otherwise stated all my comments are directed at OP"

    Mojito connoisseur and now happily retired
    where does code go ?
    look here
    how to insert code

    how to enter array formula

    why use -- in sumproduct
    recommended reading
    wiki Mojito

    how to say no convincingly

    most important thing you need
    Martin Wilson: SPV
    and RSMBC

  4. #4
    Registered User
    Join Date
    07-10-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Post Codes with Different numbers with Different Postage Costs

    Hi,

    Thanks for quick reply.

    Just played around with a few ideas to seperate out the letters from numbers. This can be simpler.

    Just need the cost for the code and number range.

    ThanksPostage.xlsx

  5. #5
    Registered User
    Join Date
    07-10-2013
    Location
    UK
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Post Codes with Different numbers with Different Postage Costs

    Martin,

    Thats perfect thanks you are a superstar!

    Cheers

+ 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