+ Reply to Thread
Results 1 to 4 of 4

Excel 2007 : Populate a cell by formula OR by manually entering data?

  1. #1
    Registered User
    Join Date
    03-24-2012
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2007
    Posts
    17

    Question Populate a cell by formula OR by manually entering data?

    I'm creating a simple database and I want to be able to populate cells in a column (let's call it USERS) either via a VLOOKUP formula based on entries in another column (USER NUMBERS), or by typing in data directly into the cell in the USERS column. And I want to retain the formula if users do the second method. Is this possible? I thought maybe I could create a third column (USER'S LOOKUP) and have it link to the USERS column, but that won't work. Or will it?

    I would attach the workbook, but it contains personal information. If you need me to create a sample workbook, I can.

    Any ideas would be appreciated.

    Thanks, Bruce

  2. #2
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Populate a cell by formula OR by manually entering data?

    there is no way to maintain the formula if a user manualy enters data. you may have to resort to using a column that will have your vlookup. depending on how the data is used you may want it to be something like this

    in C1

    =IF(B1="",VLOOKUP(A1,G:H,2,0),B1)

    that way if the user enters data that will be used, else the vlookup will be used.

    note:the vlookup paramaters are for show, i have no idea what your layout is
    If you liked my solution, please click on the Star -- to add to my reputation

    If your issue as been resolved, please clearly state so and mark the thread as [SOLVED] using the thread tools just above the first post.

  3. #3
    Registered User
    Join Date
    03-24-2012
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2007
    Posts
    17

    Re: Populate a cell by formula OR by manually entering data?

    I think you are confirming what I already knew. Let me see if I have it correctly. Here is the scenario:

    I have a call log sheet. Column A lists names. Column B lists ID numbers associated with these names, both of which are stored in a list on a separate sheet.

    I want users to be able to enter the name by typing it in directly into Col A (or by using a drop-down list), or by entering the ID number and having Col A auto populate.

    You are saying I need a third column that will display the name if users enter the ID number because there is no way to have Col A populate by either direct input or by entering a number. Is that correct?

  4. #4
    Forum Expert DGagnon's Avatar
    Join Date
    02-23-2012
    Location
    Ontario, Canada
    MS-Off Ver
    Excel 2003, 2007
    Posts
    1,645

    Re: Populate a cell by formula OR by manually entering data?

    you could set both A and B to be vlookup's based on each other, which woudl be a circular reference until the user populates one of the 2, at which time the other would automaticaly complete. but once the user enters the name manualy, or ID manualy, you will lose teh formula.

    so yes, i think we are both on the same page with your last question.

+ 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