+ Reply to Thread
Results 1 to 6 of 6

copy cell if another cell range is equal to a cell.

  1. #1
    Registered User
    Join Date
    12-01-2014
    Location
    Fremont, CA
    MS-Off Ver
    2013
    Posts
    3

    Question copy cell if another cell range is equal to a cell.

    Hello
    I need a formula, which checks a range of cells, and if the value is equal to another cell, copies another cell value to this cell. For e.g.
    I have a column(A) with a, b, c, d, in sheet1 and another column(A) in sheet2 with c, d, b, a. I want to copy values of C column of sheet1 to C column of sheet2, where the value of Column A in both sheets is a, doesn't matter which row.
    thanks

  2. #2
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: copy cell if another cell range is equal to a cell.

    Hi, welcome to the forum

    I would suggest you upload a small (clean) sample workbook (not a pic) of what you are working with, and what your expected outcome would look like.

    Having said that, take a look at the VLOOKUP() function
    1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
    2. If your question is resolved, mark it SOLVED using the thread tools
    3. Click on the star if you think someone helped you

    Regards
    Ford

  3. #3
    Forum Expert Tony Valko's Avatar
    Join Date
    12-31-2011
    Location
    Pittsburgh
    MS-Off Ver
    2002, 2007:2013
    Posts
    18,890

    Re: copy cell if another cell range is equal to a cell.

    See if this is what you had in mind:

    http://contextures.com/xlFunctions02.html
    Biff
    Microsoft MVP Excel
    Keep It Simple Stupid

    Let's Go Pens. We Want The Cup.

  4. #4
    Registered User
    Join Date
    12-01-2014
    Location
    Fremont, CA
    MS-Off Ver
    2013
    Posts
    3

    Re: copy cell if another cell range is equal to a cell.

    Hello FDibbins

    Here is the worksheet with the 2 sheets. I want to fill the quote column with price column values if value of cell a2 in quote sheet matches the value of cell a2 in prices sheet.

    thanks
    Attached Files Attached Files

  5. #5
    Administrator FDibbins's Avatar
    Join Date
    12-29-2011
    Location
    Duncansville, PA USA
    MS-Off Ver
    Excel 7/10/13/16/365 (PC ver 2310)
    Posts
    52,946

    Re: copy cell if another cell range is equal to a cell.

    Im not sure I follow your logic in your sample file? "be" from sheet1...cell A3...has a corresponding value on Prices of 9.6 (cell B4), not 4.35.

    See if this is what you want...
    =VLOOKUP(A2,prices!$A$2:$B$7,2,0)
    put that in B2 and copy down

  6. #6
    Registered User
    Join Date
    12-01-2014
    Location
    Fremont, CA
    MS-Off Ver
    2013
    Posts
    3

    Re: copy cell if another cell range is equal to a cell.

    yes, that formula worked. thanks a lot.

+ 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: 6
    Last Post: 10-03-2014, 12:18 PM
  2. If Dates in range equal today then copy cell x
    By Greg420 in forum For Other Platforms(Mac, Google Docs, Mobile OS etc)
    Replies: 15
    Last Post: 03-20-2014, 09:47 AM
  3. If 1 cell equals another in a range than equal to a 3rd cell
    By owenandy in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 08-22-2012, 10:00 PM
  4. [SOLVED] Format of Cell in Range(Cell).value being equal
    By hemants in forum Excel General
    Replies: 4
    Last Post: 12-07-2010, 12:47 PM
  5. Sum of Cell range to always equal specific cell
    By sieepy in forum Excel General
    Replies: 0
    Last Post: 06-08-2009, 03:22 PM

Tags for this Thread

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