+ Reply to Thread
Results 1 to 8 of 8

Variables for formulas

  1. #1
    Registered User
    Join Date
    05-22-2021
    Location
    Pennsylvania
    MS-Off Ver
    2014
    Posts
    4

    Variables for formulas

    I'm creating spreadsheet with info:

    Job Title, Years of Service (YOS), Pay Rate

    I want to be able to have the pay rate fill automatically based on the Job Title & Years of Service. The Pay rate chart has columns for years of service & different rates by year. there are separate pay rate charts for different Job titles:

    Job YOS Rate
    A 1 $1
    A >1 $2

    B 1 $3
    B >1 $4

    Is there a formula I can enter for the pay rate cell by individual that will pull the correct data from the chart
    i.e. Employee 1 has Job A, YOS=1 so pay rate for Employee 1 =$1
    Employee 2 has Job B, YOS =15 so pay rate for Employee 1 =$4

  2. #2
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,364

    Re: Variables for formulas

    You need to share a sample of the workbook.
    Trevor Shuttleworth - Retired Excel/VBA Consultant

    I dream of a better world where chickens can cross the road without having their motives questioned

    'Being unapologetic means never having to say you're sorry' John Cooper Clarke


  3. #3
    Registered User
    Join Date
    05-22-2021
    Location
    Pennsylvania
    MS-Off Ver
    2014
    Posts
    4

    Re: Variables for formulas

    See attached sample workbook
    Attached Files Attached Files

  4. #4
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,364

    Re: Variables for formulas

    Is there a reason the Tables are laid out like they are? Or are you open to suggestions?

  5. #5
    Registered User
    Join Date
    05-22-2021
    Location
    Pennsylvania
    MS-Off Ver
    2014
    Posts
    4

    Re: Variables for formulas

    Open to suggestions!

  6. #6
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,364

    Re: Variables for formulas

    OK, try this ... see updated example workbook.
    Attached Files Attached Files

  7. #7
    Forum Guru TMS's Avatar
    Join Date
    07-15-2010
    Location
    The Great City of Manchester, NW England ;-)
    MS-Off Ver
    MSO 2007,2010,365
    Posts
    44,364

    Re: Variables for formulas

    Sorry, should have said: I left the original Rate Table in Sheet1 AND copied it to a new Rates sheet for reference. The formulae ONLY use the new Rates Table. I defined some Named Ranges for the Rates, Jobs and Years in the NEW table.

  8. #8
    Registered User
    Join Date
    05-22-2021
    Location
    Pennsylvania
    MS-Off Ver
    2014
    Posts
    4

    Re: Variables for formulas

    Thanks for your help! I set up a similar table based on what you sent but have to spend some more time on it

+ 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. [SOLVED] Variables For Excel Formulas
    By zanshin777 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 10-22-2015, 10:30 AM
  2. [SOLVED] Question: how to use variables in formulas?
    By Osmond in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-17-2014, 09:28 AM
  3. Using variables in formulas/ranges
    By lfmaykot in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-21-2013, 06:22 PM
  4. Using Excel formulas with variables in VBA
    By excelworker_1 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-21-2012, 01:06 AM
  5. Excel 2007 : IF formulas: possible to use variables?
    By Tsuchigo in forum Excel General
    Replies: 5
    Last Post: 03-09-2011, 10:20 PM
  6. Variables in Excel Formulas
    By smokeymountain in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 11-11-2010, 07:16 PM
  7. How can I use variables in formulas in VB?
    By thorsten in forum Excel General
    Replies: 2
    Last Post: 05-16-2006, 03:30 PM

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