Automatic setup of the difference between two or several spreadsheets - is it possible?

Razzy

Board Regular
Joined
Jul 24, 2020
Messages
106
Office Version
  1. 365
Platform
  1. Windows
Hi! :giggle:

*This time I will ask you before I spend hours on something that does not work in practice.

This is what the macro to produce:
I want to select lats say two spreadsheets, run a macro, and when the macro is done I want to be left with a separate spreadsheet, let's call it: "Compare", which shows = dynamic reference A - dynamic reference B.

Example for one cell:
Compare.xlsx
A
1-6
Ark1
Cell Formulas
RangeFormula
A1A1='C:\Users\Wayne\Downloads\[A.xlsx]Ark1'!$A$1-'C:\Users\Wayne\Downloads\[B.xlsx]Ark1'!$A$1


Comments:
- I have checked out the number of cells with formula, and we are in an area of 80,000. Surely this makes the macro will work forever?
- We are talking about large calculation templates for the company I work for.
- I have done the same with indirect formula, by having a preset template, but it is slow and works a lot.

My thoughts:
- I find filepath via filepicker.
- The macro must find all cells with formulas.
- Find the location and run a replacement.
- I think now that I have made this post, that the task is too big.

Do you have any other suggestions?
 

Excel Facts

How to find 2nd largest value in a column?
MAX finds the largest value. =LARGE(A:A,2) will find the second largest. =SMALL(A:A,3) will find the third smallest
I can set up a template with everything like:

='C:\Users\Wayne\Downloads\[A.xlsx]Ark1'!$A$1-'C:\Users\Wayne\Downloads\[B.xlsx]Ark1'!$A$1

as
=file1$A$1-file2$A$1

and then run search and replace on the whole spreadsheet?
 
Upvote 0
What is the limit of workbook references? And will it work faster than the indirect formula?

=file1$A$1-file2$A$1

=file1$A$2-file2$A$2

And so on.

*file1 and file2 I get from filepicker.
 
Upvote 0

Forum statistics

Threads
1,214,649
Messages
6,120,732
Members
448,987
Latest member
marion_davis

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top