Highlight cells with same formula

jewelichiii

New Member
Joined
Mar 24, 2022
Messages
3
Office Version
  1. 2016
Platform
  1. Windows
Hi. I am having difficulties in finding ways to highlight cells with the same formula.
For example:
1648116998953.png

The cell highlighted in yellow has the =X + no. of days format. Whereas the image below has the =EDATE(x,x) formula.
1648117116550.png

I need the cells with same formula to be highlighted in one color, same with the other formula with another color.

This file is used for batch number assignments in our food manufacturing plant and analysts frequently overlook and make errors.
Hoping someone can solve my dilemma. Thank you!
 

Excel Facts

What is the fastest way to copy a formula?
If A2:A50000 contain data. Enter a formula in B2. Select B2. Double-click the Fill Handle and Excel will shoot the formula down to B50000.
are you trying to conditional format based on the formula in the cell

you could use MID(FORMULATEXT(B2),2,5)="EDATE"

Not sure about the other formula , unless we base it on the + exists in the formula
=ISNUMBER((FIND("+",FORMULATEXT(B2),1)))

something like
Cell Formulas
RangeFormula
B2B2=EDATE(A2,6)
C2C2=MID(B2,2,4)
D2D2=MID(FORMULATEXT(B2),2,5)
B4B4=A1+165
D4D4=FORMULATEXT(B4)
B6B6=EDATE(A6,3)
E4:E6E4=ISNUMBER((FIND("+",FORMULATEXT(B4),1)))
B8B8=1+2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B1:B10Expression=ISNUMBER((FIND("+",FORMULATEXT(B1),1)))textNO
B1:B10Expression=MID(FORMULATEXT(B1),2,5)="EDATE"textNO


Note: Images are difficult to see , and also requires that I input all the data myself, which is very time consuming.

A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC , then put the sample spreadsheet onto a share
I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
 
Upvote 0
Hi. I am really sorry and I am grateful for your response. I cannot download the add-ins since this is a company-owned computer.
Here is the link of the file: MrExcel
 
Upvote 0
thats a word document ?

did you try my example - did it work, if not , why?

if its always +365
then we could change the + formula for +365

which i have updated below

does this work ?

Book7
AB
1
2182
3
4365
5
691
7
83
Sheet1
Cell Formulas
RangeFormula
B2B2=EDATE(A2,6)
B4B4=A1+365
B6B6=EDATE(A6,3)
B8B8=1+2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
B1:B10Expression=ISNUMBER((FIND("+365",FORMULATEXT(B1),1)))textNO
B1:B10Expression=MID(FORMULATEXT(B1),2,5)="EDATE"textNO
 
Upvote 0

Forum statistics

Threads
1,223,705
Messages
6,173,989
Members
452,541
Latest member
haasro02

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