Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 11-30-2018, 10:37 AM
allex011 allex011 is offline Formula returning zero Windows 7 32bit Formula returning zero Office 2007
Advanced Beginner
Formula returning zero
 
Join Date: Dec 2017
Posts: 39
allex011 is on a distinguished road
Default Formula returning zero


Could someone help me, I have hlookup formula returning value 0 if in sheet years in no value.
Thank in advanced
Attached Files
File Type: xlsx Example.xlsx (10.1 KB, 11 views)
Reply With Quote
  #2  
Old 11-30-2018, 11:06 AM
Pecoflyer's Avatar
Pecoflyer Pecoflyer is offline Formula returning zero Windows 7 64bit Formula returning zero Office 2010 64bit
Expert
 
Join Date: Nov 2011
Location: Brussels Belgium
Posts: 2,779
Pecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant futurePecoflyer has a brilliant future
Default

Your formula does not return an error when the cell is empty, it is the same as 0
Perhaps like this ?

=IFERROR(IF((HLOOKUP(A2,years!A$1:F$5,2,0))=0,"",H LOOKUP(A2,years!A$1:F$5,2;0)),"")


( the space between H and LOOKUP is added by the board. Disregard it)
__________________
Did you know you can thank someone who helped you? Click on the tiny scale in the right upper hand corner of your helper's post
Reply With Quote
  #3  
Old 12-03-2018, 02:30 AM
Debaser's Avatar
Debaser Debaser is offline Formula returning zero Windows 7 64bit Formula returning zero Office 2010 32bit
Competent Performer
 
Join Date: Oct 2015
Location: UK
Posts: 221
Debaser will become famous soon enough
Default

Since your return values are text, you can also use:

=IFERROR(HLOOKUP(A3,years!A$1:F$5,2,0)&"","")
Reply With Quote
Reply



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hard Returning Phil H Excel 2 05-15-2018 03:29 AM
Hyperlink formula returning 'invalid site address' MarkH Excel 0 12-26-2015 10:43 AM
Formula returning zero Returning a whole row kevskisa Excel 2 07-28-2015 03:19 AM
Formula returning zero COUNTIFS returning Value Error ubns Excel 1 04-16-2015 02:00 PM
Returning Next Record to the top bordercollie10 Mail Merge 0 02-26-2009 09:06 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 03:51 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft