Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Tiffany
 
Posts: n/a
Default Lookup Assistance

Hi, I have a retail price in column A, a list of the States in the U.S. in
column B and the sales tax C. I have a drop-down for the States which matches
up with the tax. I want this value of the tax for the state to go into cell
B2 and multiply it by the retail value. It looks like this:

A B C
1 Retail State Tax Tax Rate
2 $100 (cell to put tax rate * retail)
3 COLUMN 1 with drop down selection
4 States listed Correlating tax rates
listed

Please help, I've been trying to do the Vlookup or Index and match and I'm
not getting it. Thanks!!!
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Peo Sjoblom
 
Posts: n/a
Default Lookup Assistance

Maybe it's because you haven't set it up correctly, you need to create a
table first with all the states and their respective sales taxes

AL whatever%
and so on

then in the dropdown you select a state and it pulls up the tax, is that
what you are trying to do?
Also in what cell is the dropdown (validation?)

If you have a 2 column table called MyTable and the dropdown is in C2, then

=IF(C2="","",VLOOKUP(C2,MyTable,2,0))

then whatever result is returned will be used to do the calculation so in B2
you can use

=IF(C2="",0,VLOOKUP(C2,MyTable,2,0))*price





--

Regards,

Peo Sjoblom

Northwest Excel Solutions

www.nwexcelsolutions.com

(remove ^^ from email address)

Portland, Oregon




"Tiffany" wrote in message
...
Hi, I have a retail price in column A, a list of the States in the U.S. in
column B and the sales tax C. I have a drop-down for the States which
matches
up with the tax. I want this value of the tax for the state to go into
cell
B2 and multiply it by the retail value. It looks like this:

A B C
1 Retail State Tax Tax Rate
2 $100 (cell to put tax rate * retail)
3 COLUMN 1 with drop down selection
4 States listed Correlating tax
rates
listed

Please help, I've been trying to do the Vlookup or Index and match and I'm
not getting it. Thanks!!!


  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
L. Howard Kittle
 
Posts: n/a
Default Lookup Assistance

Hi Tiffany,

Your format is confusing to me but here's what I did.

A2 is retail price
B2 has a drop down with the states
C2 has =vlookup(b2,j1:k50,2,0)
D2 has =a2*(c2+1)
Column J has the states
Column K has the state's tax rate

So, enter retail value in A2, then select the state from B2. C2 returns the
rate for that state and D2 does the math for total price.

HTH
Regards,
Howard

"Tiffany" wrote in message
...
Hi, I have a retail price in column A, a list of the States in the U.S. in
column B and the sales tax C. I have a drop-down for the States which
matches
up with the tax. I want this value of the tax for the state to go into
cell
B2 and multiply it by the retail value. It looks like this:

A B C
1 Retail State Tax Tax Rate
2 $100 (cell to put tax rate * retail)
3 COLUMN 1 with drop down selection
4 States listed Correlating tax
rates
listed

Please help, I've been trying to do the Vlookup or Index and match and I'm
not getting it. Thanks!!!



  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Tiffany
 
Posts: n/a
Default Lookup Assistance

Hi Howard,
I think it's a little confusing to me too! We're close though. Those
formulas work great, the only issue is now when I select the state from the
drop-down it pulls up the right sales tax and moves to that cell in the State
list. For example, AZ is B9. I think that is messing up my reference.
I don't know!!! If there is an easier way to set this up, I'm all ears! I
don't have to use a drop-down, I just need it to work! Thanks in advance
Tiffany

Your format is confusing to me but here's what I did.

A2 is retail price
B2 has a drop down with the states
C2 has =vlookup(b2,j1:k50,2,0)
D2 has =a2*(c2+1)
Column J has the states
Column K has the state's tax rate

So, enter retail value in A2, then select the state from B2. C2 returns the
rate for that state and D2 does the math for total price.

HTH
Regards,
Howard

"Tiffany" wrote in message
...
Hi, I have a retail price in column A, a list of the States in the U.S. in
column B and the sales tax C. I have a drop-down for the States which
matches
up with the tax. I want this value of the tax for the state to go into
cell
B2 and multiply it by the retail value. It looks like this:

A B C
1 Retail State Tax Tax Rate
2 $100 (cell to put tax rate * retail)
3 COLUMN 1 with drop down selection
4 States listed Correlating tax
rates
listed

Please help, I've been trying to do the Vlookup or Index and match and I'm
not getting it. Thanks!!!




  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Tiffany
 
Posts: n/a
Default Lookup Assistance

Hi Howard,
Thanks! I tried your email but it got sent back. Is there another one I can
try?

Tiffany

"L. Howard Kittle" wrote:

Hi Tiffany,

It's just a matter of geting it set up. I made two set ups using Peo's
suggestion and incorporated some of his suggestions into my solution.

If you want, send me an example workbook and I will take a look at it.


Regards,
Howard


"Tiffany" wrote in message
...
Hi, I have a retail price in column A, a list of the States in the U.S. in
column B and the sales tax C. I have a drop-down for the States which
matches
up with the tax. I want this value of the tax for the state to go into
cell
B2 and multiply it by the retail value. It looks like this:

A B C
1 Retail State Tax Tax Rate
2 $100 (cell to put tax rate * retail)
3 COLUMN 1 with drop down selection
4 States listed Correlating tax
rates
listed

Please help, I've been trying to do the Vlookup or Index and match and I'm
not getting it. Thanks!!!




Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Lookup problem RD Wirr Excel Worksheet Functions 4 February 8th 06 01:14 PM
Another way to lookup data David Vollmer Excel Worksheet Functions 1 September 23rd 05 05:16 AM
Lookup Vector > Lookup Value Alec Kolundzic Excel Worksheet Functions 6 June 10th 05 02:14 PM
Lookup function w/Text and Year Josh O. Excel Worksheet Functions 1 February 12th 05 11:27 PM
double lookup, nest, or macro? Josef.angel Excel Worksheet Functions 1 October 29th 04 09:50 AM


All times are GMT +1. The time now is 02:57 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"