Bot should go through each player one by one and check if value “x” mentioned in whole date range if yes then skip that record otherwise bot should enter same record again in bottom with same details for A to C column then in date range it should mention value “x” for all columns for same person and for other person it should mention same data. Please see screenshot for your reference.
![The image shows a table of WWE data listing player names, authorized doctors, diseases, and daily records from January 1st to January 7th, highlighting consultations (R) and prescription drugs (BC) in yellow.
Actual data-
Query - Bot should check value x is availabe for whole date range then skip the record else it insert new record.
If you see in 1st screenshot player 2- Randy Orton there are BC and X values available for both JOHN SMITH & ROSE MARY.
What I need is bot should put x in ROSE MARY in top record and enter new record and put X in JOHN SMITH and placed same value in Rose mary
Here 3 players visited both physcians(Smith & Mary) on different dates, if a player visited both physcians then there should be 2 entries and if only visited 1 physician then skip that record.
In below screenshot we can see player 1 visited both physicians so 2 entries and other players visited only 1 physician.