Source Tab Name

Carolann77

New Member
Joined
Jun 7, 2022
Messages
1
Office Version
  1. 2010
I would like to use conditional formatting to color code my values based on the Tab name of their Source. For example if the value comes from the Import 1010 Tab i would like to have it be blue and if it comes tab Import 1020 I would like to have an orange background. Is this possible? If so how?
 

Excel Facts

Lock one reference in a formula
Need 1 part of a formula to always point to the same range? use $ signs: $V$2:$Z$99 will always point to V2:Z99, even after copying
Are there formulas in the cells that you want to color? What do the formulas look like? If they are direct references like

Excel Formula:
='Import 1010'!C15

For newer versions you can use this rule:

Excel Formula:
=ISNUMBER(FIND(""Import 1010'",FORMULATTEXT(A1))

But I don't know of a built-in solution that will work in a version as old as 2010. Newer versions have the FORMULATEXT function but only starting with 2013. You would have to use a VBA user-defined function, and that means making your file macro-enabled. I can give you code if you want to go that direction.

VBA Code:
Public Function FORMULATEXT(R As Range) As String

   FORMULATEXT = R.Formula2

End Function
 
Upvote 0

Forum statistics

Threads
1,215,425
Messages
6,124,824
Members
449,190
Latest member
rscraig11

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