+ Reply to Thread
Results 1 to 7 of 7

Change cell value based on the value of another...

  1. #1
    Registered User
    Join Date
    01-18-2013
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    14

    Change cell value based on the value of another...

    Sorry in advance if this is confusing...

    I need to find a way to put a value in a cell based on the text value of another. For example If I type "Company A" in cell B7 then I would like excel to look at another sheet I have with contact information and apply the appropriate info to the correct cells.

    So, on sheet 1 In cell B7 I enter "company A"

    excel looks to the worksheet I Have titled "Control Sheet" and in cell B4 is our contacts name for company A. I want excel to apply the value in "control sheet" B4 to worksheet 1 in cell B10.

    this way if I update our contact information for "Company A" on our "Control sheet" I don't have to update each sheet individually to match.
    also I would like to be able to have "Company B", "Company C" etc.

    the company A B C, etc would be vendors so it is possible that the value of cell B7 one day could be Comapny A and the next company B and as such I would like the appropriate values to follow in cell B10 on worksheet 1.

    I have almost no VB experience but i am willing to use VB. please be explicit in the instructions if VB is required.

    thanks.
    Last edited by okcalla; 01-20-2013 at 11:20 PM.

  2. #2
    Forum Expert dilipandey's Avatar
    Join Date
    12-05-2011
    Location
    Dubai, UAE
    MS-Off Ver
    1997 - 2016
    Posts
    8,191

    Re: Change cell value based on the value of another...

    Hi okcalla,

    welcome to the forum.
    Sounds like a lookup query, would you able to upload a sample workbook with your expected results. thanks.

    Regards,
    DILIPandey
    <click on below * if this helps>
    DILIPandey, Excel rMVP
    +919810929744 (India), +971528225509 (Dubai), [email protected]

  3. #3
    Registered User
    Join Date
    01-18-2013
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    14

    Re: Change cell value based on the value of another...

    test.xlsx In this case Cell B3 is the user input field. Cells B4 B5 and B6 should autofill from the values provided on the contact sheet.

  4. #4
    Registered User
    Join Date
    01-18-2013
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    14

    Re: Change cell value based on the value of another...

    Thanks to your First comment i may have found my answer...

    =LOOKUP(B3,'Contact Sheet'!1:1,'Contact Sheet'!2:2)

    would somthing like that work or is there a better way?

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: Change cell value based on the value of another...

    Hi okcalla and welcome to the forum

    if you make sure that ALL of your headings are identical on EVERY sheet, you can use this, copied down...

    =INDEX('Contact Sheet'!$A$1:$E$4,MATCH($A4,'Contact Sheet'!$A$1:$A$4,0),MATCH(B$3,'Contact Sheet'!$A$1:$E$1,0))

    Note that "contact" on sheets 1-3 has a traling space, and "help desk num." is not the same on Contact Sheet

    You can use this, by adjusting the ranges, if your tables grow sidesways and downwards
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  6. #6
    Registered User
    Join Date
    01-18-2013
    Location
    USA
    MS-Off Ver
    Excel 2013
    Posts
    14

    Re: [Solved] Change cell value based on the value of another...

    This worked. Can't thank you enough.

  7. #7
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,926

    Re: [Solved] Change cell value based on the value of another...

    Happy to help, and thanks for the rep

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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