+ Reply to Thread
Results 1 to 4 of 4

If Cell A is equal to Cell B replace the data from Cell A with Cell C. How can I do this.

  1. #1
    Registered User
    Join Date
    03-01-2014
    Location
    Colorado Springs, CO
    MS-Off Ver
    Office 365
    Posts
    2

    If Cell A is equal to Cell B replace the data from Cell A with Cell C. How can I do this.

    I am using Excel to create a pretty complex database. I am using numbers in one worksheet to reference an ID field from another worksheet. Is there a way that I can enter text into a cell, have that cell compared to a column on a different worksheet and, if there is a match, replace the text I entered with a number from a different column.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2003, 2010
    Posts
    40,678

    Re: If Cell A is equal to Cell B replace the data from Cell A with Cell C. How can I do th

    Not without VBA, but you can use a lookup formula to return the value in an adjacent cell. See http://www.contextures.com/xlFunctions02.html
    Entia non sunt multiplicanda sine necessitate

  3. #3
    Registered User
    Join Date
    03-01-2014
    Location
    Colorado Springs, CO
    MS-Off Ver
    Office 365
    Posts
    2

    Re: If Cell A is equal to Cell B replace the data from Cell A with Cell C. How can I do th

    Is there anyway I could get assistance with the VBA? I knew I would need it, I just don't know the first thing about VBA.

  4. #4
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,872

    Re: If Cell A is equal to Cell B replace the data from Cell A with Cell C. How can I do th

    It would be best at this point so that the VBA can be adequately tested that you upload sample spreadsheets.

    Make sure there is just enough data to make it clear what is needed. Include a BEFORE sheet and an AFTER sheet in the workbook if needed to show the process you're trying to complete or automate. Make sure your desired results are demonstrated, mock them up manually if needed. Remember to desensitize the data.

    Click on GO ADVANCED and use the paperclip icon to open the upload window.

    View Pic
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Replies: 1
    Last Post: 11-28-2013, 02:16 AM
  2. [SOLVED] Data validation - 3 cell addition should equal value in one cell
    By aalim95 in forum Excel Formulas & Functions
    Replies: 11
    Last Post: 06-15-2013, 10:24 PM
  3. [SOLVED] Replace a cell in a row if its value is equal to a certain word
    By mulletron in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-24-2012, 10:53 AM
  4. Replace portion of data in 1 cell, with all contents of different cell & save as CSV?
    By 1lowbowtie in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-17-2011, 11:51 PM
  5. Replies: 1
    Last Post: 10-19-2005, 01:05 PM

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