Jan 30 2022 11:22 AM - edited Feb 05 2022 11:11 AM
Jan 31 2022 06:00 AM
Feb 05 2022 11:16 AM
Feb 05 2022 05:12 PM
Perhaps this is what you're trying to do? I named the employee name, position/title, and primary leave cells (so vba can still find those cells if you insert/delete rows by they name instead of their cell address). If either the employee name cell changes or the primary leave cell changes, then it should test for "ceo" or "founder" and "new york paid family leave".
If you right click on the worksheet and select 'view code' then you'll see the vba procedure. Also, in the attached workbook, note I changed cell E19 to index/match as I don't have xlookup on this machine in order to test it.
Feb 05 2022 05:15 PM
Feb 05 2022 05:19 PM
Feb 05 2022 05:47 PM - edited Feb 05 2022 06:05 PM
You're quite welcome. In addition to @mtarler 's suggestions, I think another possible non-vba approach you could consider would be to use the filter function to filter out 'new york paid family leave' for ceos or founders so it's not even an option and use that as the data validation source for primary leave, But, you'd also have to apply data validation to the employee name so if primary leave was filled out first or left over from a previous input, it would force them to clear the primary leave field before selecting a ceo or founder.
Feb 12 2022 05:23 PM
Feb 12 2022 05:24 PM
Feb 12 2022 06:19 PM