Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Find and Replace Formula

Hello,

I need some help with a complex find and replace formula. I need to be able
to find predefined markers (**1**, **2** etc) within a paragraph and replace
them with calculated values from cells A1, A2 and A3 respectively.

Example of paragraph
The calculation of **1** and **2** equates to **3**.

Example of result
The calculation of 748 and 27 equates to 20196.

Thanks
Ruan


  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Find and Replace Formula

Try this:

A10 = The calculation of **1** and **2** equates to **3**.

=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A10,"**1**",A1), "**2**",A2),"**3**",A3)

Biff

"Ruan" wrote in message
...
Hello,

I need some help with a complex find and replace formula. I need to be
able to find predefined markers (**1**, **2** etc) within a paragraph and
replace them with calculated values from cells A1, A2 and A3 respectively.

Example of paragraph
The calculation of **1** and **2** equates to **3**.

Example of result
The calculation of 748 and 27 equates to 20196.

Thanks
Ruan



  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Find and Replace Formula

Thanks, however I have a cell that contains a paragraph of text that has
approx 260 characters. example -

Inforce policy count for New Policies (Term 0) and Renewed Policies (Term 1
and greater) grow at a rate of **1** and **2** respectively, resulting in a
**3** combined growth of inforce policies. New Policies show a more
volatile growth pattern over the year due to seasonality whereas the growth
in Renewed policies is a reflection of a relatively constant
renewal/cancellation rate after the first year.

I am using the current formula which only replaces **1** and **2**
=REPLACE(REPLACE(A5,FIND("**1**",A5),5,A1),FIND("* *2**",REPLACE(A5,FIND("**1**",A5),5,A1)),11,A2)

Ruan


"T. Valko" wrote in message
...
Try this:

A10 = The calculation of **1** and **2** equates to **3**.

=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A10,"**1**",A1), "**2**",A2),"**3**",A3)

Biff

"Ruan" wrote in message
...
Hello,

I need some help with a complex find and replace formula. I need to be
able to find predefined markers (**1**, **2** etc) within a paragraph and
replace them with calculated values from cells A1, A2 and A3
respectively.

Example of paragraph
The calculation of **1** and **2** equates to **3**.

Example of result
The calculation of 748 and 27 equates to 20196.

Thanks
Ruan





  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3,572
Default Find and Replace Formula

Why not just continue with your formula to replace the **3** with A3, and
just enter the calculation in A3 as:
=A1*A2

--

HTH,

RD
================================================== ===
Please keep all correspondence within the Group, so all may benefit!
================================================== ===

"Ruan" wrote in message
...
Thanks, however I have a cell that contains a paragraph of text that has
approx 260 characters. example -

Inforce policy count for New Policies (Term 0) and Renewed Policies (Term 1
and greater) grow at a rate of **1** and **2** respectively, resulting in a
**3** combined growth of inforce policies. New Policies show a more
volatile growth pattern over the year due to seasonality whereas the growth
in Renewed policies is a reflection of a relatively constant
renewal/cancellation rate after the first year.

I am using the current formula which only replaces **1** and **2**
=REPLACE(REPLACE(A5,FIND("**1**",A5),5,A1),FIND("* *2**",REPLACE(A5,FIND("**1**",A5),5,A1)),11,A2)

Ruan


"T. Valko" wrote in message
...
Try this:

A10 = The calculation of **1** and **2** equates to **3**.

=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A10,"**1**",A1), "**2**",A2),"**3**",A3)

Biff

"Ruan" wrote in message
...
Hello,

I need some help with a complex find and replace formula. I need to be
able to find predefined markers (**1**, **2** etc) within a paragraph and
replace them with calculated values from cells A1, A2 and A3
respectively.

Example of paragraph
The calculation of **1** and **2** equates to **3**.

Example of result
The calculation of 748 and 27 equates to 20196.

Thanks
Ruan






  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Find and Replace Formula

Thanks, however I have a cell that contains a paragraph of text that has
approx 260 characters. example -


Actually, your paragragh contains 404 chars.

=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A10,"**1**",A1), "**2**",A2),"**3**",A3)

Works ok for me.

Inforce policy count for New Policies (Term 0) and Renewed Policies (Term
1and greater) grow at a rate of 748 and 27 respectively, resulting in a
20196 combined growth of inforce policies. New Policies show a more
volatile growth pattern over the year due to seasonality whereas the growth
in Renewed policies is a reflection of a relatively constant
renewal/cancellation rate after the first year.

Biff

"Ruan" wrote in message
...
Thanks, however I have a cell that contains a paragraph of text that has
approx 260 characters. example -

Inforce policy count for New Policies (Term 0) and Renewed Policies (Term
1 and greater) grow at a rate of **1** and **2** respectively, resulting
in a **3** combined growth of inforce policies. New Policies show a more
volatile growth pattern over the year due to seasonality whereas the
growth in Renewed policies is a reflection of a relatively constant
renewal/cancellation rate after the first year.

I am using the current formula which only replaces **1** and **2**
=REPLACE(REPLACE(A5,FIND("**1**",A5),5,A1),FIND("* *2**",REPLACE(A5,FIND("**1**",A5),5,A1)),11,A2)

Ruan


"T. Valko" wrote in message
...
Try this:

A10 = The calculation of **1** and **2** equates to **3**.

=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A10,"**1**",A1), "**2**",A2),"**3**",A3)

Biff

"Ruan" wrote in message
...
Hello,

I need some help with a complex find and replace formula. I need to be
able to find predefined markers (**1**, **2** etc) within a paragraph
and replace them with calculated values from cells A1, A2 and A3
respectively.

Example of paragraph
The calculation of **1** and **2** equates to **3**.

Example of result
The calculation of 748 and 27 equates to 20196.

Thanks
Ruan









  #6   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 5
Default Find and Replace Formula

Awesome....thanks Biff, that works great. I can't believe how easy that was.

Ru




"T. Valko" wrote in message
...
Thanks, however I have a cell that contains a paragraph of text that has
approx 260 characters. example -


Actually, your paragragh contains 404 chars.

=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A10,"**1**",A1), "**2**",A2),"**3**",A3)

Works ok for me.

Inforce policy count for New Policies (Term 0) and Renewed Policies (Term
1and greater) grow at a rate of 748 and 27 respectively, resulting in a
20196 combined growth of inforce policies. New Policies show a more
volatile growth pattern over the year due to seasonality whereas the
growth in Renewed policies is a reflection of a relatively constant
renewal/cancellation rate after the first year.

Biff

"Ruan" wrote in message
...
Thanks, however I have a cell that contains a paragraph of text that has
approx 260 characters. example -

Inforce policy count for New Policies (Term 0) and Renewed Policies (Term
1 and greater) grow at a rate of **1** and **2** respectively, resulting
in a **3** combined growth of inforce policies. New Policies show a more
volatile growth pattern over the year due to seasonality whereas the
growth in Renewed policies is a reflection of a relatively constant
renewal/cancellation rate after the first year.

I am using the current formula which only replaces **1** and **2**
=REPLACE(REPLACE(A5,FIND("**1**",A5),5,A1),FIND("* *2**",REPLACE(A5,FIND("**1**",A5),5,A1)),11,A2)

Ruan


"T. Valko" wrote in message
...
Try this:

A10 = The calculation of **1** and **2** equates to **3**.

=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A10,"**1**",A1), "**2**",A2),"**3**",A3)

Biff

"Ruan" wrote in message
...
Hello,

I need some help with a complex find and replace formula. I need to be
able to find predefined markers (**1**, **2** etc) within a paragraph
and replace them with calculated values from cells A1, A2 and A3
respectively.

Example of paragraph
The calculation of **1** and **2** equates to **3**.

Example of result
The calculation of 748 and 27 equates to 20196.

Thanks
Ruan









  #7   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 15,768
Default Find and Replace Formula

You're welcome. Thanks for the feedback!

Biff

"Ruan" wrote in message
...
Awesome....thanks Biff, that works great. I can't believe how easy that
was.

Ru




"T. Valko" wrote in message
...
Thanks, however I have a cell that contains a paragraph of text that has
approx 260 characters. example -


Actually, your paragragh contains 404 chars.

=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A10,"**1**",A1), "**2**",A2),"**3**",A3)

Works ok for me.

Inforce policy count for New Policies (Term 0) and Renewed Policies (Term
1and greater) grow at a rate of 748 and 27 respectively, resulting in a
20196 combined growth of inforce policies. New Policies show a more
volatile growth pattern over the year due to seasonality whereas the
growth in Renewed policies is a reflection of a relatively constant
renewal/cancellation rate after the first year.

Biff

"Ruan" wrote in message
...
Thanks, however I have a cell that contains a paragraph of text that has
approx 260 characters. example -

Inforce policy count for New Policies (Term 0) and Renewed Policies
(Term 1 and greater) grow at a rate of **1** and **2** respectively,
resulting in a **3** combined growth of inforce policies. New Policies
show a more volatile growth pattern over the year due to seasonality
whereas the growth in Renewed policies is a reflection of a relatively
constant renewal/cancellation rate after the first year.

I am using the current formula which only replaces **1** and **2**
=REPLACE(REPLACE(A5,FIND("**1**",A5),5,A1),FIND("* *2**",REPLACE(A5,FIND("**1**",A5),5,A1)),11,A2)

Ruan


"T. Valko" wrote in message
...
Try this:

A10 = The calculation of **1** and **2** equates to **3**.

=SUBSTITUTE(SUBSTITUTE(SUBSTITUTE(A10,"**1**",A1), "**2**",A2),"**3**",A3)

Biff

"Ruan" wrote in message
...
Hello,

I need some help with a complex find and replace formula. I need to be
able to find predefined markers (**1**, **2** etc) within a paragraph
and replace them with calculated values from cells A1, A2 and A3
respectively.

Example of paragraph
The calculation of **1** and **2** equates to **3**.

Example of result
The calculation of 748 and 27 equates to 20196.

Thanks
Ruan











Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Find and replace numbers using a formula michelplantz Excel Worksheet Functions 6 November 6th 06 03:13 PM
Find Replace Formula shakey1181 Excel Discussion (Misc queries) 1 October 11th 06 02:15 PM
Find Replace Formula shakey1181 Excel Discussion (Misc queries) 0 October 11th 06 02:11 PM
How to find & replace a formula sequence with * in it? creativeops Excel Discussion (Misc queries) 2 September 8th 06 05:17 PM
Find and Replace Formula Links Werner Rohrmoser Excel Worksheet Functions 0 June 9th 05 12:13 PM


All times are GMT +1. The time now is 02:57 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"