Why Does Formula Return "0"

meppwc

Well-known Member
Joined
May 16, 2003
Messages
607
Office Version
  1. 365
Platform
  1. Windows
I use this formula to perform a lookup of a serial number. Sometimes it returns "0".
What condition would cause this and is there a logic that can be added to this formula to statue what is truly taking place?
=IFERROR(XLOOKUP(C4,'AL LOOKUP'!B:B,'AL LOOKUP'!A:A),"NOT IN AL")
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
You could get a zero if the the value of C4 is found in col B & col A either contains a zero, or is blank.
Try
Excel Formula:
=let(x,XLOOKUP(C4,'AL LOOKUP'!B:B,'AL LOOKUP'!A:A,"NOT IN AL"),if(x="","no data",x))
 
Upvote 0
That helps............I have discovered that all of the times where "0" is returned, column A is blank. Is there an update that you can suggest to this formula when A is blank, it returns "STATUS UNKNOWN"?
 
Upvote 0
Just change no data in the formula I posted to read "STATUS UNKNOWN"
 
Upvote 0
I should have figured that one out on my own. But I am very grateful for your assistance.
 
Upvote 0
You're welcome & thanks for the feedback.
 
Upvote 0

Forum statistics

Threads
1,216,577
Messages
6,131,511
Members
449,653
Latest member
andz

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top