Solved

Formula help please

Posted on 2011-02-16
4
238 Views
Last Modified: 2012-06-27
In the below formula:

=IF(I16<$N$10,M16,0)

I16 is a date field and N10 is a date field.  

How can I adjust the formula so that if I16 is null, a zero is also returned.  Right now it returns the value of M16 when null.    Thanks
0
Comment
Question by:snyperj
4 Comments
 
LVL 58

Accepted Solution

by:
cyberkiwi earned 500 total points
ID: 34910152
=IF(IF(""=I16&"",$N$10,I16)<$N$10,M16,0)
0
 
LVL 50

Expert Comment

by:barry houdini
ID: 34910731
Use an AND to test for both conditions, I16 < N10 and I16 isn't blank

=IF(AND(I16<>"",I16<$N$10),M16,0)

regards, barry
0
 
LVL 8

Expert Comment

by:ragnarok89
ID: 34910757
=if(isnull(I16),0,IF(I16<$N$10,M16,0))

or

=if(I16="",0,IF(I16<$N$10,M16,0))
0
 

Author Closing Comment

by:snyperj
ID: 34910798
this one was first and worked for me- so thanks!
0

Featured Post

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction This Article is a follow-up to my Mappit! Addin Article (http://www.experts-exchange.com/A_2613.html), it was inspired by an email posting I made to EUSPRIG (http://www.eusprig.org/index.htm), I will briefly cover: 1) An overvie…
Improved? Move/Copy Add-in Replacement - How to avoid the annoying, “A formula or sheet you want to move or copy contains the name XXX, which already exists on the destination worksheet.” David Miller (dlmille)  It was one of those days… I wa…
This Micro Tutorial will demonstrate the scrolling table in Microsoft Excel using the INDEX function.
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question