Hi all, I have an excel sheet that I will be using to put in Id's of a study in columns I have column A, B, C, D , E, F, G H, I , J ,K I am enrolling patients in a case:control study of 1:3 ratio - the cases are categorized into different types into column A, B, C to K every time I enroll a case I want to enroll 3 controls for that particular case 1) when I enroll another case of same category I should enroll other three controls 2) If I enroll two subsequent different case categories the controls for the first case should be assigned to the second case 3) If the third case is of different category I should enroll another set of 3 controls
e.g If first case is case A then I enroll 3 controls, if tomorrow I enroll another case and its in category A I should enroll another set of 3 controls, If third day I get case of category A still I enroll 3 new controls cycle continues,However if one day I enroll a case and its in category B i do not enroll a new set of controls I just populate its row with ID's for controls in previous case A, If next day I get case B or C I enroll new controls. I need a formula that will highlight or prompt for new controls. Any help will be much appreciated -- **In sun set years education is not associated with standard of living and medical care access; it is the the financial myosin and actin!!! **** Don't give me fish, teach me how to fish Kayoub K 0772656158 / 0703516660 Data Manager Mujhu Research Collaboration Mulago Hosp Msc Enterprise Architecture -- Are you =EXP(E:RT) or =NOT(EXP(E:RT)) in Excel? And do you wanna be? It’s =TIME(2,DO:IT,N:OW) ! Join official Facebook page of this forum @ https://www.facebook.com/discussexcel FORUM RULES 1) Use concise, accurate thread titles. Poor thread titles, like Please Help, Urgent, Need Help, Formula Problem, Code Problem, and Need Advice will not get quick attention or may not be answered. 2) Don't post a question in the thread of another member. 3) Don't post questions regarding breaking or bypassing any security measure. 4) Acknowledge the responses you receive, good or bad. 5) Jobs posting is not allowed. 6) Sharing copyrighted material and their links is not allowed. NOTE : Don't ever post confidential data in a workbook. Forum owners and members are not responsible for any loss. --- You received this message because you are subscribed to the Google Groups "MS EXCEL AND VBA MACROS" group. To unsubscribe from this group and stop receiving emails from it, send an email to excel-macros+unsubscr...@googlegroups.com. To post to this group, send email to excel-macros@googlegroups.com. Visit this group at https://groups.google.com/group/excel-macros. For more options, visit https://groups.google.com/d/optout.