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

How to fill five years of quarters?
Type 1Q-2023 in a cell. Grab the fill handle and drag down or right. After 4Q-2023, Excel will jump to 1Q-2024. Dash can be any character.
The only way I can think of doing this is with VBA or a UDF. Is that an option?
 
Upvote 0
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
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,214,649
Messages
6,120,730
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