If and vlookup formula

jabersold

New Member
Joined
Jun 27, 2012
Messages
38
I need help on constructing a look up. In my spread sheet I will plug in the service type, zone and weight in three different cells. I need it to go to a table that called rates and find the rate based on the info found in the table. example of the table below.


[TABLE="width: 718"]
<colgroup><col><col><col span="7"></colgroup><tbody>[TR]
[TD]Service[/TD]
[TD]Lbs.[/TD]
[TD]Zone 2[/TD]
[TD]Zone 3[/TD]
[TD]Zone 4[/TD]
[TD]Zone 5[/TD]
[TD]Zone 6[/TD]
[TD]Zone 7[/TD]
[TD]Zone 8[/TD]
[/TR]
[TR]
[TD]UPS GND RESI[/TD]
[TD]1.00[/TD]
[TD]10.63[/TD]
[TD]10.63[/TD]
[TD]10.63[/TD]
[TD]10.63[/TD]
[TD]10.63[/TD]
[TD]10.63[/TD]
[TD]10.63[/TD]
[/TR]
[TR]
[TD]UPS GND RESI[/TD]
[TD]2.00[/TD]
[TD]10.63[/TD]
[TD]10.63[/TD]
[TD]10.63[/TD]
[TD]10.63[/TD]
[TD]10.63[/TD]
[TD]10.83[/TD]
[TD]10.99[/TD]
[/TR]
[TR]
[TD]UPS GND RESI[/TD]
[TD]3.00[/TD]
[TD]10.63[/TD]
[TD]10.63[/TD]
[TD]10.63[/TD]
[TD]10.76[/TD]
[TD]11.09[/TD]
[TD]11.38[/TD]
[TD]11.81[/TD]
[/TR]
[TR]
[TD]UPS GND RESI[/TD]
[TD]4.00[/TD]
[TD]10.63[/TD]
[TD]10.63[/TD]
[TD]10.90[/TD]
[TD]11.27[/TD]
[TD]11.52[/TD]
[TD]12.04[/TD]
[TD]12.56[/TD]
[/TR]
[TR]
[TD]UPS GND RESI[/TD]
[TD]5.00[/TD]
[TD]10.63[/TD]
[TD]10.63[/TD]
[TD]11.14[/TD]
[TD]11.62[/TD]
[TD]11.92[/TD]
[TD]12.41[/TD]
[TD]13.07[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
Need example of 3 input values and what expected output rate should be

From the example, it seems like you only need the weight and zone (2 variables) to return a rate

Also missing, sheet name, address of table, header row, address of input variables, things that help someone who can't see your PC screen or sheet, that might be useful!
 
Upvote 0
Thank you for the reply.

The sheet name is "Rates" In the example I posted did not show it but there are several different service types. The table has probably 250 lines of rates under 7 different service types. So I want to plug in a service type in "A1" and a weight in "B1" and have the zone in "C1" already and it go to the table in the sheet labeled and Rates and bring back the rate that corresponds to that info.
 
Upvote 0
Hi,

May be this:


Book1
ABCDEFGHIJKLMN
1Service TypeWeightZoneResultServiceLbs.Zone 2Zone 3Zone 4Zone 5Zone 6Zone 7Zone 8
2UPS GND RESI3Zone 510.76UPS GND RESI110.6310.6310.6310.6310.6310.6310.63
3UPS AIR RESI6Zone 716UPS GND RESI210.6310.6310.6310.6310.6310.8310.99
4UPS GND RESI310.6310.6310.6310.7611.0911.3811.81
5UPS GND RESI410.6310.6310.911.2711.5212.0412.56
6UPS GND RESI510.6310.6311.1411.6211.9212.4113.07
7UPS AIR RESI611121314151617
8UPS GND RESI71111.51212.51313.514
Sheet252
Cell Formulas
RangeFormula
D2=SUMPRODUCT((F$2:F$8=A2)*(G$2:G$8=B2)*(H$1:N$1=C2)*H$2:N$8)


Change/adjust cell references/ranges and add sheet name according to your data.
 
Upvote 0

Forum statistics

Threads
1,223,236
Messages
6,170,915
Members
452,366
Latest member
TePunaBloke

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