Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default I need to compare two formulas that are being fed different raw d.

I am trying to automatically compare the text of two formulas from different
spreadsheets. Because the formulas are being fed different raw data they
return different results. When I use the 'exact' function to compare whether
the formulas are identical it evaluates the results of the formulas, not the
actual text of the formulas. This is returning to an incorrect "false".
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 339
Default I need to compare two formulas that are being fed different raw d.


"Steve K." <Steve wrote in message
...
I am trying to automatically compare the text of two formulas from

different
spreadsheets. Because the formulas are being fed different raw data they
return different results. When I use the 'exact' function to compare

whether
the formulas are identical it evaluates the results of the formulas, not

the
actual text of the formulas. This is returning to an incorrect "false".


Can you post your current code?

/Fredrik




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 12
Default I need to compare two formulas that are being fed different raw d.

Try the .Formula property of the respective range or .FormulaR1C1

Greetings Jonjo

"Steve K." wrote:

I am trying to automatically compare the text of two formulas from different
spreadsheets. Because the formulas are being fed different raw data they
return different results. When I use the 'exact' function to compare whether
the formulas are identical it evaluates the results of the formulas, not the
actual text of the formulas. This is returning to an incorrect "false".

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default I need to compare two formulas that are being fed different ra

I am not writing this as code. I have found a VB function that will allow me
to evaluate the cell formulas from within the spreadsheet,
http://www.cpearson.com/excel/GetInfo.htm, but I am not well versed enough to
understand how to make the function available to my Excel environment.
Apparently I need to install it?

"jonjo" wrote:

Try the .Formula property of the respective range or .FormulaR1C1

Greetings Jonjo

"Steve K." wrote:

I am trying to automatically compare the text of two formulas from different
spreadsheets. Because the formulas are being fed different raw data they
return different results. When I use the 'exact' function to compare whether
the formulas are identical it evaluates the results of the formulas, not the
actual text of the formulas. This is returning to an incorrect "false".

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default I need to compare two formulas that are being fed different ra

I am not writing this as code. I have found a VB function that will allow me
to evaluate the cell formulas from within the spreadsheet,
http://www.cpearson.com/excel/GetInfo.htm, but I am not well versed enough to
understand how to make the function available to my Excel environment.
Apparently I need to install it?

"Fredrik Wahlgren" wrote:


"Steve K." <Steve wrote in message
...
I am trying to automatically compare the text of two formulas from

different
spreadsheets. Because the formulas are being fed different raw data they
return different results. When I use the 'exact' function to compare

whether
the formulas are identical it evaluates the results of the formulas, not

the
actual text of the formulas. This is returning to an incorrect "false".


Can you post your current code?

/Fredrik







  #6   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default I need to compare two formulas that are being fed different ra

in each workbook where you want to use the function, go to the VBE and with
that workbook as the active project, do Insert=Module. Paste the code into
that module.

then you should be able to use it in you worksheets in that workbook.

--
Regards,
Tom Ogilvy

"Steve K." wrote in message
...
I am not writing this as code. I have found a VB function that will allow

me
to evaluate the cell formulas from within the spreadsheet,
http://www.cpearson.com/excel/GetInfo.htm, but I am not well versed enough

to
understand how to make the function available to my Excel environment.
Apparently I need to install it?

"Fredrik Wahlgren" wrote:


"Steve K." <Steve wrote in message
...
I am trying to automatically compare the text of two formulas from

different
spreadsheets. Because the formulas are being fed different raw data

they
return different results. When I use the 'exact' function to compare

whether
the formulas are identical it evaluates the results of the formulas,

not
the
actual text of the formulas. This is returning to an incorrect

"false".

Can you post your current code?

/Fredrik







  #7   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default I need to compare two formulas that are being fed different ra

thanks for your help. I think that did the trick.

"Tom Ogilvy" wrote:

in each workbook where you want to use the function, go to the VBE and with
that workbook as the active project, do Insert=Module. Paste the code into
that module.

then you should be able to use it in you worksheets in that workbook.

--
Regards,
Tom Ogilvy

"Steve K." wrote in message
...
I am not writing this as code. I have found a VB function that will allow

me
to evaluate the cell formulas from within the spreadsheet,
http://www.cpearson.com/excel/GetInfo.htm, but I am not well versed enough

to
understand how to make the function available to my Excel environment.
Apparently I need to install it?

"Fredrik Wahlgren" wrote:


"Steve K." <Steve wrote in message
...
I am trying to automatically compare the text of two formulas from
different
spreadsheets. Because the formulas are being fed different raw data

they
return different results. When I use the 'exact' function to compare
whether
the formulas are identical it evaluates the results of the formulas,

not
the
actual text of the formulas. This is returning to an incorrect

"false".

Can you post your current code?

/Fredrik








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
Formulas that compare and sum between worksheets Pat New Users to Excel 6 September 14th 09 11:01 PM
How do I compare cells and if FALSE compare to next cell in EXCEL Cindie Excel Worksheet Functions 0 March 24th 06 05:29 PM
How do I compare FORMULAS in two workbooks Doug Gault Excel Discussion (Misc queries) 2 May 6th 05 04:36 PM
I have 2 columns to compare,each text. doing formulas, they don'. Help with Match function & cell formats Excel Worksheet Functions 1 April 9th 05 01:52 AM
compare data from one column with another and compare result to yet another Matt Williamson[_3_] Excel Programming 1 September 25th 03 08:54 PM


All times are GMT +1. The time now is 06:09 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"