Hello all. I don't have very much experience with Excel but I am really trying to do my best. I am working on a small project and thought that Excel would fit the bill. I have run into a little snag (brain freeze). Here are some details.
A friend, who has a small courier company, has asked me to help out with putting together a customer price list. The list is made up of approx 100 postal codes. Using an Excel add-n (CDXZipStream) I'll be able to fetch the distance between all 100 postal codes. That works out to 10,000 cells. I'll call the worksheet that holds the fetched distances "calc". The process of going out to Bing for all the distances is excruciating long and can only be done if the add-in is installed locally. I would only want to do this once. Distributing the excel file would be difficult as the machine accessing the file would require the add-in. Not possible, and probably not necessary.
So, what I did was to convert the fecthed distances into whole numbers via roundup. So, 1.29 km becomes 2.0 km This information resides on a worksheet named "value". On another worksheet "rates" I created what I guess can be called a multiplier grid. Which looks something like this:
So any value that falls in between let's say 1 and 5 would use row 1 and it's corresponding rates.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]DIST[/TD]
[TD]8[/TD]
[TD]4[/TD]
[TD]2[/TD]
[TD]Overnight[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]6.00[/TD]
[TD]9.25[/TD]
[TD]13.75[/TD]
[TD]26.25[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]7.00[/TD]
[TD]10.25[/TD]
[TD]etc[/TD]
[TD]etc[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]8.00[/TD]
[TD]11.25[/TD]
[TD]etc[/TD]
[TD]etc[/TD]
[/TR]
[TR]
[TD]15[/TD]
[TD]10.00[/TD]
[TD]12.25[/TD]
[TD]etc[/TD]
[TD]etc[/TD]
[/TR]
</tbody>[/TABLE]
The actual price list which will be either printed or emailed to a client I named "client" This sheet has all 100 postal codes running down the first column titled "zone" To the right are columns with headings for delivery preference 8 hours, 4h, 2h and overnight.
Now, here is where I am stuck. If a client from postal H2L requests a price list, then obviously he would like to know the cost of shipping his parcel to any of the remaining 99 postal codes. I created a dropdown at the very top of the sheet which would allow the courier company to select the desired postal code. I can picture what should happen in my head but can't seem to translate that onto my worksheet(s).
1) Select postal code from dropdown
2) The "value" sheet is scanned for all possible combinations H2L -> XXX
3) All distances are calculated against the "rates" table
4) Price list shows all the possible dollar combinations.
I would have provided the worksheet but I don't think that there is a way for me to attach the file. Perhaps I can make it accessible offsite. By the way, what I am working on now only contains a limited combination of postal codes. 14RX14C
Any help and/or suggestions would be appreciated immensely. Thank you. Peter
A friend, who has a small courier company, has asked me to help out with putting together a customer price list. The list is made up of approx 100 postal codes. Using an Excel add-n (CDXZipStream) I'll be able to fetch the distance between all 100 postal codes. That works out to 10,000 cells. I'll call the worksheet that holds the fetched distances "calc". The process of going out to Bing for all the distances is excruciating long and can only be done if the add-in is installed locally. I would only want to do this once. Distributing the excel file would be difficult as the machine accessing the file would require the add-in. Not possible, and probably not necessary.
So, what I did was to convert the fecthed distances into whole numbers via roundup. So, 1.29 km becomes 2.0 km This information resides on a worksheet named "value". On another worksheet "rates" I created what I guess can be called a multiplier grid. Which looks something like this:
So any value that falls in between let's say 1 and 5 would use row 1 and it's corresponding rates.
[TABLE="class: grid, width: 500"]
<tbody>[TR]
[TD]DIST[/TD]
[TD]8[/TD]
[TD]4[/TD]
[TD]2[/TD]
[TD]Overnight[/TD]
[/TR]
[TR]
[TD]1[/TD]
[TD]6.00[/TD]
[TD]9.25[/TD]
[TD]13.75[/TD]
[TD]26.25[/TD]
[/TR]
[TR]
[TD]5[/TD]
[TD]7.00[/TD]
[TD]10.25[/TD]
[TD]etc[/TD]
[TD]etc[/TD]
[/TR]
[TR]
[TD]10[/TD]
[TD]8.00[/TD]
[TD]11.25[/TD]
[TD]etc[/TD]
[TD]etc[/TD]
[/TR]
[TR]
[TD]15[/TD]
[TD]10.00[/TD]
[TD]12.25[/TD]
[TD]etc[/TD]
[TD]etc[/TD]
[/TR]
</tbody>[/TABLE]
The actual price list which will be either printed or emailed to a client I named "client" This sheet has all 100 postal codes running down the first column titled "zone" To the right are columns with headings for delivery preference 8 hours, 4h, 2h and overnight.
Now, here is where I am stuck. If a client from postal H2L requests a price list, then obviously he would like to know the cost of shipping his parcel to any of the remaining 99 postal codes. I created a dropdown at the very top of the sheet which would allow the courier company to select the desired postal code. I can picture what should happen in my head but can't seem to translate that onto my worksheet(s).
1) Select postal code from dropdown
2) The "value" sheet is scanned for all possible combinations H2L -> XXX
3) All distances are calculated against the "rates" table
4) Price list shows all the possible dollar combinations.
I would have provided the worksheet but I don't think that there is a way for me to attach the file. Perhaps I can make it accessible offsite. By the way, what I am working on now only contains a limited combination of postal codes. 14RX14C
Any help and/or suggestions would be appreciated immensely. Thank you. Peter
Last edited: