Extract data with specific font from cells with content in several lines

vikassi

New Member
Joined
Mar 24, 2021
Messages
1
Office Version
  1. 365
Platform
  1. Windows
Please see the attached excel sheet snapshot.


I am trying to read data that has font Green. Please note that a cell can have more than one lines and it is possible that only some lines in a cell are Green and other are default Black.


I have a user-defined function (in attached macro sheet) that reads a cell with multiple lines and extract only those lines that has font Green.


But the output comes in one line. Can you please help me to get the output in multiple lines in one cell. For example:


1.png



Can function return as shown in following snapshot?


2.png



Would appreciate help!


regards, Vikas
 

Attachments

  • 3.PNG
    3.PNG
    29.3 KB · Views: 4

Excel Facts

Round to nearest half hour?
Use =MROUND(A2,"0:30") to round to nearest half hour. Use =CEILING(A2,"0:30") to round to next half hour.
Hi & welcome to MrExcel.
It would help if you posted your current code.
 
Upvote 0

Forum statistics

Threads
1,214,891
Messages
6,122,101
Members
449,066
Latest member
Andyg666

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top