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 |
---|
|
---|
| A | B | C | D | E | F | G |
---|
1 | | | | | | | |
---|
2 | total profit | 123 | | | | profit | |
---|
3 | | | | | | deficet | |
---|
4 | | | | | | later | |
---|
|
---|
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.
Excel 'mini-sheet' in messages - XL2BB Although experts prefer to read your description and question instead of working in your actual file to solve your problem, there are times that it is difficult to explain an issue without providing actual...
www.mrexcel.com
You can also test to see if it works ok, in the "Test Here" forum.
Use this forum to test your signature, learn bbcode, smilies, XL2BB, etc. Threads in this forum are automatically deleted after no replies for seven (7) days
www.mrexcel.com
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