conditionally format using 2 criteria and non corresponding cells

02100kara

New Member
Joined
Jun 28, 2022
Messages
4
Office Version
  1. 365
Platform
  1. MacOS
I created a calendar, I would like the days of the calendar to be formatted based on the profit or loss for that day. I figured I could have a query table that takes all the data from my main dataset and groups/sums the P&L by day, and then reference this table in a formula to format the calendar. Is this possible/ the best way? what should the formula be to do this?
I only need 3 formats, red if loss, green if profit, blue of $0.
There aren't any tutorials I've found that explains this issue. All I've seen is formatting data in adjacent rows, this is much more complex issue.
 

Attachments

  • Screen Shot 2022-06-28 at 9.35.18 PM.png
    Screen Shot 2022-06-28 at 9.35.18 PM.png
    149.3 KB · Views: 20
  • Screen Shot 2022-06-28 at 9.35.49 PM.png
    Screen Shot 2022-06-28 at 9.35.49 PM.png
    124.1 KB · Views: 12

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
What is the formula in the cells of your calendar (B10:H15)? The important thing is whether it gives just the day of the month, or whether it gives a whole date formatted as "d".

Where is your "main dataset" with the P/L data? You may not have to create a helper table, depending on how your source data is organized. What is the formula in Q84 and downwards?
 
Upvote 0
What is the formula in the cells of your calendar (B10:H15)? The important thing is whether it gives just the day of the month, or whether it gives a whole date formatted as "d".

Where is your "main dataset" with the P/L data? You may not have to create a helper table, depending on how your source data is organized. What is the formula in Q84 and downwards?
thanks for helping, i got it now! this stumped me all day! using this:
=0=INDEX($P$83:$Q$733,MATCH(B10,$P$83:$P$733,0),2)
=0>INDEX($P$83:$Q$733,MATCH(B10,$P$83:$P$733,0),2)
=0<INDEX($P$83:$Q$733,MATCH(B10,$P$83:$P$733,0),2)
 

Attachments

  • Screen Shot 2022-06-28 at 11.35.39 PM.png
    Screen Shot 2022-06-28 at 11.35.39 PM.png
    177.3 KB · Views: 21
Upvote 0
Solution
Glad you worked it out. I am surprised that just asking a couple of questions helped. :)
 
Upvote 0

Forum statistics

Threads
1,224,817
Messages
6,181,144
Members
453,021
Latest member
Justyna P

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