replicate index match in VBA to maintain individual font formats within a cell.

brucecanny

New Member
Joined
Oct 27, 2017
Messages
3
First let me acknowledge that each component of my question has been covered however I think this is unique, and probably simpler as I only want to return the value AND format of one cell, but it is from an closed external file. I'm new to VBA and the answers to each component of my question all seem to be very compicated in some way (array's, copying entire sheets or columns...). The INDEX/MATCH works fine however the source fonts have different colors within the same cell and INDEX/MATCH only returns the Value.. I hope this is enough information. Here is my Index Match.

=INDEX('[Race-9-Ball-Balls.xlsx]Race'!$B$2:$Q$17,MATCH(N8,'[Race-9-Ball-Balls.xlsx]Race'!$A$2:$A$17,1),MATCH(N9,'[Race-9-Ball-Balls.xlsx]Race'!$B$1:$Q$1,1))

This is what it returns:
❺❼

<tbody>
</tbody>

But I want:

<tbody>
</tbody>

<tbody>
</tbody>
 

Excel Facts

Create a Pivot Table on a Map
If your data has zip codes, postal codes, or city names, select the data and use Insert, 3D Map. (Found to right of chart icons).
I realized I should have provided more detail. This is a pool tournament spreadsheet and the "Race" is shaded green. You can see the un-formatted output in the screenshot along with a screenshot of the source file.

open
open
open
Source:

Handicap111213ProSmP
1
2
3

<colgroup><col><col span="5"></colgroup><tbody>
</tbody>

Result:

MNO
7❹❼
831Nok
910ProNikeel

<colgroup><col><col span="2"><col><col></colgroup><tbody>
</tbody>

<colgroup><col><col span="2"><col><col></colgroup><tbody>
</tbody>
Desired result:
MNO
7
831Nok
910ProNikeel

<colgroup><col><col span="2"><col><col></colgroup><tbody>
</tbody>
 
Upvote 0

Forum statistics

Threads
1,216,074
Messages
6,128,652
Members
449,462
Latest member
Chislobog

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