+ Reply to Thread
Results 1 to 2 of 2

Excel VBA - Copy if value equals "X" to another column in same row

  1. #1
    Registered User
    Join Date
    06-27-2022
    Location
    USA
    MS-Off Ver
    365
    Posts
    1

    Excel VBA - Copy if value equals "X" to another column in same row

    IN VBA, I'm trying to copy the value in column MaterialNum (column "P") if it equals the value 390.005-15, the value is copied to (column "C") Part# in the same row. It will overwrite the value in this case of 390.005. The current table is approximately 65,000 rows, but in most cases the value of 390.005-15 in column "P" maybe less than 20 rows.

    I need to keep looping through the spread sheet until it's finds all the values.

    This information is being pulled from a SQL table for manufacturing and it refreshes every 15 minutes
    Attached Images Attached Images

  2. #2
    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,884

    Re: Excel VBA - Copy if value equals "X" to another column in same row

    Rule 03: Cross-posting Without Telling Us

    Your post does not comply with Rule 3 of our Forum RULES. Do not cross-post your question on multiple forums without telling us about your threads on other forums.

    Post a link to any other forums where you have asked the same question.

    Cross-posting is when you post the same question in other forums on the web. The last thing you want to do is waste people's time working on an issue you have already resolved elsewhere. We prefer that you not cross-post at all, but if you do (and it's unlikely to go unnoticed), you MUST provide a link (copy the url from the address bar in your browser) to the cross-post.

    Read this to understand why we ask you to do this.

    I have added the crosspost reference for you today. Please comply with this and all our rules in the future

    crosspost: https://www.mrexcel.com/board/thread...e-row.1209031/
    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. [SOLVED] Column X-Ref list - Sheet1 Col A "pages", Col B:FL "Req" to Sheet2 ColA "req", ColB "page"
    By excel-card-pulled in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 04-07-2017, 09:30 AM
  2. [SOLVED] Code to copy data from another workbook where offset cell equals "none"
    By Nitefox in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 03-20-2014, 01:33 PM
  3. If A2 in sheet1 equals "......." copy entire row to sheet 2
    By theprodigy in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-28-2013, 08:42 PM
  4. [SOLVED] Add all amounts from Column "x" where column "y" equals "z"
    By etpools in forum Excel Formulas & Functions
    Replies: 10
    Last Post: 08-25-2012, 09:22 AM
  5. [SOLVED] Delete row if cell in Column N equal "Different" or Column P equals "Blank"
    By Cyberpawz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-17-2012, 08:25 AM
  6. Macro for...If column C equals "Cherry", copy and paste it to column E
    By duugg in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 03-24-2009, 05:34 PM
  7. Sumproduct with column that "contains" instead of "equals"
    By Portuga in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 04-11-2008, 03:26 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