andif
The UK's Number 1 for Microsoft Office Training Add this page to your favourites/bookmarksBookmark page
 
View printable version of pagePrintable version
Plus One Google
Customer: Sign in
Delegate: Sign in
Trainer: Log in

Forum home » Delegate support and help forum » Microsoft Excel Training and help » ANDIF

ANDIF

resolvedResolved · High Priority · Version 2007

replyReply Fri 8 Oct 2010, 13:18Delegate MARIOS said...

MARIOS has attended:
Excel VBA Intro Intermediate course

ANDIF

This is a question for Mark Monroe who attended our site for an Excel 2007 course.

The first statement I know works but the second one does not as it appears not to recognise the specific date and therefore reports a true (1) answer on anything that satisfies the first criteria i.e. "Rented"

=IF(AND(J136="rented",S136>TODAY()),1,0)

=IF(AND(J136="rented",S136>08/10/2010),1,0)

How can I get it to recognise the specific date I will enter in the second part of the AND statement?

Please advise.

Thanks,
Marios

For upcoming training course dates see: Pricing & availability

replyReply Mon 11 Oct 2010, 13:24Trainer Mark said...

RE: ANDIF

Hi Marios,

The date part has to be specified either as the actual serial number of date, or by far the easiest, use the DateValue command.
e.g.
=if(and(A1="yes",A2>DateValue("12/5/10"),1,0)

hope that helps.

Mark


Hello xxxxxxxx,

Hope you enjoyed your Microsoft XXXXXX course with BEST Training.
Thank you for your question regarding XXXXXXXXXXXXX



I hope this resolves your question. If it has, please mark this question as resolved.

If you require further assistance, please reply to this post. Or perhaps you have another Microsoft Office question?

Have a great day.
Regards,

Mark
Microsoft Office Specialist Trainer

 

Please browse our web site to find out more about
excel training seminar and other Microsoft training courses.

Excel tip:

Using Alt in Save Dialog Box

When you are saving (or opening) a file, try these;
(Note the numbers are on the keyboard not the numeric keypad)
1. Go to previous folder Alt+1
2. Go up one folder level Alt+2
3. Search the Web Alt+3
4. Delete selected file Alt+4 or Delete
5. Create a new folder Alt+5
6. Cycle through all views Alt+6 repeatedly
7. Display the Tools menu Alt+7

View all Excel hints and tips


Microsoft Certified Partner Accredited Training Provider: Institute of IT Training Institute of Leadership and Management - Certified Courses Security Seal verified by visa, mastercard securecard