Read range your holiday sheet, then use look up datatable to check if Date.Now is in your holiday sheet. If it is then bot do nothing as it is a holiday.
Can you please elaborate more as today is Tuesday so the Robot should work for today as your working week is Monday to Friday. Let me know if i understand your question or not.
Lets say last working day is strLastWorkingDay,
Create a boolean blnLooking set the default value to True, intCounter set default to -1
Then create a Do while loop based on blnLooking condition
Inside the loop lookup Date.Now.AddDays(intCounter) from your excel. If it is found it means yesterday is a holiday. Assign intCOunter = intCounter -1 which will make your next loop check the previous day, if it is not found, check what day is it.
If Date.Now.AddDays(intCounter).ToString(“dddd”).ToUpperInvariant = “SUNDAY” or Date.Now.AddDays(intCounter).ToString(“dddd”).ToUpperInvariant = “SATURDAY”
Then assign intCOunter = intCounter -1
Else
strLastWorkingDay = Date.Now.AddDays(intCounter).ToString(“dddd”)
blnLooking = False