Formula depending on the color of a cell to calculate values

keranali

Rules Violation
Joined
Oct 4, 2010
Messages
234
Office Version
  1. 365
Platform
  1. Windows
Good Day All can I calculate values based on the colors of a cell. Calculation will be.... For Cell BJ3....if BF3 is red then take BI3 and make it a negative value and For Cell BJ3... If BF3 is Green then take (BM2*BL2)-BI4

Cell Colours

the project 1.3.xlsm
BF
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Overview


Sample output

Cell Formulas
RangeFormula
BJ3BJ3=-BI3
BJ4BJ4=(BM2*BL2)-BI4
BI3:BI27BI3=$BM$2*$BN$2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
BH3:BI28Expression=AND(BG3<>"",ISEVEN(BG3))textNO
BH3:BI28Expression=ISODD(BG3)textNO


Adjustable values

the project 1.3.xlsm
BLBMBN
234522
Overview
 
Thanks so much for taking the time to address this problem I have downloaded the file and will implement andreport back.
 
Upvote 0

Excel Facts

Highlight Duplicates
Home, Conditional Formatting, Highlight Cells, Duplicate records, OK to add pink formatting to any duplicates in selected range.
The formula worked perfect thanks so much for this I saw the problem in my formula with the $signs and corrected them. Thanks again:)
 
Upvote 0

Forum statistics

Threads
1,215,346
Messages
6,124,417
Members
449,157
Latest member
mytux

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