How to color cells which contain formula?

Dhanola

New Member
Joined
Nov 8, 2022
Messages
8
Office Version
  1. 2021
  2. 2019
  3. 2016
Platform
  1. Windows

How to color cells which contain formula?​

renderTimingPixel.png


also posted here
Hey, there I have an excel sheet in which there is a column that has all cells with either of the two formulas one is the sum, and the other is sumif(). My question is how to color those cells only which contain the sum() function as the outer function?


r/excel - How to color cells which contain formula?

as you can see in the above excel sheet I have selected column R and in this, I want to color only the cells which are between the cells written "amount" and the green colored cell in which sumifs() are used and the rest white cells with sum as outer function.




r/excel - How to color cells which contain formula?
so like in the above image I want to color the cells like above for each week and for each month?
please check it on the excel sheet I am sharing here:


https://easyupload.io/vyvzeu
 
Last edited by a moderator:

Excel Facts

Did you know Excel offers Filter by Selection?
Add the AutoFilter icon to the Quick Access Toolbar. Select a cell containing Apple, click AutoFilter, and you will get all rows with Apple
maybe
=LEFT(FORMULATEXT(R1),7)

then in conditional formatting

=LEFT(FORMULATEXT(A2),7)="=sumifs"

but your example does
in row 8 - has a different formula = SUM(SUMIFS
anyway

really a small sample sheet is all thats needed trying to use xl2bb - just crashes

it will only be on dropbox for a day or 2
as its full of macros and conditional formatting
but mine is in yellow
 
Upvote 0
hey, thanks for helping but I want one last help: if you can add one more condition in it i.e. if a cell has the function sumifs and also the value in the cell is greater than 0 then color it. I mean both conditions must be met then only it color else not.
 
Upvote 0
ok,
try
=AND(R1>0,LEFT(FORMULATEXT(R1),7)="=sumifs")

i dont understand the sumifs
 
Upvote 0
Solution
ok,
try
=AND(R1>0,LEFT(FORMULATEXT(R1),7)="=sumifs")

i dont understand the sumifs
no not working even if I use sum in place of "sumifs" for a cell having "sum" in it
 
Upvote 0
working for me - see dropbox
 
Upvote 0

Forum statistics

Threads
1,214,601
Messages
6,120,460
Members
448,965
Latest member
grijken

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