Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Dmitry Kopnichev
 
Posts: n/a
Default How to replace a function with its result or resulting reference in a formula?

Hello
How to replace a function with its result in a formula? For example,
=INDEX(...)+INDEX(...) with
=result_of_INDEX(a...)+result_of_INDEX(b...)=1025+ 1307.
How to replace a function with its resulting reference in a formula? For
example, =HLOOKUP(1...)+HLOOKUP(2...) with =b11+z11.


  #2   Report Post  
Dmitry Kopnichev
 
Posts: n/a
Default

I need to replace in 1000 cells automatically.
"Dmitry Kopnichev" сообщил/сообщила в новостях следующее:
...
Hello
How to replace a function with its result in a formula? For example,
=INDEX(...)+INDEX(...) with
=result_of_INDEX(a...)+result_of_INDEX(b...)=1025+ 1307.
How to replace a function with its resulting reference in a formula? For
example, =HLOOKUP(1...)+HLOOKUP(2...) with =b11+z11.




  #3   Report Post  
Bob Phillips
 
Posts: n/a
Default

A little macro

Sub ReplaceFormulae()
Dim cell As Range
Application.Calculation = xlCalculationManual
For Each cell In ActiveSheet.UsedRange
If cell.HasFormula Then
cell.Value = "Result of " & cell.Formula & _
" = " & cell.text
End If
Next cell
Application.Calculation = xlCalculationAutomatic
End Sub


--
HTH

Bob Phillips

"Dmitry Kopnichev" wrote in message
...
I need to replace in 1000 cells automatically.
"Dmitry Kopnichev" сообщил/сообщила в новостях

следующее:
...
Hello
How to replace a function with its result in a formula? For example,
=INDEX(...)+INDEX(...) with
=result_of_INDEX(a...)+result_of_INDEX(b...)=1025+ 1307.
How to replace a function with its resulting reference in a formula? For
example, =HLOOKUP(1...)+HLOOKUP(2...) with =b11+z11.






  #4   Report Post  
Dmitry Kopnichev
 
Posts: n/a
Default

The macro returns "Result or ==HLOOKUP(1...)+HLOOKUP(2...) = 365", but I
need =b11+z11.
"Bob Phillips" сообщил/сообщила в
новостях следующее: ...
A little macro

Sub ReplaceFormulae()
Dim cell As Range
Application.Calculation = xlCalculationManual
For Each cell In ActiveSheet.UsedRange
If cell.HasFormula Then
cell.Value = "Result of " & cell.Formula & _
" = " & cell.text
End If
Next cell
Application.Calculation = xlCalculationAutomatic
End Sub


--
HTH

Bob Phillips

"Dmitry Kopnichev" wrote in message
...
I need to replace in 1000 cells automatically.
"Dmitry Kopnichev" сообщил/сообщила в новостях

следующее:
...
Hello
How to replace a function with its result in a formula? For example,
=INDEX(...)+INDEX(...) with
=result_of_INDEX(a...)+result_of_INDEX(b...)=1025+ 1307.
How to replace a function with its resulting reference in a formula?

For
example, =HLOOKUP(1...)+HLOOKUP(2...) with =b11+z11.








  #5   Report Post  
Bob Phillips
 
Posts: n/a
Default

That is not what you said originally.

Where does B11 + Z11 come from?

--
HTH

Bob Phillips

"Dmitry Kopnichev" wrote in message
...
The macro returns "Result or ==HLOOKUP(1...)+HLOOKUP(2...) = 365", but I
need =b11+z11.
"Bob Phillips" сообщил/сообщила в
новостях следующее: ...
A little macro

Sub ReplaceFormulae()
Dim cell As Range
Application.Calculation = xlCalculationManual
For Each cell In ActiveSheet.UsedRange
If cell.HasFormula Then
cell.Value = "Result of " & cell.Formula & _
" = " & cell.text
End If
Next cell
Application.Calculation = xlCalculationAutomatic
End Sub


--
HTH

Bob Phillips

"Dmitry Kopnichev" wrote in message
...
I need to replace in 1000 cells automatically.
"Dmitry Kopnichev" сообщил/сообщила в новостях

следующее:
...
Hello
How to replace a function with its result in a formula? For example,
=INDEX(...)+INDEX(...) with
=result_of_INDEX(a...)+result_of_INDEX(b...)=1025+ 1307.
How to replace a function with its resulting reference in a formula?

For
example, =HLOOKUP(1...)+HLOOKUP(2...) with =b11+z11.












  #6   Report Post  
Dmitry Kopnichev
 
Posts: n/a
Default

The B11 is the cell from which the HLOOKUP(1...) returns value. The Z11 is
the cell from which the HLOOKUP(2...) returns value.
"Bob Phillips" сообщил/сообщила в
новостях следующее: ...
That is not what you said originally.

Where does B11 + Z11 come from?

--
HTH

Bob Phillips

"Dmitry Kopnichev" wrote in message
...
The macro returns "Result or ==HLOOKUP(1...)+HLOOKUP(2...) = 365", but I
need =b11+z11.
"Bob Phillips" сообщил/сообщила в
новостях следующее: ...
A little macro

Sub ReplaceFormulae()
Dim cell As Range
Application.Calculation = xlCalculationManual
For Each cell In ActiveSheet.UsedRange
If cell.HasFormula Then
cell.Value = "Result of " & cell.Formula & _
" = " & cell.text
End If
Next cell
Application.Calculation = xlCalculationAutomatic
End Sub


--
HTH

Bob Phillips

"Dmitry Kopnichev" wrote in message
...
I need to replace in 1000 cells automatically.
"Dmitry Kopnichev" сообщил/сообщила в новостях
следующее:
...
Hello
How to replace a function with its result in a formula? For

example,
=INDEX(...)+INDEX(...) with
=result_of_INDEX(a...)+result_of_INDEX(b...)=1025+ 1307.
How to replace a function with its resulting reference in a

formula?
For
example, =HLOOKUP(1...)+HLOOKUP(2...) with =b11+z11.












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
How to .. sbgvp Excel Discussion (Misc queries) 8 October 4th 05 09:16 PM
Excel option to store trendline's coefficients in cells for use Miguel Saldana Charts and Charting in Excel 9 June 20th 05 08:45 PM
EXCEL:NUMBER TO GREEK WORDS vag Excel Worksheet Functions 1 June 15th 05 05:57 PM
function based on result of same function GolfGal Excel Discussion (Misc queries) 1 April 6th 05 08:03 PM
Conversion SVC Excel Worksheet Functions 9 February 28th 05 02:29 PM


All times are GMT +1. The time now is 03:04 PM.

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"