+ Reply to Thread
Results 1 to 8 of 8

IF column A = X and column B = Y then copy cell

  1. #1
    Registered User
    Join Date
    06-24-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    12

    IF column A = X and column B = Y then copy cell

    Hi all,

    Looking for some help on an IF copy and paste query please. I've got columns of data that I need to look up, if both criteria are met I would like to copy a cell to another cell.

    There are 3 columns;

    A - Location (London, Birmingham, Brighton)
    B - Status (Available, Issued)
    C - Serial Number (multiple variants)

    The formula I need is to pull a list of available serial numbers at a certain location. So something like; if column A is Brighton and column B is available, then copy the serial number from column C.

    I think I've attached a sample sheet to this post!

    Any help would be appreciated, no much brain space left trying to work it out!

    Many thanks,

    Barry
    Attached Files Attached Files

  2. #2
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,824

    Re: IF column A = X and column B = Y then copy cell

    It would be more helpful if you were to manually mock up the result you are expecting. As it is, you are inviting mere guesswork. Please update the workbook.
    Ali


    Enthusiastic self-taught user of MS Excel who's always learning!
    Don't forget to say "thank you" in your thread to anyone who has offered you help.
    You can reward them by clicking on * Add Reputation below their user name on the left, if you wish.

    Forum Rules (updated August 2023): please read them here.

  3. #3
    Registered User
    Join Date
    06-24-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: IF column A = X and column B = Y then copy cell

    Apologies! The result based on Brighton > Available would be;

    Brighton
    1235
    1787754

    I would then do the same formula for the other locations, but results entered in another cell/sheet.

    Attached updated book.
    Attached Files Attached Files

  4. #4
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,824

    Re: IF column A = X and column B = Y then copy cell

    And where would Brighton be defined as the lookup value? Or do you want these as permanent dynamic subsets of data?

    I suggest you get yourself Microsoft's free Power Query add-in - it makes this sort of job really easy.

  5. #5
    Registered User
    Join Date
    06-24-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: IF column A = X and column B = Y then copy cell

    Thank you. To give you more detail, this is being created as very basic asset checking system. If something is available at a location, I want it in a list.

    Excel really isn't the tool for the job, but it's needed quickly so will I need to make it work!

    I'll check out the add-in, thank you. Any help on a formula of some kind would be good though!

    Thanks for you help.

  6. #6
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,824

    Re: IF column A = X and column B = Y then copy cell

    Yes, sure, but you need to answer the first question!

    I'm running out of time (need to get on with other things), but someone will be able to help just as soon as you have clarified.
    Last edited by AliGW; 02-21-2019 at 07:03 AM.

  7. #7
    Registered User
    Join Date
    06-24-2013
    Location
    London
    MS-Off Ver
    Excel 2010
    Posts
    12

    Re: IF column A = X and column B = Y then copy cell

    Not quite sure I follow, but Brighton would always be in column A - but the list would grow so it would need to be A:A I think?

  8. #8
    Forum Moderator AliGW's Avatar
    Join Date
    08-10-2013
    Location
    Retired in Ipswich, Suffolk, but grew up in Sawley, Derbyshire (England)
    MS-Off Ver
    MS 365 Subscription Insider Beta Channel v. 2404 (Windows 11 22H2 64-bit)
    Posts
    80,824

    Re: IF column A = X and column B = Y then copy cell

    If something is available at a location, I want it in a list.
    OK.

    And where would Brighton be defined as the lookup value?
    If you want to create a list about Brighton, how is Excel going to know that? Like me, Excel is not clairvoyant, so where will Excel be looking to find that criterion?

    Or are you simply wanting Excel to create a list for every city on the list that has any availability? If so, then you are going to need to extract that list first so that Excel knows which cites to deal with.

    Does this clarify my question?

+ 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. Copy from cell in column C to Column B if Column B is empty
    By anakaine in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-31-2016, 12:40 AM
  2. Copy data and paste to another column incrementing that column to next empty cell
    By edens2021 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-29-2015, 11:43 AM
  3. [SOLVED] UNSOLVED - Identify highlighted cells in column, copy cell value to column B of active row
    By Armitage2k in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-16-2014, 04:42 AM
  4. copy data from one column to column on another sheet starting with first open cell
    By indiana115 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 09-16-2013, 05:50 PM
  5. [SOLVED] Macro to find the empty cell in a column and copy a adjacent row to another column.
    By naga in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 07-18-2013, 07:44 AM
  6. [SOLVED] Copy and Paste a specific Column to a Column that's heading matches a particular cell
    By Rexmond in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 08-17-2012, 12:29 AM
  7. Copy a formula to cells in column A which don't have an empty cell in column B
    By floep in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-24-2006, 04:57 AM

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