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.


ServiceLbs.Zone 2Zone 3Zone 4Zone 5Zone 6Zone 7Zone 8
UPS GND RESI1.0010.6310.6310.6310.6310.6310.6310.63
UPS GND RESI2.0010.6310.6310.6310.6310.6310.8310.99
UPS GND RESI3.0010.6310.6310.6310.7611.0911.3811.81
UPS GND RESI4.0010.6310.6310.9011.2711.5212.0412.56
UPS GND RESI5.0010.6310.6311.1411.6211.9212.4113.07

<colgroup><col><col><col span="7"></colgroup><tbody>
</tbody>
 

Excel Facts

Which Excel functions can ignore hidden rows?
The SUBTOTAL and AGGREGATE functions ignore hidden rows. AGGREGATE can also exclude error cells and more.
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,215,679
Messages
6,126,181
Members
449,296
Latest member
tinneytwin

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