Hello,
can you please help with a formula for below conditions,
I need to put this into a macro.
Any help is appreciated. (Sample Attached)
IF Service (Column AF) = 107 AND DateTime (Column C) < = Date @ 12-00-00.00 Then (Column D) = DateTime + 2 HRS
IF Service (Column AF) = 109 AND DateTime (Column C) < = Date @ 12-00-00.00 Then (Column D) = DateTime + 5 HRS
IF Service (Column AF) = 313 AND DateTime (Column C) < = Date @ 12-00-00.00 Then (Column D) = DateTime + 1 Day @ 18-00-00.00
IF Service (Column AF) = 123 AND DateTime (Column C) < = Date @ 12-00-00.00 Then (Column D) = DateTime + 1 Day @ 12-00-00.00
IF Service (Column AF) = 124 AND DateTime (Column C) < = Date @ 12-00-00.00 Then (Column D) = DateTime + 1 Day @ 17-00-00.00
IF Service (Column AF) = 107 AND DateTime (Column C) < = Date @ 17-00-00.00 Then (Column D) = DateTime + 1 Day @ 10-00-00.00
IF Service (Column AF) = 109 AND DateTime (Column C) < = Date @ 17-00-00.00 Then (Column D) = DateTime + 1 Day @ 13-00-00.00
IF Service (Column AF) = 313 AND DateTime (Column C) < = Date @ 17-00-00.00 Then (Column D) = DateTime + 1 Day @ 18-00-00.00
IF Service (Column AF) = 123 AND DateTime (Column C) < = Date @ 17-00-00.00 Then (Column D) = DateTime + 1 Day @ 12-00-00.00
IF Service (Column AF) = 124 AND DateTime (Column C) < = Date @ 17-00-00.00 Then (Column D) = DateTime + 1 Day @ 17-00-00.00 Sample.xlsx
Our community of experts have been thoroughly vetted for their expertise and industry experience. Experts with Gold status have received one of our highest-level Expert Awards, which recognize experts for their valuable contributions.
Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.
Jim Murphy
Programmer at Smart IT Solutions
When asked, what has been your best career decision?
Deciding to stick with EE.
Mohamed Asif
Technical Department Head
Being involved with EE helped me to grow personally and professionally.
Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question
Connect with Certified Experts to gain insight and support on specific technology challenges including: