+ Reply to Thread
Results 1 to 9 of 9

Find all cells with a specific background color then copy/paste to correct column

  1. #1
    Registered User
    Join Date
    08-16-2012
    Location
    connecticut
    MS-Off Ver
    Excel 2007
    Posts
    14

    Find all cells with a specific background color then copy/paste to correct column

    Hi All, I need help creating a macro that will find each cell in a specific column then copy the second cell to the left of each cell found to the appropriate column to the right of each cell found. Any help is appreciated.
    Attached Files Attached Files

  2. #2
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Find all cells with a specific background color then copy/paste to correct column

    can you attach a file with desired situation

  3. #3
    Forum Guru HaHoBe's Avatar
    Join Date
    02-19-2005
    Location
    Hamburg, Germany
    MS-Off Ver
    work: 2016 on Win10 (notebook), private: 2019 on Win10 (desktop), 2019 on Win11 (notebook)
    Posts
    8,197

    Re: Find all cells with a specific background color then copy/paste to correct column

    Hi, patel45,

    maybe you should have a look at the attached workbook. The situation is explained in the textbox.

    I would find it very good behaviour not to take questions out of the Unanswered Threads if everything is explained in an attachment.


    @d_rose
    Do you want to utilize a Find or rather a loop to go through the values in Column C and find the colour of font in the headers in the range of D1:K1 for the proper column to put the values into?
    Another way without programming might be the use of a Pivot Table.

    Ciao,
    Holger

  4. #4
    Forum Expert
    Join Date
    07-15-2012
    Location
    Leghorn, Italy
    MS-Off Ver
    Excel 2010
    Posts
    3,431

    Re: Find all cells with a specific background color then copy/paste to correct column

    Quote Originally Posted by HaHoBe View Post
    Hi, patel45,
    maybe you should have a look at the attached workbook. The situation is explained in the textbox.
    You are right, but I'm very strong to understand, can you forgive me ?

  5. #5
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Find all cells with a specific background color then copy/paste to correct column

    hi d_rose, welcome to Excelforum, option to make it, please check attachment, press "Run" button
    Attached Files Attached Files

  6. #6
    Registered User
    Join Date
    08-16-2012
    Location
    connecticut
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Find all cells with a specific background color then copy/paste to correct column

    Vielen Dank für Ihre Antwort (I hope that is the proper way to say "Thank you very much for your reply"). Since I am certainly no expert I would have to bow to your expertise. I found it very easy to highlight the background colors of specific cells containing a specific word. The font colors used in D1:K1 are mainly a visual association for consistency when applying the background colors in column C.

    The ultimate goal is to copy the amounts (column B) to the correct column D1:K1) for each row

    If you have the time, if you take a look at watersev's reply which works perfectly I would be interested if that is the same method you would use.

    br/Dave

  7. #7
    Registered User
    Join Date
    08-16-2012
    Location
    connecticut
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Find all cells with a specific background color then copy/paste to correct column

    Велике спасибі за вашу відповідь (I hope that is the proper way to say "Thank you very much for your reply"). I tried and it works PERFECTLY in the example. Now I'll apply it to the actual spread sheet and let you know how it works (which I'm quite sure it will).

    Once again I want to thank you very much for your help.

    br/Dave

    ---------- Post added at 10:00 AM ---------- Previous post was at 09:51 AM ----------

    Grazie per la risposta, I saw your reply to HaHoBe. I know how difficult it is to understand the meanings of words from different languages and cultures.

    Thanks again.

    br/Dave

  8. #8
    Forum Expert
    Join Date
    11-29-2010
    Location
    Ukraine
    MS-Off Ver
    Excel 2019
    Posts
    4,168

    Re: Find all cells with a specific background color then copy/paste to correct column

    @ Dave

    Немає за що. Гарного дня

  9. #9
    Registered User
    Join Date
    08-16-2012
    Location
    connecticut
    MS-Off Ver
    Excel 2007
    Posts
    14

    Re: Find all cells with a specific background color then copy/paste to correct column

    Hi watersev, I used am online translator for my first reply then the same translator for this one which translated to "There is no. Have a nice day." So I assume you mean there is no way to say "Thank you very much for your reply" in Ukraine.

    Anyway I'm putting together the actual spreadsheet now.

    Гарного дня
    br/Dave

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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