+ Reply to Thread
Results 1 to 8 of 8

Macro to obtain colored values from 3 columns

  1. #1
    Registered User
    Join Date
    06-24-2020
    Location
    United States
    MS-Off Ver
    Latest version
    Posts
    2

    Macro to obtain colored values from 3 columns

    Hi all,

    First of all let me say this is my first post here, been a lurker before. I am still very much a VBA/macro noobie so please be gentle.

    OK so I am making a macro to filter/scrub through some data to be reviewed, using a template that will always be the same. I am stuck on figuring out a way to place all the "Row Labels" that are flagged with a red amount in either column I/J/K into column M.

    In the picture I manually did some to show you what I am going for. Sometimes there may be nothing flagged as red and therefore nothing would need to be copied over for the column. Does anyone know how to make a little bit of code that could accomplish this? I was having trouble getting it to work for all 3 columns.

    Greatly appreciate any input! Have a wonderful day!

    Thank you,
    Clizzy
    Attached Files Attached Files
    Last edited by Clizzy; 06-25-2020 at 08:30 AM.

  2. #2
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: Macro to obtain colored values from 3 columns

    If you sort, not filter, by color then the red font will trickle to the top. I assume you must have removed some columns as you reference BP/BQ/BR but have data in different columns. Here is a pic after sorting all three rows by color.
    flag.png
    Please note that what I see a having red do not align to all your list
    Last edited by maniacb; 06-25-2020 at 01:10 AM. Reason: Add picture

  3. #3
    Registered User
    Join Date
    06-24-2020
    Location
    United States
    MS-Off Ver
    Latest version
    Posts
    2

    Re: Macro to obtain colored values from 3 columns

    Hm yes I did delete some rows, edited my original post.

    Hmm so yes that does bring all the desired ones to the top, but would you know how to then make it so it only copy/pastes the ones flagged into column M? In your picture I would just want the macro to copy from 38648 down to 443010 and place that into column M. I couldnt figure out how to get the macro to know which ones are red.

    Also, the red is conditional formatting, so it could also work by flagging anything where the "Comparison" column is greater than 1. Not sure what is easier.

    THanks!

  4. #4
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: Macro to obtain colored values from 3 columns

    I am not sure if this will help, but I used another conditional formatting on column A based on the following formula.
    flag3.png
    Please Login or Register  to view this content.
    This formula accurately selects the items you require, but now I am also stuck. We need a way to convert that formula selection into a macro to pull those values in green.
    Attached Files Attached Files

  5. #5
    Valued Forum Contributor
    Join Date
    11-04-2018
    Location
    Denpasar
    MS-Off Ver
    Excel 2010
    Posts
    777

    Re: Macro to obtain colored values from 3 columns

    Or maybe something like this ?
    Please Login or Register  to view this content.
    Last edited by karmapala; 06-25-2020 at 02:14 PM.

  6. #6
    Forum Expert
    Join Date
    05-29-2020
    Location
    NH USA
    MS-Off Ver
    365
    Posts
    2,103

    Re: Macro to obtain colored values from 3 columns

    I think Karmapala's code answers what I thought was the original requirement, but Clizzy will have to tell us. I was doing research on the coding on color fill and came across this site for information on the color process. https://www.extendoffice.com/documen...r-of-cell.html

    Great job karmapala!

  7. #7
    Valued Forum Contributor
    Join Date
    11-04-2018
    Location
    Denpasar
    MS-Off Ver
    Excel 2010
    Posts
    777

    Re: Macro to obtain colored values from 3 columns

    Hi maniacb,

    Actually I also not quite sure on what Clizzy's expected result .
    So yes, better wait for Clizzy to explain further about what he want.
    Thanks, maniacb.

  8. #8
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,524

    Re: Macro to obtain colored values from 3 columns

    Quote Originally Posted by Clizzy View Post
    OK so I am making a macro to filter/scrub through some data to be reviewed, using a template that will always be the same. I am stuck on figuring out a way to place all the "Row Labels" that are flagged with a red amount in either column I/J/K into column M.
    Please Login or Register  to view this content.

+ 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. Macro that copies as values only the data in the colored cells
    By katamata in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 02-09-2020, 10:33 AM
  2. [SOLVED] Macro to obtain values from a web page associated to an entered number
    By Aykko in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 06-15-2019, 02:14 PM
  3. [Macro] Enter multiple set of values to obtain result in a certain way in excel
    By chocochoco in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-18-2013, 03:13 AM
  4. Replies: 0
    Last Post: 06-14-2012, 09:59 PM
  5. How to obtain values from other columns in excel ??
    By meen2525 in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-26-2011, 08:17 AM
  6. compared two columns, obtain cell differences
    By XLS-EXCEL in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 02-15-2008, 11:20 AM
  7. Can I obtain x values from y values on an Excel chart?
    By Helen in forum Excel Charting & Pivots
    Replies: 1
    Last Post: 03-07-2006, 11:10 AM

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