Duplication of a formula

tamrob23

Board Regular
Joined
Jun 20, 2006
Messages
203
I literally have over 1,500 rows of formulas, is there a formula to check to see if you duplicated a formula? Any help will be greatly appreciated.


Thanks!

Tamara
 

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.

schielrn

Well-known Member
Joined
Apr 4, 2007
Messages
6,941
The only way I can think of doing this is with VBA or a UDF. Is that an option?
 
Upvote 0

schielrn

Well-known Member
Joined
Apr 4, 2007
Messages
6,941
It is code or a user defined function. They are ways of creating your own functions or creating code to do stuff automatically.

Try this. Press Alt+F11. Then press Alt, I and then M. This will insert a module. Then paste this code in the module:

Code:
'--------------------------------------------------------------------------------------------------------
'***NEW FUNCTION***
'Description: Returns text equivalent of formula in cell.
Function GetText(cell As Range)
GetText = cell.Formula
End Function
Then go back to your workbook and input this formula:

=SUMPRODUCT(--((RIGHT(gettext($A$1:$A$18),LEN(gettext($A$1:$A$18))-1)=RIGHT(gettext(A1),LEN(gettext(A1))-1))))

Change the ranges to your range for the formula and then you can copy this formula down the column. Anything that is greater than 1 is a duplicate. You can filter on this if you want.

Hope that helps and post back any questions if you are lost.
 
Upvote 0

Peter_SSs

MrExcel MVP, Moderator
Joined
May 28, 2005
Messages
59,294
Office Version
  1. 365
Platform
  1. Windows
I literally have over 1,500 rows of formulas, is there a formula to check to see if you duplicated a formula? Any help will be greatly appreciated.


Thanks!

Tamara
Can you expand a little on the situation? Perhaps some example formulas? Maybe a dummy example with only, say, 8-10 rows to explain what you have and what you are trying to achieve?
 
Upvote 0

Forum statistics

Threads
1,191,025
Messages
5,984,198
Members
439,877
Latest member
kellylet

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
Top