Formula for if number is 7 or higher to add 'Fully Utilised' in a cell

Patriot2879

Well-known Member
Joined
Feb 1, 2018
Messages
1,227
Office Version
  1. 2010
Platform
  1. Windows
Hi good morning, please can you help I want a formula for; IF Cell O2:O17 = 7 or greater then cell M2:M17 to add note in cell 'Fully Utilised' please can you help.
 
Hiya, good morning, I have amended the code you provided, as I want it to look into 2 rows M and N and if number is 7 or higher to update cell in O as fully utilized, I have changed it to M;N but this didn't work, please can you advise how I change it to look into 2 rows?
Code:
Private Sub worksheet_calculate()
Application.EnableEvents = False
Dim rw As Long
For rw = 4 To 54
If Cells(rw, "M:N").Value >= 7 And Cells(rw, "O").Value <> "Fully Utilised" Then Cells(rw, "O").Value = "Fully Utilised"
Next rw
Application.EnableEvents = True
End Sub
 
Upvote 0

Excel Facts

Which lookup functions find a value equal or greater than the lookup value?
MATCH uses -1 to find larger value (lookup table must be sorted ZA). XLOOKUP uses 1 to find values greater and does not need to be sorted.
Do you mean if either M or N is more than 7, or if the total is more than 7? (or something else)
 
Upvote 0
Hi Rory if the number in a cell for Column M or N is 7 or more then in column O needs to be updated to Fully utilized.
Same as the oiginal code really just wanted to add a extra column if possible please?
 
Upvote 0
You can use:

Code:
If (Cells(rw, "M").Value >= 7 Or Cells(rw, "N").Value >= 7) And Cells(rw, "O").Value <> "Fully Utilised" Then Cells(rw, "O").Value = "Fully Utilised"
 
Upvote 0

Forum statistics

Threads
1,214,593
Messages
6,120,435
Members
448,962
Latest member
Fenes

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