Excel formula

jayesh

New Member
Joined
Mar 6, 2011
Messages
36
There are 25 employees in my company and I need to give them a single task on all 7 days a week. Every one has theire weekly off on different days. Is there a random function with some condition that I can use so that thier name appears on a perticular day of the month and that day should not be on their weekly off.
 

Excel Facts

How to change case of text in Excel?
Use =UPPER() for upper case, =LOWER() for lower case, and =PROPER() for proper case. PROPER won't capitalize second c in Mccartney
Something like this?
2j27xjp.jpg


Code:
=IF(VLOOKUP(INT(RANDBETWEEN(1,25),A2:D26;3)=VLOOKUP(INT(RANDBETWEEN(1,25),A2:D26;4),"WEEK OFF=DAYMONTH",VLOOKUP(INT(RANDBETWEEN(1,25),A2:D26;3)
 
Upvote 0
It dose not work.
I have list of employee and their weekly off on one sheet.
and in second sheet I have April1 thru April 30. I need the employee name beside each date but not on their day of weekly off.
 
Upvote 0
Sheet 1 - Column A has Name
Column B has Weekly off(eg. Sunday)

Sheet 2 - Column A has Dates (April 1 thru April 30)

In sheet 2 Column B I need names without weekly off days.
 
Upvote 0
Your situation:
165Foglio.jpg

Formula:
Code:
=IF(INDIRECT("'Table A'!B"&INT(RANDBETWEEN(1;25))+1;4)=TEXT(DAY(INDIRECT("A"&INT(RANDBETWEEN(1;25))+1));"DDDD");"W.O. of "&INDIRECT("'Table A'!A"&INT(RANDBETWEEN(1;25))+1;4);INDIRECT("'Table A'!A"&INT(RANDBETWEEN(1;25))+1;4))
Put in B2 of sheet2 and drag down.
 
Last edited:
Upvote 0
Thanks,
this works fine but one more change. In your formula A If a person has his weekly off on saturday, his name appears on satruday and I dont want that. If a person has weekly off on saturday then his name should not appear on saturdays.
 
Upvote 0

Forum statistics

Threads
1,224,505
Messages
6,179,153
Members
452,891
Latest member
JUSTOUTOFMYREACH

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