Comparing rates

Scubabermuda

New Member
Joined
Jun 24, 2011
Messages
14
Good Morning,

Need some assistance hope someone here can help me. I am trying to use Excel to compare the values and generate the least cost for a phone number.

The values in column A may not necessarily match column E or be in order for that matter. They are rates from 2 different vendors. Essentially they are the first 6 digits of a phone number and columns B and F are the rates associated with those codes.

So what I am trying to do here is have excel look at the code in A and its associated price in B - compare it to E and F and give me the the code in H and the best rate for that code in I. Have I totally confused you guys here?

This was worth a shot asking all you gurus here. If you can help me I would really appreciate it.
Untitled-6.jpg
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
The order doesn't matter here, The list in I will deliver the lowest when there are same values in A and E, i assumed there always will be

Excel Workbook
ABCDEFGHI
1CODERATECODERATECodeRATE
22010070.008752010070.00982010070.00875
32010320.013752010320.01222010320.0122
42010400.005252010400.00492010400.0049
52012000.00452012000.00422012000.0042
62012020.0038752012020.00242012020.0024
72012030.0088752012030.00682012030.0068
82012040.0061252012040.00482012040.0048
92012060.0022012060.00162012060.0016
102012070.0022012070.00162012070.0016
112012080.0022012080.00162012080.0016
122012090.0051252012090.00422012090.0042
132012100.006252012100.00542012100.0054
142012130.0022012130.00162012130.0016
152012140.0022012140.00162012140.0016
162012150.008252012150.0072012150.007
172012160.0051252012160.00422012160.0042
182012170.0051252012170.00422012170.0042
192012180.0022012180.00162012180.0016
202012190.0038752012190.00242012190.0024
212012200.0022012200.00162012200.0016
Sheet2
 
Upvote 0
Last question I promise.

If there is a value missing in A or E (a phone number code for example not all vendors cover the same coverage area) is there a way to have excel populate H with the rate from F or B for that code?

So for example

Excel Workbook
ABCDEFGHI
1CODERATECODERATECODERATE
22010070.00722012000.00232010070.0072
32010320.01062012010.0252
42010400.0042012020.0026
52012000.00392012030.00374
62012020.00292012040.003
72012030.00762012050.0015
Sheet1


So since code 201007 is not listed in E it will default to A2 and the rate in B2 in H and I
 
Upvote 0
Scotty A & E will not necessarily always match. Like I mentioned above. As a matter of fact there will be variations for the values for A & E. Some codes will be present in A and may not be in E
 
Upvote 0
The code i posted will look up the code in column H and return the lowest rate based on that number. If it's only availabli in one of the columns then it will show that rate
 
Upvote 0
Excel Workbook
ABCDEFGHI
1CODERATECODERATECODERATE
22010070.00722012000.00232010070
32010320.01062012010.02522010320
42010400.0042012020.00262010400
52012000.00392012030.003742012000
62012020.00292012040.0032012020
72012030.00762012050.00152012030
82012040.00482012060.00142012040
92012050.00162012070.00122012050
102012060.00152012080.00142012060
112012070.00152012090.00232012070
122012080.00152012100.00322012080
132012090.00392012110.02522012090
142012100.00452012130.00122012100
152012130.00152012140.00142012130
162012140.00152012150.00352012140
172012150.00612012160.00232012150
182012160.00392012170.00232012160
192012170.00392012180.00142012170
202012180.00152012190.00262012180
212012190.00292012200.00142012190
Sheet1
 
Upvote 0

Forum statistics

Threads
1,224,531
Messages
6,179,380
Members
452,907
Latest member
Roland Deschain

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