Results 1 to 3 of 3

Thread: Linking Cells In a Dropdown Box

  1. #1
    Junior Member
    Join Date
    Oct 2011
    Posts
    1
    Rep Power
    0

    Linking Cells In a Dropdown Box

    Hi,

    I am not very good at explaining, but I have a painting company and I am creating a spreadsheet to price jobs.

    I want to be able to click on a dropdown box, select a painting description(e.g: To Paint Ceilings) and have excel automatically pull up a cell beside it with the price for painting ceilings.

    e.g To Paint Ceilings - $1.00
    To Plaster Walls - $2.00

    The reason I want the spreadsheet set out this way is so I can then calculate the price in the second cell based on the room measurements in the third cell, which I am able to do myself.

    e.g.
    Description - Price - Area (M2) - Total Cost
    To Paint Ceilings - $1.00 - 5 - $5.00
    To Plaster walls - $2.00 - 20 - $40.00

    I hope this makes sense and that somebody can help me.
    Thanks in advance
    Kerry
    Last edited by Kerry78; 10-20-2011 at 05:07 AM.

  2. #2
    Member littleiitin's Avatar
    Join Date
    Aug 2011
    Posts
    90
    Rep Power
    14
    Hi Kerrry,

    Welcome to the board,

    Make a list of your description and Give price in next column. Make a name "rngList" of all your Discription.

    I have applied date validation in column 1 and row 75...

    Please change accordingly..
    Paste this VBA code in sheets code window........

    Code:
    Private Sub Worksheet_Change(ByVal Target As Range)
        If Target.Column = 1 And Target.Row <= 75 Then
            Target.Offset(, 1) = Range("rngList").Find(Target.Value).Offset(, 1).Value
        End If
    End Sub
    HTH
    --------------------------

  3. #3
    Administrator Admin's Avatar
    Join Date
    Mar 2011
    Posts
    1,123
    Rep Power
    10
    Hi Kerry,

    Welcome to ExcelFox !!

    You could try VLOOKUP function to accomplish this task.

    If your dropdown value in A2,

    In B2

    =VLOOKUP(A2,Sheet2!$A$2:$B$10,2,0)

    where

    Sheet2!A2:B10 holds the Description (Col A) and Price (Col B)

    Post back if any query.
    Cheers !

    Excel Range to BBCode Table
    Use Social Networking Tools If You Like the Answers !

    Message to Cross Posters

    @ Home - Office 2010/2013/2016 on Win 10 (64 bit); @ Work - Office 2016 on Win 10 (64 bit)

Similar Threads

  1. How To Create DropDown ListBox In Excel
    By lokvan in forum Excel Help
    Replies: 3
    Last Post: 12-23-2014, 04:43 PM
  2. Replies: 13
    Last Post: 06-10-2013, 09:05 AM
  3. Linking a table to a text box
    By Safal Shrestha in forum Excel Help
    Replies: 6
    Last Post: 04-25-2013, 10:37 AM
  4. List of Dates In DropDown Starting From Today()
    By rich_cirillo in forum Excel Help
    Replies: 5
    Last Post: 04-10-2013, 05:58 PM
  5. dropdown lists in headings by using Filter
    By Dane in forum Excel Help
    Replies: 3
    Last Post: 01-24-2013, 11:08 PM

Posting Permissions

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