Help with If/Or function

Rscottq

New Member
Joined
Nov 22, 2021
Messages
19
Office Version
  1. 365
  2. 2019
  3. 2016
Platform
  1. Windows
Hey all,

I'm keeping a log of vehicles we track. They are due for maintenance every 12 months or a specific mileage. I want a return to be in bold letters DUE. I already have the formula to calculate adding 12 months from last maint, and the specific mileage. I want the logical to calculate overdue. I had it right so far on the months, but tried to add the "OR" and cannot figure out what I'm doing wrong. Since I have cell for next mileage due, the monthly spreadsheet also has a report of that months mileage. This is why the "OR" function reads B13>C12. Figured that would be simplest. B13 is "Current Mileage", C12 is "Mileage Maint Req".

=IF(TODAY()>=EDATE($B11,12),"DUE","")=IF(OR($B13>$C12),"DUE","")

When I had just the date "DUE" populated where required. When I added the "OR" argument, I'm getting "FALSE" and "TRUE" which are not acceptable. Also help me make "DUE" bold?

Thanks in advance.
1649775167748.png

Scott
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
Maybe
Excel Formula:
IF(OR(TODAY()>=EDATE($B11,12),$B13>$C12),"DUE","")
 
Upvote 0
Solution
To make it bold you will need to format the cell as bold.
 
Upvote 0
just want to figure out how to make "DUE" bold.

Hi,

You can do this with CF (Conditional Formatting).
Assuming your formula is in Cell C13.
Select C13,
From Home tab, Select "Conditional Formatting"
"New Rule", "Use a formula......."
Enter the following formula in formula box:

=C13="DUE"

Select "Format", "Font" tab
Select "Bold" in Font Style box
Click OK.

Now the cell will ONLY be Bold if "Due" is the result, otherwise, it won't be Bold.
 
Upvote 0
As it's returning either Due or "" then using a simple cell format would (IMO) be far better than conditional formatting.
 
Upvote 0
Glad to help & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,224,587
Messages
6,179,734
Members
452,939
Latest member
WCrawford

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