I would greatly appreciate anyone who will work on this issue with me. I have scoped the internet for a few days to see if someone else has been facing the same issue, and while there have been a few, I can't change the code around given to them so that it will work for me, as the situations have not been exactly the same.<?xml:namespace prefix = v ns = "urn:schemas-microsoft-com:vml" /><v:shapetype id=_x0000_t75 stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" oreferrelative="t" o:spt="75" coordsize="21600,21600"> <v:stroke joinstyle="miter"></v:stroke><v:formulas><v:f eqn="if lineDrawn pixelLineWidth 0"></v:f><v:f eqn="sum @0 1 0"></v:f><v:f eqn="sum 0 0 @1"></v:f><v:f eqn="prod @2 1 2"></v:f><v:f eqn="prod @3 21600 pixelWidth"></v:f><v:f eqn="prod @3 21600 pixelHeight"></v:f><v:f eqn="sum @0 0 1"></v:f><v:f eqn="prod @6 1 2"></v:f><v:f eqn="prod @7 21600 pixelWidth"></v:f><v:f eqn="sum @8 21600 0"></v:f><v:f eqn="prod @7 21600 pixelHeight"></v:f><v:f eqn="sum @10 21600 0"></v:f></v:formulas><vath o:connecttype="rect" gradientshapeok="t" o:extrusionok="f"></vath><?xml:namespace prefix = o ns = "urn:schemas-microsoft-comfficeffice" /><o:lock aspectratio="t" v:ext="edit"></o:lock></v:shapetype><o></o>
<o></o>
So, here is the issue I am having...<o></o>
<o></o>
Cells A37 and A44 have formulas in them in which the cell's results are text. Within the text are important names that need to stand out in Bold and the Color 45. For instance, Cell A37 might result in the text that says, "The monkey, Curious George, is mischievious." and cell A44 might say, "The elephant, Dumbo, used his ears to fly away.", and as I have shown, it needs to show-up this way in the spreadsheet.<o></o>
<o></o>
Conditional Formatting will not help as it will bold and color all the text produced by the formula, and I need only partial text (a few names)changed within the resulting text.
I've thought of a couple of options to go off of, I just don't know how to put them in Macro mode...
<o></o>
1)<o></o>
The names that will be interchanged within the resulting text will be different, different number of characters, and other cells will be referencing them, so I need the integrity of the formulas within these cells to remain unchanged. In otherwords, not to change from a formula to a value...unless somewhere in the code it can be changed back to keep the new formatting.<o></o>
OR
<o></o>
2)
Is there a way to build a macro, maybe, to insert the Names produced by the formulas to be built into the macro into the positions within the text strings (after a certain character position?) that I need? Then I could, instead of having the entire text in these merged cells as a formula, I could just paste my text as a value, and the macro could insert the formatted names in the places they belong within the text using a devised formula inside the macro?
I keep getting the Error
"Fatal error: Maximum execution time of 30 seconds exceeded in /usr/www/users/mrexcel/forum/includes/functions_newpost.php on line 260" each time I try to post, so I will try to explain the spreadsheet set-up as best as I can.
The first page of formula cells goes from A to AK. The second page goes from AN to BW. They are in the same tab in my workbook.
The cells that this is effecting are described below.
Cells A37:AO42 are merged and contain a formula
=AN28&$AN$32&" "&AN36
**Here AN32 refers to a Name that will need the bold and color**
AN28 and AN36 are straight text
Cells A44:AO55 are merged and contain a formula
=AN44&", "&$AN$40&", "&AN48
**Here AN40 refers to a Name (which is also a cell containing a formula as it is dependant on other information in the preceeding cells) that will need the bold and color**
AN44 and AN48 are straight text
A23 contains the formula
=IF('Levers MC^2'!CI2="Tracked","Dear "&INDEX('Levers MC^2'!A:CL,MATCH("Tracked",'Levers MC^2'!CI:CI,0)+AN14,68)&",",IF('Levers MC^2'!CI2="Targeted","Dear "&INDEX('Levers MC^2'!A:CL,MATCH("Targeted",'Levers MC^2'!CI:CI,0),68)&",",IF('Levers MC^2'!CI2="Guaranteed","Dear "&INDEX('Levers MC^2'!A:CL,MATCH("Guaranteed",'Levers MC^2'!CI:CI,0),68)&",",IF('Levers MC^2'!A2=HLOOKUP('Levers MC^2'!A2,'Levers MC^2'!A:CP,MATCH('Levers MC^2'!A2,'Levers MC^2'!A:A,0)+1,FALSE),"Dear "&INDEX('Levers MC^2'!A:CL,MATCH(,'Levers MC^2'!A:A,0)+AN14,68)&",",""))))
And I use part of the text in the results of the formula above to get a helper cell formula in AX40
=IFERROR(MID(A23,6,(FIND(",",A23)-1)-5),"")
which gives me the name used in the results of A23 so that I can find the name I need for AN40
The formula that I use to get the name in AN40/A44 is:
=IFERROR(INDEX('Levers MC^2'!A:CL,MATCH(AX40,'Levers MC^2'!BP:BP,0),64),"")
The name in AN32/A37 will always be the same.
I hope I have given you enough information to help me. I appreciate any assistance that you could provide to me! I have been working on this for 4 days now, and I have come up with nothing.<v:shapetype id=_x0000_t75 stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" oreferrelative="t" o:spt="75" coordsize="21600,21600"> <v:stroke joinstyle="miter"></v:stroke><v:formulas><v:f eqn="if lineDrawn pixelLineWidth 0"></v:f><v:f eqn="sum @0 1 0"></v:f><v:f eqn="sum 0 0 @1"></v:f><v:f eqn="prod @2 1 2"></v:f><v:f eqn="prod @3 21600 pixelWidth"></v:f><v:f eqn="prod @3 21600 pixelHeight"></v:f><v:f eqn="sum @0 0 1"></v:f><v:f eqn="prod @6 1 2"></v:f><v:f eqn="prod @7 21600 pixelWidth"></v:f><v:f eqn="sum @8 21600 0"></v:f><v:f eqn="prod @7 21600 pixelHeight"></v:f><v:f eqn="sum @10 21600 0"></v:f></v:formulas><vath o:connecttype="rect" gradientshapeok="t" o:extrusionok="f"></vath><o:lock aspectratio="t" v:ext="edit"></o:lock></v:shapetype><o></o>
<o></o>
~Rebecca<o></o>
<o></o>
So, here is the issue I am having...<o></o>
<o></o>
Cells A37 and A44 have formulas in them in which the cell's results are text. Within the text are important names that need to stand out in Bold and the Color 45. For instance, Cell A37 might result in the text that says, "The monkey, Curious George, is mischievious." and cell A44 might say, "The elephant, Dumbo, used his ears to fly away.", and as I have shown, it needs to show-up this way in the spreadsheet.<o></o>
<o></o>
Conditional Formatting will not help as it will bold and color all the text produced by the formula, and I need only partial text (a few names)changed within the resulting text.
I've thought of a couple of options to go off of, I just don't know how to put them in Macro mode...
<o></o>
1)<o></o>
The names that will be interchanged within the resulting text will be different, different number of characters, and other cells will be referencing them, so I need the integrity of the formulas within these cells to remain unchanged. In otherwords, not to change from a formula to a value...unless somewhere in the code it can be changed back to keep the new formatting.<o></o>
OR
<o></o>
2)
Is there a way to build a macro, maybe, to insert the Names produced by the formulas to be built into the macro into the positions within the text strings (after a certain character position?) that I need? Then I could, instead of having the entire text in these merged cells as a formula, I could just paste my text as a value, and the macro could insert the formatted names in the places they belong within the text using a devised formula inside the macro?
I keep getting the Error
"Fatal error: Maximum execution time of 30 seconds exceeded in /usr/www/users/mrexcel/forum/includes/functions_newpost.php on line 260" each time I try to post, so I will try to explain the spreadsheet set-up as best as I can.
The first page of formula cells goes from A to AK. The second page goes from AN to BW. They are in the same tab in my workbook.
The cells that this is effecting are described below.
Cells A37:AO42 are merged and contain a formula
=AN28&$AN$32&" "&AN36
**Here AN32 refers to a Name that will need the bold and color**
AN28 and AN36 are straight text
Cells A44:AO55 are merged and contain a formula
=AN44&", "&$AN$40&", "&AN48
**Here AN40 refers to a Name (which is also a cell containing a formula as it is dependant on other information in the preceeding cells) that will need the bold and color**
AN44 and AN48 are straight text
A23 contains the formula
=IF('Levers MC^2'!CI2="Tracked","Dear "&INDEX('Levers MC^2'!A:CL,MATCH("Tracked",'Levers MC^2'!CI:CI,0)+AN14,68)&",",IF('Levers MC^2'!CI2="Targeted","Dear "&INDEX('Levers MC^2'!A:CL,MATCH("Targeted",'Levers MC^2'!CI:CI,0),68)&",",IF('Levers MC^2'!CI2="Guaranteed","Dear "&INDEX('Levers MC^2'!A:CL,MATCH("Guaranteed",'Levers MC^2'!CI:CI,0),68)&",",IF('Levers MC^2'!A2=HLOOKUP('Levers MC^2'!A2,'Levers MC^2'!A:CP,MATCH('Levers MC^2'!A2,'Levers MC^2'!A:A,0)+1,FALSE),"Dear "&INDEX('Levers MC^2'!A:CL,MATCH(,'Levers MC^2'!A:A,0)+AN14,68)&",",""))))
And I use part of the text in the results of the formula above to get a helper cell formula in AX40
=IFERROR(MID(A23,6,(FIND(",",A23)-1)-5),"")
which gives me the name used in the results of A23 so that I can find the name I need for AN40
The formula that I use to get the name in AN40/A44 is:
=IFERROR(INDEX('Levers MC^2'!A:CL,MATCH(AX40,'Levers MC^2'!BP:BP,0),64),"")
The name in AN32/A37 will always be the same.
I hope I have given you enough information to help me. I appreciate any assistance that you could provide to me! I have been working on this for 4 days now, and I have come up with nothing.<v:shapetype id=_x0000_t75 stroked="f" filled="f" path="m@4@5l@4@11@9@11@9@5xe" oreferrelative="t" o:spt="75" coordsize="21600,21600"> <v:stroke joinstyle="miter"></v:stroke><v:formulas><v:f eqn="if lineDrawn pixelLineWidth 0"></v:f><v:f eqn="sum @0 1 0"></v:f><v:f eqn="sum 0 0 @1"></v:f><v:f eqn="prod @2 1 2"></v:f><v:f eqn="prod @3 21600 pixelWidth"></v:f><v:f eqn="prod @3 21600 pixelHeight"></v:f><v:f eqn="sum @0 0 1"></v:f><v:f eqn="prod @6 1 2"></v:f><v:f eqn="prod @7 21600 pixelWidth"></v:f><v:f eqn="sum @8 21600 0"></v:f><v:f eqn="prod @7 21600 pixelHeight"></v:f><v:f eqn="sum @10 21600 0"></v:f></v:formulas><vath o:connecttype="rect" gradientshapeok="t" o:extrusionok="f"></vath><o:lock aspectratio="t" v:ext="edit"></o:lock></v:shapetype><o></o>
<o></o>
~Rebecca<o></o>