Solved

Formula help please

Posted on 2011-02-16
4
239 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
Workbook link problems after copying tabs to a new workbook? David Miller (dlmille) Intro Have you either copied sheets to a new workbook, and after having saved and opened that workbook, you find that there are links back to the original sou…
This Micro Tutorial will demonstrate how to use longer labels with horizontal bar charts instead of the vertical column chart.
This Micro Tutorial will demonstrate in Microsoft Excel how to add style and sexy appeal to horizontal bar charts.

749 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