+ Reply to Thread
Results 1 to 5 of 5

How to reference a cell based on user input?

  1. #1
    Registered User
    Join Date
    12-14-2006
    Posts
    5

    Lightbulb How to reference a cell based on user input?

    Hi folks - I am building a user-friendly workbook that will enable someone to enter data based on the individual job need. One piece of this puzzle is the ability to assign a sales tax rate based on location.

    Example: C1 contains a drop-down list containing several municipalities within the Phoenix metro area.

    The user selects the location ie: Tempe, Mesa, etc.

    Each municipality has its own tax rate, so I need to reflect that in another area of the sheet, say, Q14.

    So if the user selects Mesa, I need 8.9% to show @ Q14.

    I am convinced there must be a way to do this.

    Thank you very much for any advice you may have.

  2. #2
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Hi,

    As long as you have listed all the municipalities and their respective tax rates in a table ...say in range F1:G20 (sorted alphabetically)
    you can use the vlookup() function ... in cell Q14

    =VLOOKUP(C1,F1:G20,2)

    HTH
    Carim
    Last edited by Carim; 12-14-2006 at 10:45 AM.

  3. #3
    Registered User
    Join Date
    12-14-2006
    Posts
    5
    Thank you very much! I'll give that a try now.

  4. #4
    Registered User
    Join Date
    12-14-2006
    Posts
    5
    It works WONDERFULLY! Thank you VERY much!

    I have been grinding on this issue for a couple days now. I shoulda come here first!

  5. #5
    Forum Expert Carim's Avatar
    Join Date
    04-07-2006
    Posts
    4,070
    Glad you fixed your problem ...

    Thanks for the feedback

    Carim

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1