ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   If Statement (https://www.excelbanter.com/excel-programming/382831-if-statement.html)

DP7

If Statement
 
Hi I am not quiet sure how to write this IF statement. If AC= €œmon€ then
add 8 days to ab, but if AC = €œthur€ the add 6 days to ab.
Thanks


Keith74

If Statement
 
On 8 Feb, 15:58, DP7 wrote:
Hi I am not quiet sure how to write this IF statement. If AC= "mon" then
add 8 days to ab, but if AC = "thur" the add 6 days to ab.
Thanks


if AC = "mon" then
ab = dateadd("d", 8 , ab)
elseif ac = "thur" then
ab = dateadd("d", 6, ab
end if

hth



All times are GMT +1. The time now is 03:04 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com