Inserting text to cells based on conditional formatting
I want to add a list of words in the part of the column under "IRU" (located in H216), as shown here: iru.png
If cells B20-B131 contain "IRU" (with exact capitalization), I want to add the word from the adjacent cell to the list. For example, given that cell B124 (highlighted in green) contains "IRU": cell.png, I want to add the value in cell A124 (polyester): A.png to a cell under IRU as shown earlier. What formula can I use to accomplish this?
And then sort by this column. The cells with values will appear at top and they are associated with text in column B that contain "IRA"
Otherwise, if you need the values to be extracted in other worksheet than, is better to use VBA!
Re: Inserting text to cells based on conditional formatting
I suggest that you upload a sample WB - see the yellow banner above to see how to
1. Use code tags for VBA. [code] Your Code [/code] (or use the # button)
2. If your question is resolved, mark it SOLVED using the thread tools
3. Click on the star if you think someone helped you
MS 365 Subscription Insider Beta Channel (Windows 11 64-bit)
Posts
62,076
Re: Inserting text to cells based on conditional formatting
There are no manually added expected results in your sample file, so it remains as clear as mud (to me).
Ali Enthusiastic self-taught user of MS Excel who's always learning! Don't forget to say "thank you" to anyone who has offered you help in your thread. You can reward them by clicking on * Add Reputation below theur user name on the left, if you wish.
Forum Rules (updated September 2018): please read them here.
How to use the Power Query code you've been given: help here. More about the Power suite here.
Bookmarks