Question about Business & Productivity Software
The problem doesn't say this explicitly, but it looks like you're using Excel. This answer depends on that assumption being correct.
Are you saying that some of your inputs are blank? And LOOKUP fails to map them to 0? Or are you saying that some of your values come back from LOOKUP as blanks? (They shouldn't; lookup should return either a value from the lookup table or an error.) Or is it the case that some input values get mapped to blank by your LOOKUP function?
Assuming that you're getting blanks back from LOOKUP where you wanted zeros -- for whatever reason -- here is something you can try.
It looks like the value you're looking up is in cell A3. Let's say your formula (the result of the LOOKUP) is in B3. In C3, you can put the formula =IF(ISBLANK(A3), 0, A3). This function tests if A3 is blank. If it is, it returns a 0. If it's not, you get A3 again. (But A3 has to really be blank -- spaces will count as non-blank.)
Then, you can copy data out of column C instead of column B, and it should have zeros in place of blanks.
Posted on Jan 06, 2008
Tips for a great answer:
Jan 01, 2016 | Microsoft Excel Business & Productivity...
Sep 07, 2014 | Microsoft Excel for PC
Jun 07, 2010 | Primavera SureTrak Project Manager 3.0 for...
Mar 24, 2009 | Microsoft Excel for PC
Aug 30, 2008 | Microsoft Excel for PC
Aug 08, 2008 | Microsoft Business & Productivity Software
Apr 29, 2008 | Microsoft Excel for PC
Dec 19, 2007 | Business & Productivity Software
Sep 11, 2007 | Microsoft Office Standard for PC
Aug 20, 2007 | Microsoft Office Standard for PC
Oct 21, 2016 | The Business & Productivity Software
91 people viewed this question
Usually answered in minutes!