Solution to find 2 best ship locations

razorrunt

New Member
Joined
Jan 18, 2008
Messages
18
I have an array of data A1:K43 (row 1 has the headers). Listed in A2:A43 are the warehouse #'s (different city for each). Each subsequent column (B-K) represents the annual shipping expense from that city to the warehouse city (on that row). (E.g. B2 would be from Dallas (B1) to warehouse 1 (A2). This repeats and column C is Atlanta e etc.

I am looking for a solution (in this example assumes I want the two best only) that would solve for the best two locations to ship from when two locations are used. This is typically a different solution than when using the small 1, small 2 formulas.

Is there a non-vba way to solve for this? If not, is there a vba solution that someone has they could share?

Any help is greatly appreciated!
 

Excel Facts

Can a formula spear through sheets?
Use =SUM(January:December!E7) to sum E7 on all of the sheets from January through December
Tehre is a VBA solution to anything. So, yes to VBA.
No to formula as it may be too complicated.

You may want to present a sample of your worksheet (including solutions) as we are very lazy to make our own data to test on.

Search for Excel Jeanie HTML if you want to copy your data with ease onto the board.
 
Upvote 0

Forum statistics

Threads
1,224,502
Messages
6,179,126
Members
452,890
Latest member
Nikhil Ramesh

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top