+ Reply to Thread
Results 1 to 3 of 3

How to apply a value in a cell based on the value of another

  1. #1
    Forum Contributor
    Join Date
    11-13-2013
    Location
    California
    MS-Off Ver
    Excel 365 Apps for enterprise
    Posts
    180

    How to apply a value in a cell based on the value of another

    I want to use a specific number in a sum formula based on the data selected from a drop down list in another.

    In column G is the drop down list with three values. The value selected affects the numeber used in this formula: =h2*# where the # is the numeric value associated with the item selected in column G.

    Jane Doe = 10
    John Smith = 15.2
    Tom Jones = 18.75

    What I'm hoping is for a way to automatically insert the formula with the correct value for "#" in column I.

    Is that something I can accomplish?

  2. #2
    Forum Guru Pete_UK's Avatar
    Join Date
    12-31-2011
    Location
    Warrington, England
    MS-Off Ver
    Office 2019 (still learning)
    Posts
    24,765

    Re: How to apply a value in a cell based on the value of another

    You can set up a little table of those names and values (e.g. in Y1:Z3), Use Y1:Y3 as the source for your drop-down in G2, then you can have this formula in I2:

    =IF(G2="","",H2*VLOOKUP(G2,$Y$1:$Z$3,2,0))

    Hope this helps.

    Pete

  3. #3
    Forum Contributor
    Join Date
    11-13-2013
    Location
    California
    MS-Off Ver
    Excel 365 Apps for enterprise
    Posts
    180

    Re: How to apply a value in a cell based on the value of another

    Quote Originally Posted by Pete_UK View Post
    You can set up a little table of those names and values (e.g. in Y1:Z3), Use Y1:Y3 as the source for your drop-down in G2, then you can have this formula in I2:

    =IF(G2="","",H2*VLOOKUP(G2,$Y$1:$Z$3,2,0))

    Hope this helps.

    Pete
    Worked like a charm!

    Thank you!!

+ 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] Add border & apply conditional formatting to sheets based on cell value
    By amar05 in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-14-2013, 11:02 AM
  2. Format cell based on adjacent cell / apply to column
    By mknispel in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-07-2013, 11:29 AM
  3. Replies: 4
    Last Post: 01-09-2013, 03:55 PM
  4. Replies: 3
    Last Post: 04-30-2011, 11:46 PM
  5. Apply Border based on change in cell value?
    By efeb in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 01-11-2009, 04:41 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