ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Worksheet Functions (https://www.excelbanter.com/excel-worksheet-functions/)
-   -   Insert value based on color of the cell (https://www.excelbanter.com/excel-worksheet-functions/169831-insert-value-based-color-cell.html)

aberdonian user

Insert value based on color of the cell
 
Dear Experts,

I wonder if it is possible to insert value from a another cell based on the
color of the cell?

For example in A1:

=IF([Green],B1*30,IF([Yellow],B2*30,0))

Thank you in advance.

Regards,

Jim



T. Valko

Insert value based on color of the cell
 
IMHO you should not base calculations on cell formats. The reason is that
changing a cell format does not trigger a calculation so if you change the
cell color your formula *will not* update until some other event triggers a
calculation.

Why are the cells either green or yellow? You can probably build a formula
to do what you want based on the logic of *why* a cell is either green or
yellow.

That being said, look here for the technique:

http://xldynamic.com/source/xld.ColourCounter.html

Make sure you read the section: Constraints!

--
Biff
Microsoft Excel MVP


"aberdonian user" wrote in message
...
Dear Experts,

I wonder if it is possible to insert value from a another cell based on
the color of the cell?

For example in A1:

=IF([Green],B1*30,IF([Yellow],B2*30,0))

Thank you in advance.

Regards,

Jim




aberdonian user

Insert value based on color of the cell
 
Thanks Biff,

You are right. I made it too complicated. I found another, easy way to do
what I need. Quite happy with that.

Thanks anyway.

Regards,
Jim

"T. Valko" wrote in message
...
IMHO you should not base calculations on cell formats. The reason is that
changing a cell format does not trigger a calculation so if you change the
cell color your formula *will not* update until some other event triggers
a calculation.

Why are the cells either green or yellow? You can probably build a formula
to do what you want based on the logic of *why* a cell is either green or
yellow.

That being said, look here for the technique:

http://xldynamic.com/source/xld.ColourCounter.html

Make sure you read the section: Constraints!

--
Biff
Microsoft Excel MVP


"aberdonian user" wrote in message
...
Dear Experts,

I wonder if it is possible to insert value from a another cell based on
the color of the cell?

For example in A1:

=IF([Green],B1*30,IF([Yellow],B2*30,0))

Thank you in advance.

Regards,

Jim






T. Valko

Insert value based on color of the cell
 
Good deal. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"aberdonian user" wrote in message
...
Thanks Biff,

You are right. I made it too complicated. I found another, easy way to do
what I need. Quite happy with that.

Thanks anyway.

Regards,
Jim

"T. Valko" wrote in message
...
IMHO you should not base calculations on cell formats. The reason is that
changing a cell format does not trigger a calculation so if you change
the cell color your formula *will not* update until some other event
triggers a calculation.

Why are the cells either green or yellow? You can probably build a
formula to do what you want based on the logic of *why* a cell is either
green or yellow.

That being said, look here for the technique:

http://xldynamic.com/source/xld.ColourCounter.html

Make sure you read the section: Constraints!

--
Biff
Microsoft Excel MVP


"aberdonian user" wrote in message
...
Dear Experts,

I wonder if it is possible to insert value from a another cell based on
the color of the cell?

For example in A1:

=IF([Green],B1*30,IF([Yellow],B2*30,0))

Thank you in advance.

Regards,

Jim









All times are GMT +1. The time now is 11:02 PM.

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