#N/A to blank

GAcuren

New Member
Joined
Aug 30, 2023
Messages
2
Office Version
  1. 365
Platform
  1. Windows
So how can I write this formula to show a blank vs. #N/A

my formula is: =IF(C49>0,LOOKUP(C49,EQUIPMENT!D$4:D$62,EQUIPMENT!C$4:C$62),"")

just don't know what to add to it to be blank until dependable cell is populated. Any help would be greatly appreciated.
 

Excel Facts

Remove leading & trailing spaces
Save as CSV to remove all leading and trailing spaces. It is faster than using TRIM().
Like this ?

Excel Formula:
=IFERROR(IF(C49>0,LOOKUP(C49,EQUIPMENT!D$4:D$62,EQUIPMENT!C$4:C$62),""),"")
 
Upvote 0
Is your formula actually doing what you are intending ?
The "Lookup" function needs the list to be sorted.

Try this:
Excel Formula:
=IF(C49>0,XLOOKUP(C49,EQUIPMENT!$D$5:$D$62,EQUIPMENT!$C$5:$C$62,""),"")
 
Upvote 0
Like this ?

Excel Formula:
=IFERROR(IF(C49>0,LOOKUP(C49,EQUIPMENT!D$4:D$62,EQUIPMENT!C$4:C$62),""),"")
Better to use the IFNA function instead of IFERROR in this case.

Why? The IFNA function only affects #N/A values.
IFERROR is a "catch-all" that will affect all errors. So it could hide/ignore errors others than #N/A that you may want/need to know about!
 
Upvote 0
Lebih baik menggunakan fungsi IFNA daripada IFERROR dalam kasus ini.

Mengapa? Fungsi IFNA hanya mempengaruhi nilai #N/A.
IFERROR adalah "catch-all" yang akan mempengaruhi semua kesalahan. Jadi itu bisa menyembunyikan/mengabaikan kesalahan selain #N/A yang mungkin ingin/perlu Anda ketahui!
Thanks for the correction @Joe4
 
Upvote 0
Thanks for the correction @Joe4
No problem.

It isn't that your formula is wrong - it will work. It just may have some unintended consequences too, since IFERROR is so broad.
IFNA zeroes in on just that error and nothing else.
 
Upvote 0

Forum statistics

Threads
1,223,243
Messages
6,170,967
Members
452,371
Latest member
Frana

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