+ Reply to Thread
Results 1 to 4 of 4

Calculating Text to a formula (Range)

  1. #1
    Registered User
    Join Date
    10-07-2008
    Location
    Canada
    Posts
    3

    Calculating Text to a formula (Range)

    B C D
    ON 135
    NY 122
    PA 117
    WV 50
    VA 126
    NC 25
    VA 35
    MD 110

    My issue: If ON I need to times (x) the miles (column C) by .0285 to equal D
    If NY I need to times (x) the miles (column C) by .0125 to equal D

    etc . . .
    Thanks!
    Last edited by Karsea; 10-09-2008 at 10:25 AM.

  2. #2
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582
    Set up a table with your factors in it; Initials in Col A, factors in Col B. Let's say this is in A40:B50

    In D;
    Please Login or Register  to view this content.
    ChemistB
    My 2?

    substitute commas with semi-colons if your region settings requires
    Don't forget to mark threads as "Solved" (Edit First post>Advanced>Change Prefix)
    If I helped, Don't forget to add to my reputation (click on the little star at bottom of this post)

    Forum Rules: How to use code tags, mark a thread solved, and keep yourself out of trouble

  3. #3
    Registered User
    Join Date
    10-07-2008
    Location
    Canada
    Posts
    3
    Hi there,
    Thanks for the help! but I have decided to change around the format it will be easier to reference at a later point. I have to report state mileage at the end of every month and calculate a percentage of tax based on each state. So here we go . . .
    A (State) B (Miles per State) C (answer) - Sheet 1
    NY 555
    AZ 222
    So on a seperate sheet in my workbook I have the designated state tax rate percentages for each.
    Sheet 2
    A (state) B (Rate Tax)
    NY 0.0255
    AZ 0.1225
    I have no idea how to reference and calculate each time I enter the state and mileage that it will automatically calculate the answer - I have basic 101 excel skills. . . thank you, thank you. . . I cannot ignore solving my dilemma any longer

  4. #4
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582
    Here is an example workbook using the VLOOKUP as described to bring in the tax rate. I used the Defined Name "TaxRate" to reference the table.
    To create a defined name, highlight the area you want to name (Sheet2 A2:B60) and in the whte box where it says "A2" (left side of your toolbar) type in TaxRate and push enter.
    Hope this helps.
    Attached Files Attached Files

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Find row number of text string in a range of cells
    By Steven Fleck in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 01-06-2013, 08:38 PM
  2. formula to pick out text between semi colons
    By tryer in forum Excel General
    Replies: 6
    Last Post: 02-23-2008, 05:01 PM
  3. Range name in a formula
    By irish1two3 in forum Excel Programming / VBA / Macros
    Replies: 21
    Last Post: 03-20-2007, 08:08 PM
  4. Help determining sum range to insert into formula
    By jhumphrey in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 02-08-2007, 06:45 PM
  5. Convert text to range
    By sagar in forum Excel General
    Replies: 2
    Last Post: 02-07-2007, 11:17 AM

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