in excel, can I use values based on color for an "if, then" condi

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

in excel, can I use values based on color for an "if, then" condition? if the
name is in red font, then multiply B3 by D3.
 
You need a UDF, for example

Function CI(rng as Range)
If rng.Count = 1 Then
CI = rng.Font.Colorindex
End If
End Sub

and use like this

=IF(CI(B3)=3,B3*D3,"")

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)
 

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

Back
Top