MatthewLane412

New Member
Joined
Aug 23, 2017
Messages
24
Hello, I have a workbook with 2 sheets, sheet one has column I. Column I is filled with Percent's.

Sheet has cell B2 filled in with one of the following "Jan, Feb, March, Apr, Jun, Jul, Aug, Sep, Oct, Nov, Dec."

The Conditional formatting formula I thought would be something along with lines of:

-------------If(Sheet2 cell B2 = "Feb" then I the % sheet 1 column I11-I31 the column is less than 10 divided by 12, color red.

then the same formula for each month but 9/12 for march and so on.

hopefully this makes sense. I appreciate everyone taking a look.

Thank you,
Matt
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
The fact you are using strings instead of real dates complicates things. Here is what I would use as the CF rule

=I11<MATCH(Sheet2!B2,{"Jan","Feb","March","Apr","Jun","Jul","Aug","Sep","Oct","Nov","Dec"},0)/12

Note that you said March instead of Mar. Double check that one.
 
Upvote 0
That was a typo. it should have been Mar. I Use Hyperion at work so all our months are abbreviated.

the code I have come up with, with some help, isn't doing the trick. the code takes and I set the conditional formatting to turn all true results red, but everything stays black.

AND(Sheet2!$B$2="Feb,$I11<(10/12))

Thanks, Matt
 
Upvote 0
That's funny, my formula did not stick in the post.

Should be

=I11<(12-MATCH(Sheet2!$B$2,{"Jan", "Feb", "Mar", "Apr", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"},0))/12
 
Upvote 0

Forum statistics

Threads
1,214,795
Messages
6,121,624
Members
449,041
Latest member
Postman24

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