Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Or statement
Hi All,
I am trying to write a statement like if A or B or C is not date then Msgbox "Enter Date" I can do individual ones like if isdate(A)=false then msgbox "Enter date" How do I make one statement to cover all three or more conditions? Thanks for you help. Regards UJ |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Or statement
Hi
try If Not IsDate(A) or Not IsDate(B) or Not IsDate(C) then Msgbox "Enter Date" end if -- Regards Frank Kabel Frankfurt, Germany Uddinj1 wrote: Hi All, I am trying to write a statement like if A or B or C is not date then Msgbox "Enter Date" I can do individual ones like if isdate(A)=false then msgbox "Enter date" How do I make one statement to cover all three or more conditions? Thanks for you help. Regards UJ |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Or statement
Frank,
Thank you for your help. Regards UJ |
#4
Posted to microsoft.public.excel.programming
|
|||
|
|||
Or statement
Or:
if not(IsDate(A) and IsDate(B) and IsDate(C)) then -- "Frank Kabel" wrote in message ... Hi try If Not IsDate(A) or Not IsDate(B) or Not IsDate(C) then Msgbox "Enter Date" end if -- Regards Frank Kabel Frankfurt, Germany Uddinj1 wrote: Hi All, I am trying to write a statement like if A or B or C is not date then Msgbox "Enter Date" I can do individual ones like if isdate(A)=false then msgbox "Enter date" How do I make one statement to cover all three or more conditions? Thanks for you help. Regards UJ |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
Vlookup, if statement, maybe an and statement | Excel Discussion (Misc queries) | |||
IF statement inside a SUMIF statement.... or alternative method | Excel Worksheet Functions | |||
Reconcile Bank statement & Credit card statement & accounting data | Excel Worksheet Functions | |||
Embedding an OR statement in an IF statement efficiently | Excel Discussion (Misc queries) | |||
appending and IF statement to an existing IF statement | Excel Worksheet Functions |