ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Trying to get contents of cell linked through IF function. (https://www.excelbanter.com/excel-worksheet-functions/191797-trying-get-contents-cell-linked-through-if-function.html)

bman1965

Trying to get contents of cell linked through IF function.
 
Hi,

I am using an IF function and I want the result to bring the formats of the
cell as well as the content. For example, IF(A1=1,B1,B2) where B1 and B2 are
cells that have different contents and formats (colors,fonts,etc.). Is this
possible?

Thanks

Dave

Trying to get contents of cell linked through IF function.
 
Hi,
I don't think you can use a function to do anything else except return a
formula.
However, in your example, you could perhaps use conditional formatting.

In the formula cell, open the CF window, select Formula Is, then:
Condition 1 =B1 and select format conditions identical to B1
Condition 2 =B2 and select format conditions identical to B2

Regards - Dave.

bman1965

Trying to get contents of cell linked through IF function.
 
Dave,

That worked. Thanks!!!

"Dave" wrote:

Hi,
I don't think you can use a function to do anything else except return a
formula.
However, in your example, you could perhaps use conditional formatting.

In the formula cell, open the CF window, select Formula Is, then:
Condition 1 =B1 and select format conditions identical to B1
Condition 2 =B2 and select format conditions identical to B2

Regards - Dave.



All times are GMT +1. The time now is 10:14 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com