Vlookup formula

alexaa

New Member
Joined
Apr 3, 2012
Messages
13
I need help on how to do a vlookup formula.. The question is to add a column named Water Bill to the table, and then enter a formula to calculate the water bill based on the following rules: The billing rate varies based on the type of customer (Cust Type column). The billing rate is $3, $2, or $1.50 per thousand gallons billed, depending on the customer type (see the lookup table in cells B2:C5 of the Billing Rate worksheet). For example, a commercial customer using 75,000 gallons has a water bill of $225 (75 x $3), whereas a government customer using 100,000 gallons pays $150 (100x $1.50). A commercial customer using 15,000 gallons has a water bill of $0n (see Gal Used rule in question 3).
 

Excel Facts

Move date out one month or year
Use =EDATE(A2,1) for one month later. Use EDATE(A2,12) for one year later.
Hello,

You can try this formula:

=VLOOKUP(C2,$H$2:$I$4,2,FALSE)*B2

Where C2 contains the CUST TYPE, range H2:I4 contain the legend (Commercial = 3, Government = 1.5, etc) 2 = the value to return, and B2 the water used (in thousand gallons).

Good luck!
 
Upvote 0

C:\Users\Villalobos\Desktop\one.png

i still can figure it out, i send some pictures to see if you can see it for better help thanks
 
Upvote 0
Sounds like you need an IF statement, not a VLOOKUP...
 
Upvote 0
Why is that? With a VLOOKUP, you have to have the information entered already to pull it. You could write a simple nested IF to give you the price based on what is contained in the adjacent cell.
 
Upvote 0
Post a picture please, hard to understand exactly what you need from your description.
 
Upvote 0
i tried to but i dont know how to post a picture that is not on the internet on here???
 
Upvote 0

Forum statistics

Threads
1,216,759
Messages
6,132,558
Members
449,735
Latest member
Gary_M

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