I got a PhD in Statistics and I work every day in the field of Epidemiology using R as the main software. I guess what you ask for is not hard to do, but I didn't get your excel file. If you give me a deeper explanation of what you need I'll be able to confirm you I'm the right guy. Waiting for your reply, best regards
Matteo Scortichini