# Post Codes with Different numbers with Different Postage Costs

1. ## 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. ## 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. ## 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

4. ## Re: Post Codes with Different numbers with Different Postage Costs

Hi,

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. ## Re: Post Codes with Different numbers with Different Postage Costs

Martin,

Thats perfect thanks you are a superstar!

Cheers

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

#### 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