scenario possibly need conditional formatting or pop up

lezawang

Well-known Member
Joined
Mar 27, 2016
Messages
1,805
Office Version
  1. 2016
Platform
  1. Windows
Hi I have scenario like the following: I do not want to allow 2 material to have same week (to be borrowed same week). I want to give a user an message saying he can not have that week because other device reserved that week.
For example Device 10 is taken in week 4 then later device 200 is also taken in week4. That is not allow. I want to excel either highlight device 200 raw or give a pop up saying not allow. Same apply on device 150 which is taken in week 10 then
excel should not allow device 66 to have same week. Thank you so much.
[TABLE="class: grid, width: 100"]
<tbody>[TR]
[TD]device#[/TD]
[TD]week[/TD]
[/TR]
[TR]
[TD]10
[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]40[/TD]
[TD]1[/TD]
[/TR]
[TR]
[TD]100[/TD]
[TD]2[/TD]
[/TR]
[TR]
[TD]200[/TD]
[TD]4[/TD]
[/TR]
[TR]
[TD]150[/TD]
[TD]10[/TD]
[/TR]
[TR]
[TD]170[/TD]
[TD]40[/TD]
[/TR]
[TR]
[TD]66[/TD]
[TD]10[/TD]
[/TR]
</tbody>[/TABLE]
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
Assuming that your data starts in A1.
Select A2:B to end > Home tab > Conditional Formatting > New Rule > use a formula > =COUNTIF($B$2:$B2,$B2)>1 > select format > OK
 
Upvote 0
Can you kindly explain what this formula does? I mean I do not understand countif arguments? thank you once again
 
Upvote 0
There are plenty of sites on the web that explain what the functions are & how to use them.
Try searching Excel Countif
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,176
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