# Assigning a value based on other cell data and certain criteria.

#### dgroff

##### New Member
Hi,

I manage housekeepers in a hotel and I am trying to create a spreadsheet that helps me make room cleaning assignments based on certain criteria.

The sample sheet shows the 3 columns of criteria for each room. Room Type, Room Condition, Stay-C/O (Stay over vs. Check out). I also want to weigh the criteria so the assignments are fair. (Rooms with 2 beds or larger rooms type are harder than our smaller rooms.) Then I would limit the amount of total "weight" given each housekeeper. So I'm hoping for a formula that will look at the criteria, determine the weight, assign the room, and then move on to assigning the following room. Once a Housekeeper has reached the determined maximum "weight" then the formula would move on to assigning rooms to the next housekeeper. Continuing until all rooms are assigned.

To add one more complexity, I would like to max the total NQQ, HNQQ, or NK3 types to 4 for any housekeeper.

I know this is quite complicated and it may be too much, but I have been very successful in the past with getting answers from this group to questions I thought may be too complicated.

I used Google Sheets for the sample for easy sharing.

Thank you for any help!

### Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.

Replies
23
Views
1K
Replies
0
Views
277
Replies
0
Views
295
Replies
0
Views
228
Replies
0
Views
248

1,129,556
Messages
5,637,035
Members
416,954
Latest member
Gohar hussain

### 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.

### Which adblocker are you using?

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

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