+ Reply to Thread
Results 1 to 8 of 8

Function to move value from cell to cell based on matches

  1. #1
    Registered User
    Join Date
    06-30-2020
    Location
    Denmark
    MS-Off Ver
    Standard 2016
    Posts
    5

    Function to move value from cell to cell based on matches

    Hi
    Hope you can help with this one, it is getting to advanced for me with the dependencies.

    Basically I have two sheets, 1 with items, and one with an overview of the status of each item.

    I'll do my best to explain
    1. The values from Page1!A should copied to Page2!A
    2. But only if the value from same row in Page1!F matches Option1.
    3. If Page1 has multiple items in a row in colums, H,I,J,K etc the value from same row column A should be copied to each item in page2.

    Example:
    Page1!A9 is 33333
    Page1!F9 is Option1 (instead of Option2) Page1!A9
    Page1!H9 and Page1!I9 matches Page2!C4 and Page2!C6
    Beause of these matches, Page1!A9 is copied to Page2!A4 and Page!A6.

    If Page1!F9 is changed to Option2 the values should be removed from Page2!A4 and Page!A6.

    There can be multiple matches between cells in Page1!H,I,J,K etc and items in Page2, but there cannot be a match where Page1!F of the same row both have Option2. Basically each item can only have one "kode".

    This is to keep track of where the items on Page2 are.

    I hope the question is clear enough.
    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,830

    Re: Function to move value from cell to cell based on matches

    Welcome to the forum.

    You will need VBA for this, so I am moving your thread.
    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-30-2020
    Location
    Denmark
    MS-Off Ver
    Standard 2016
    Posts
    5

    Re: Function to move value from cell to cell based on matches

    Thank you :-)
    And thank you for pushing me in the right direction

  4. #4
    Forum Guru
    Join Date
    08-28-2014
    Location
    USA
    MS-Off Ver
    Excel 2019
    Posts
    17,562

    Re: Function to move value from cell to cell based on matches

    The title uses the word "move" however post #1 indicates that the kodes are to be "copied" so I believe that the following formula will do what you want:
    Formula: copy to clipboard
    Please Login or Register  to view this content.

    After the formula is placed in cell A2 on the page2 sheet, drag the fill handle down to cell A6.
    Let us know if you have any questions.
    Consider taking the time to add to the reputation of everybody that has taken the time to respond to your query.

  5. #5
    Registered User
    Join Date
    06-30-2020
    Location
    Denmark
    MS-Off Ver
    Standard 2016
    Posts
    5

    Re: Function to move value from cell to cell based on matches

    Thank you - yes copied or mirrored to would be a more correct term than moved.

    I copy-pasted the formula, but it is not accepted as a formula, it just comes in as text in the cell and no result or error.
    I've checked the format of the cell and that is set to Category General, and if I edit the cell, and put in a simple formula, it calculates it fine "=SUM(1+1)" for example

  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,830

    Re: Function to move value from cell to cell based on matches

    Change all commas to semi-colons for your European locale.

  7. #7
    Registered User
    Join Date
    06-30-2020
    Location
    Denmark
    MS-Off Ver
    Standard 2016
    Posts
    5

    Re: Function to move value from cell to cell based on matches

    Worked like a charm - I'll get in into my non-anonymous sheet right away to test it to full extent

    Much appreciated

  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,830

    Re: Function to move value from cell to cell based on matches

    If that takes care of your original question, please select Thread Tools from the menu link above and mark this thread as SOLVED.

+ 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. Enter amounts in one cell, move to a dated cell based on date
    By CSF1988 in forum Excel Formulas & Functions
    Replies: 8
    Last Post: 09-11-2018, 01:30 PM
  2. [SOLVED] VBA to match cell value then move range to sheet name that matches
    By bigmacro in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 06-13-2018, 03:03 PM
  3. [SOLVED] I'm trying to fill cell based on whether one cell's data matches another's
    By excelrookie82 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 07-15-2017, 12:07 PM
  4. Replies: 3
    Last Post: 06-29-2015, 03:03 PM
  5. Move text from cell to cell if matches criteria, and edit text
    By joematzzie in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 02-13-2015, 07:58 AM
  6. Need to move data that matches criteria in cell and move to new worksheet
    By panagle in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-27-2013, 09:23 AM
  7. Replies: 1
    Last Post: 12-08-2012, 05:37 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