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.
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
=IF(O2>=7,"Fully utliised","")

and copy down.
 
Upvote 0
Great thankyou, just realized though in the cell where I want the formula to go I also have a drop down list in there, is there any way to put the code in another cell but to still update M2 from O2?
 
Upvote 0
Only using code.
 
Upvote 0
If O2:O17 are manually entered, rather than formulas, you'd just use a Worksheet_Change event to update the corresponding cells in M when the values are changed.
 
Upvote 0
hi O2 to O17 is a formula to count (=SUM(C4:J4) would that still be okay? how would I do the worksheet_change event?
 
Upvote 0
You'd need worksheet_calculate if they are formulas. Something like this:

Code:
private sub worksheet_calculate()
application.enableevents = false
dim rw as long
for rw = 2 to 17
if cells(rw, "O").value >= 7 and cells(rw, "M").value <> "Fully utilised" then cells(rw, "M").value = "Fully utilised"
next rw
application.enableevents = true
end sub

That needs to go into the worksheet's code module (right-click the tab, choose View Code and then paste that in).
 
Upvote 0

Forum statistics

Threads
1,214,583
Messages
6,120,380
Members
448,955
Latest member
BatCoder

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