+ Reply to Thread
Results 1 to 7 of 7

Find item, change value in another column

  1. #1
    Forum Contributor
    Join Date
    09-05-2007
    Posts
    148

    Find item, change value in another column

    I want to search for an item which may appear more than once in say column A.

    If it's found, I then need to change the value in column D in the same row.

    Can anyone help me with this please?

    Thanks

  2. #2
    Valued Forum Contributor
    Join Date
    02-09-2012
    Location
    Mauritius
    MS-Off Ver
    Excel 2007
    Posts
    1,055

    Re: Find item, change value in another column

    Hi
    Upload a sample data.. That would be a great help
    Click *, if my suggestion helps you. Have a good day!!

  3. #3
    Forum Contributor
    Join Date
    09-05-2007
    Posts
    148

    Re: Find item, change value in another column

    Here you go.
    Attached Files Attached Files

  4. #4
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Find item, change value in another column

    Hi

    Try this. in C3

    =IF(OR(A3="James",A3="Lisa"),10,B3)

    Is this, helps you?
    Regards

    Fotis.

    -This is my Greek whisper to Europe.

    --Remember, saying thanks only takes a second or two. Click the little star * below, to give some Rep if you think an answer deserves it.

    Advanced Excel Techniques: http://excelxor.com/

    --KISS(Keep it simple Stupid)

    --Bring them back.

    ---See about Acropolis of Athens.

    --Visit Greece.

  5. #5
    Forum Contributor
    Join Date
    09-05-2007
    Posts
    148

    Re: Find item, change value in another column

    I use a macro to automate everything that goes on in my workbook so a VBA example would be the best. I don't want to change anything in column B that doesn't need to be changed and i don't want to add a 3rd column due to pivtos etc that run from my raw data.

    Thanks

  6. #6
    Forum Expert Fotis1991's Avatar
    Join Date
    10-11-2011
    Location
    Athens(The homeland of the Democracy!). Greece
    MS-Off Ver
    Excel 1997!&2003 & 2007&2010
    Posts
    13,744

    Re: Find item, change value in another column

    In this case, YES, you need a macro!

    So you are welcome

  7. #7
    Forum Contributor
    Join Date
    09-05-2007
    Posts
    148

    Re: Find item, change value in another column

    So any ideas on how to do this in VBA?

+ 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