+ Reply to Thread
Results 1 to 4 of 4

Change formula based on results of a drop down

  1. #1
    Registered User
    Join Date
    12-30-2019
    Location
    Madison, WI
    MS-Off Ver
    We have Windows 10
    Posts
    2

    Exclamation Change formula based on results of a drop down

    Hi All:
    I am hoping what I want to be able to do is a function of excel. I am sure it is, I just dont know how to do it, and have a hard time explaining it, so bare with me!!

    I have a spreadsheet for work with a bunch of different drop down columns and formulas based on the different vehicles we work on.

    I work for a heavy duty collision repair shop and I have created a spreadsheet to track all of our jobs.

    So I have a column for "job type" and there are many types listed in the drop down. I also have another column labeled "job total". That column has a formula in it to add up the totals of all other categories and give me one total. Part of these categories include different labor rates.

    I am wondering if there is a way to have excel recognize when i pull up a certain "job type" that the formula will change the labor rate automatically?

    I hope this makes sense. I am willing to share my spreadsheet if that would help.

    Thanks
    Meaghan
    Last edited by FDibbins; 12-31-2019 at 12:50 AM.

  2. #2
    Forum Expert
    Join Date
    07-06-2004
    Location
    Northern California
    MS-Off Ver
    2K, 2003, 2010, O365
    Posts
    1,490

    Re: Rules I think

    If the job type would be in cell F7, you could use a table somewhere else with job types in column 1 and corresponding labor rates in column 2. For example,

    Job Type Labor Rate
    A 60.00
    B 62.50
    C 63.75
    D 65.00

    If this table were in X!A1:B5 (in another worksheet named X), you could pull in the labor rate using =VLOOKUP(F7,X!$A$2:$B$5,2,0).

    Table lookups are generally the best way to handle this sort of thing.
    Last edited by hrlngrv; 12-31-2019 at 12:21 AM.

  3. #3
    Registered User
    Join Date
    12-30-2019
    Location
    Madison, WI
    MS-Off Ver
    We have Windows 10
    Posts
    2

    Re: Change formula based on results of a drop down

    Where would I put that formula on the spreadsheet?

  4. #4
    Forum Moderator jeffreybrown's Avatar
    Join Date
    02-19-2009
    Location
    Cibolo, TX
    MS-Off Ver
    Office 365
    Posts
    10,316

    Re: Change formula based on results of a drop down

    Quote Originally Posted by Megtruck View Post
    Where would I put that formula on the spreadsheet?
    You're going to put this formula wherever you want the result! The formula you were given...

    =VLOOKUP(F7,X!$A$2:$B$5,2,0) >> =VLOOKUP(lookup_value,table_array,col_index_num,range_lookup)

    F7 >> lookup_value >> job type

    X!$A$2:$B$5 >> table_array >> table used to lookup the result

    2 >> col_index_num >> returns the second column for the table above

    0 >> range_lookup >> returns an exact match

    This is all speculative as we don't know the actual layout of your spreadsheet. You will have to adjust all references to meet your needs.

    Hope this helps,
    HTH
    Regards, Jeff

+ 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] how can I set up rules with If Then
    By nordicdust in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 10-10-2018, 08:34 PM
  2. Replies: 11
    Last Post: 07-20-2017, 11:26 AM
  3. conditional formatting rules for a cell on sheet 1 based on rules from sheet 2
    By jsard in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 1
    Last Post: 08-15-2013, 09:22 AM
  4. [SOLVED] Outlook 2010 - Creating Rules - Rules Constant
    By Jack7774 in forum Outlook Formatting & Functions
    Replies: 3
    Last Post: 03-18-2013, 03:48 PM
  5. Combining CF rules
    By geopiet in forum Excel General
    Replies: 2
    Last Post: 07-09-2011, 08:18 PM
  6. help with IF rules
    By jon@karhu in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 01-08-2009, 11:56 AM
  7. The Rules
    By GirlSource in forum Excel General
    Replies: 1
    Last Post: 09-03-2006, 04:46 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