Solved

compare excel values, not the formula

Posted on 2011-03-21
2
321 Views
Last Modified: 2012-08-13
Hi,

Ive got an excel macro that compares 2 sources (sheet 1 as source 1, sheet 2 as source 2). The problem Im having is that Im pulling the data from both sources using the same formula in both sheets and when my macro tries to compare it says there are no differences even though the values in the cells are different (the formula to derive the value in the cell is the same)

Ive attached the macro as a file

Cheers
macro.txt
0
Comment
Question by:DiCanio13
2 Comments
 
LVL 50

Accepted Solution

by:
Dave Brett earned 500 total points
ID: 35186496
Rather than

cf1 = ws1.Cells(r, c).FormulaLocal
cf2 = ws2.Cells(r, c).FormulaLocal

try this

Dave

cf1 = ws1.Cells(r, c).Value
cf2 = ws2.Cells(r, c).Value

Open in new window

0
 

Author Closing Comment

by:DiCanio13
ID: 35186598
Cheers thats great
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Since upgrading to Office 2013 or higher installing the Smart Indenter addin will fail. This article will explain how to install it so it will work regardless of the Office version installed.
This Micro Tutorial will demonstrate on a Mac how to change the sort order for chart legend values and decrpyt the intimidating chart menu.
This Micro Tutorial will demonstrate how to create pivot charts out of a data set. I also added a drop-down menu which allows to choose from different categories in the data set and the chart will automatically update.

816 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now