+ Reply to Thread
Results 1 to 5 of 5

changing cell information depending on another cell

  1. #1
    Forum Contributor
    Join Date
    05-08-2005
    Location
    Australia
    MS-Off Ver
    excel 2019
    Posts
    112

    changing cell information depending on another cell

    please help - I am doing a rostering spreadsheet.
    sorry if I don't explain it well what I would like to do.

    1. I would like to put a person's name ( andrew, tim etc ) in a particular cell (eg. A1 )
    2. Depending on the name placed into A1 I would like another cell (eg. C2) to have automatically have placed another word (eg. cleaning, restocking, etc )

    Is this a macro visual basic, I am not verse with this, could some-one help

    many thanks

    andrewm

  2. #2
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256
    Do you mean:
    Name in A1:
    andrew

    Names in B column:
    andrew
    tim
    burton
    ...

    Names in C column:
    cleaning
    restocking
    inventory
    ...

    Formula in D2: =VLOOKUP(A1,B1:C3,2,0)
    You can also see:http://www.datapigtechnologies.com/f...s/vlookup.html

    Ola Sandström
    Last edited by olasa; 05-09-2005 at 02:00 PM.

  3. #3
    Forum Contributor
    Join Date
    05-08-2005
    Location
    Australia
    MS-Off Ver
    excel 2019
    Posts
    112

    ? do I use countif

    I do not think it is a vlookup

    in A1 - if i type in say andrew then a2 automatically goes to inventry
    if i type in say john then a2 automatically goes to cleaning

    is this countif or is it vlookup

    andrewm

  4. #4
    Forum Expert
    Join Date
    12-24-2004
    Location
    Sweden
    Posts
    1,256
    Try and see if the enclosed file works. Otherwise I don't understand what you mean by "a2 automatically goes to cleaning".

    Ola Sandström
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    05-08-2005
    Location
    Australia
    MS-Off Ver
    excel 2019
    Posts
    112
    Hi sorry for not making it clear

    I would like to type a name in cell A2, this will automatically place a word in another cell (A2) depending what name is in cell A2.

    thus -

    if i type in A1 - "andrew" this will automatically put the work "cleaning in cell A2
    if i type in A1 - "john" this will automatically put the word "cleaning" in cell A2

    thanks andrewm

+ 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