KillerDragonKC
New Member
- Joined
- Sep 9, 2015
- Messages
- 20
I believe what I am looking for is a proper If Then Else statement to put into my current VBA code.
What I have is Numerical values in Column H, of which the only 2 I am concerned with is 220 or 221.
*If the value in the cell of Column H is 220 then the formula =IF(AND(L2>(365-(Import!$E$3-TODAY())), L2<365),"YES","NO"), would need to be the result.
-----Basically what I have is the end of the current month in cell E3 of the Import Tab. The formula tells me if the current line is going to cross the 365 day threshold by the end of this month. If it is then the result would be YES
*If the value in the cell of Column H is 221 then the formula =IF(AND(L2>(90-(Import!$E$3-TODAY())), L2<90),"YES","NO"), would need to be the result.
Same scenario as the 220 only in this case I am determining if the line will cross the 90 day threshold by the end of this month.
*All other values in Column H would need to be answered with a NO.
I have, with the help of this forum, been able to get the script setup to import my text file and get me to this point. I am just stumped at this crossroad.
I have researched and come up with nothing that I can modify to work in my favor. I hope one of the many guru's on this forum can direct me to a solution.
Thank you ahead of time for any assistance you can provide.
What I have is Numerical values in Column H, of which the only 2 I am concerned with is 220 or 221.
*If the value in the cell of Column H is 220 then the formula =IF(AND(L2>(365-(Import!$E$3-TODAY())), L2<365),"YES","NO"), would need to be the result.
-----Basically what I have is the end of the current month in cell E3 of the Import Tab. The formula tells me if the current line is going to cross the 365 day threshold by the end of this month. If it is then the result would be YES
*If the value in the cell of Column H is 221 then the formula =IF(AND(L2>(90-(Import!$E$3-TODAY())), L2<90),"YES","NO"), would need to be the result.
Same scenario as the 220 only in this case I am determining if the line will cross the 90 day threshold by the end of this month.
*All other values in Column H would need to be answered with a NO.
I have, with the help of this forum, been able to get the script setup to import my text file and get me to this point. I am just stumped at this crossroad.
I have researched and come up with nothing that I can modify to work in my favor. I hope one of the many guru's on this forum can direct me to a solution.
Thank you ahead of time for any assistance you can provide.