Return adjacent cell if conditional formatting exists.

G

Guest

I have several columns. One column contains conditional formatting returned
on a text search in the cell.

How can I set up a formula to return the adjacent cell when the cell next to
it is highlighted for conditional formatting.

Or, how can I say If ( certain text exists in column c then return column d)

Thanks,
 
B

Biff

How can I set up a formula to return the adjacent cell when the cell next
to
it is highlighted for conditional formatting.

You can't. There's no way to test for conditional formatting. You can use a
formula based on the logic of WHY a cell is conditionally formated:

=IF(C1="some_text",D1,"")

Biff
 
G

Gord Dibben

Not a problem Biff

Your simple formula is spot on.

But..............Posters should know what other options are available when
someone states

"There's no way to test for conditional formatting"


Gord

All that code when a simple worksheet formula will do?

No thanks!

Biff

Gord Dibben said:
Donna

See Chip Pearson's site methods of determining if and what type of CF is
on a
cell.

http://www.cpearson.com/excel/CFColors.htm


Gord Dibben MS Excel MVP

Gord Dibben MS Excel MVP
 
B

Biff

But..............Posters should know what other options
are available when someone states
"There's no way to test for conditional formatting"

That's true but they should also be made aware of all the caveats that
accompany those methods, which Chip seems to cover.

On the subject, I can't understand why the experts don't discourage
calculations based on formats/colors due to the inherent calculation issues.

Biff

Gord Dibben said:
Not a problem Biff

Your simple formula is spot on.

But..............Posters should know what other options are available when
someone states

"There's no way to test for conditional formatting"


Gord
 
B

Biff

http://tinyurl.com/y6vy8y

Biff

Biff said:
That's true but they should also be made aware of all the caveats that
accompany those methods, which Chip seems to cover.

On the subject, I can't understand why the experts don't discourage
calculations based on formats/colors due to the inherent calculation
issues.

Biff
 
G

Guest

Biff ! Thank you!
Regarding:calculations based on formats/colors due to the inherent calculation issues.<<

THAT is one of my major hot buttons!
Um....I think this might be a rant.....
Color coding is great if the application is a human...but, we're using Excel!
If we want to enter information into a worksheet, flag it, then have Excel
aggregate, cull, sum, etc those flagged items, we need to use flags that
Excel can "SEE"! I always train my Excel users to use data flags (1's vs
0's, X's, whatever) then let Conditional Formatting color the items. That way
they get what they want (eye catching colors) by using a technique that works
with Excel, instead of against it, and lends itself to automated data
analysis.

Yup...that was a rant...not a big one...but, still a rant. (sorry)

*********
**
Regards,
Ron

XL2002, WinXP
 
G

Guest

Thank you so much for all of your input. I read every word from both of you
and sincerely appreciate your time. I will go forward crayolas in hand : )
 
G

Guest

I hope it is so when I am bored (yeah like that will happen) then I can
entertain myself.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top