Conditional Formatting

K_Lighty

New Member
Joined
Jun 9, 2022
Messages
4
Office Version
  1. 365
Platform
  1. Windows
Hi
I need help! I am trying to set up my spreadsheet so that one of my cells value, depends on two other cells colour.

Excel Screenshot.jpg


Basically I need the "JT PAID" cells value to change depending on which cell is green. "Payable to JT (Profit)" turns green when "Total Profit" is greater than 0 and "Payable to JT (Deficit)" turns green when "Total Profit" is less than 0. I am then linking this to another sheet but i'll worry about that later!

If anyone can help that would be great! As simply explain as possible too!
Thanks in advance.
 

Excel Facts

How to create a cell-sized chart?
Tiny charts, called Sparklines, were added to Excel 2010. Look for Sparklines on the Insert tab.
2 conditional formatting rules
as i dont know what cells - difficult to give a full solution

merged cells are alos difficult to use , no need to use them - just change the width


BUT assuming JT profit is Cell G2
and JT Deficient is G3

total profit in b2

for 2007, 2010 , 2013 , 2016 , 2019 or 365 Subscription excel version
Conditional Formatting

Highlight applicable range >>
G2

Home Tab >> Styles >> Conditional Formatting
New Rule >> Use a formula to determine which cells to format
Edit the Rule Description: Format values where this formula is true:
=$B$2>0

Format [Number, Font, Border, Fill]
choose the format you would like to apply when the condition is true
OK >> OK

2nd rule
Select G3
=$B$2<0

What happens if total profit = 0

Book4
ABCDEFG
1
2total profit123profit
3deficet
4later
Sheet2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
G3Expression=$B$2<0textNO
G2Expression=$B$2>0textNO


Note: Images are difficult to see , and also requires that I input all the data myself, which is very time consuming.

A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC , then put the sample spreadsheet onto a share
I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
Please make sure you have a representative data sample and also that the data has been desensitised, remember this site is open to anyone with internet access to see - so any sensitive / personal data should be removed
 
Upvote 0
2 conditional formatting rules
as i dont know what cells - difficult to give a full solution

merged cells are alos difficult to use , no need to use them - just change the width


BUT assuming JT profit is Cell G2
and JT Deficient is G3

total profit in b2

for 2007, 2010 , 2013 , 2016 , 2019 or 365 Subscription excel version
Conditional Formatting

Highlight applicable range >>
G2

Home Tab >> Styles >> Conditional Formatting
New Rule >> Use a formula to determine which cells to format
Edit the Rule Description: Format values where this formula is true:
=$B$2>0

Format [Number, Font, Border, Fill]
choose the format you would like to apply when the condition is true
OK >> OK

2nd rule
Select G3
=$B$2<0

What happens if total profit = 0

Book4
ABCDEFG
1
2total profit123profit
3deficet
4later
Sheet2
Cells with Conditional Formatting
CellConditionCell FormatStop If True
G3Expression=$B$2<0textNO
G2Expression=$B$2>0textNO


Note: Images are difficult to see , and also requires that I input all the data myself, which is very time consuming.

A SMALL sample spreadsheet, around 10-20 rows, would help a lot here, with all sensitive data removed, and expected results mocked up and manually entered, with a few notes of explanation.

MrExcel has a tool called “XL2BB” that lets you post samples of your data and will allow us to copy/paste your sample data into our Excel spreadsheets, saving a lot of time.

You can also test to see if it works ok, in the "Test Here" forum.

OR if you cannot get XL2BB to work, or have restrictions on your PC , then put the sample spreadsheet onto a share
I only tend to goto OneDrive, Dropbox or google docs , as I'm never certain of other random share sites and possible virus.
Please make sure you have a representative data sample and also that the data has been desensitised, remember this site is open to anyone with internet access to see - so any sensitive / personal data should be removed
Hi Thank you for your reply but I think you have misunderstood what I'm after. Or I've explained myself badly!
I already have the cells conditioned to turn green depending on profit value. What I need is another cell specifically "JT PAID" to take on the value of whichever cell is green.

Below is a picture of the rows and cells.

InkedScreenshot 2022-06-09 104653_LI.jpg
 
Upvote 0
how about
=IF(F90 > 0 , K90, IF ( F90 <0 , K91 , 0 ))

so
if the Total profit cell is greater than zero - copy the value from Payable to JT (Profit) cell
if the Total profit cell is less than zero - copy the value from Payable to JT (Deficit) cell
otherwise leave as zero - so if Total profit cell = 0 , then 0


Again - images are difficult to see and copy into an example

so as you see to have merged cells - i have guessed what cell the value is in
 
Upvote 0
how about
=IF(F90 > 0 , K90, IF ( F90 <0 , K91 , 0 ))

so
if the Total profit cell is greater than zero - copy the value from Payable to JT (Profit) cell
if the Total profit cell is less than zero - copy the value from Payable to JT (Deficit) cell
otherwise leave as zero - so if Total profit cell = 0 , then 0


Again - images are difficult to see and copy into an example

so as you see to have merged cells - i have guessed what cell the value is in
I will give that a try! Thank you so much! Life saver.
 
Upvote 0

Forum statistics

Threads
1,214,950
Messages
6,122,438
Members
449,083
Latest member
Ava19

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