+ Reply to Thread
Results 1 to 2 of 2

Autofill cell based on another cell's value

  1. #1
    Registered User
    Join Date
    03-19-2012
    Location
    Missouri
    MS-Off Ver
    Excel 2007
    Posts
    1

    Autofill cell based on another cell's value

    Hi,
    I know this can easily be done with an if function or vlookup, but I was hoping to avoid using formulas just for the neatness and user-friendliness of the sheet.
    I'd like a cell to auto-populate based on a another cell's value. I have a list of items, and say from anywhere in column F4:F30, a user enters "EA", I would like the corresponding cell in column G to be filled with "1". I'd like for this to happen on the fly, every time the user enters that value. For any other value that they enter in F4:F30, I'd like the corresponding cell in G to be filled with "Enter Value".

    I'm currently achieving this effect with an IF statement, but I'd like for there not to be a formula showing in Column G.

    Thanks for the help!

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,167

    Re: Autofill cell based on another cell's value

    Right click on your sheet and select View Code. Copy paste this code into the code section on the right -
    Please Login or Register  to view this content.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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