Adding IFERROR into nested IF statement

janema

Board Regular
Joined
Nov 28, 2022
Messages
117
Office Version
  1. 365
  2. 2021
  3. 2019
  4. 2011
  5. 2010
Platform
  1. Windows
  2. Mobile
I'm trying to add an IFERROR into this formula, but no matter where I put it, it keeps giving me an error. I am just trying to remove the "#N/A" to be blank if it's an error or be blank if it's blank.

1673475876346.png


Current formula:

=IF(XLOOKUP(B7,'Comp Changes'!A:A,'Comp Changes'!H:H)="","",XLOOKUP(B7,'Comp Changes'!A:A,'Comp Changes'!H:H))
 

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Try

Excel Formula:
=IFERROR(IF(XLOOKUP(B7,'Comp Changes'!A:A,'Comp Changes'!H:H,"",0,1)="","",XLOOKUP(B7,'Comp Changes'!A:A,'Comp Changes'!H:H,"",0,1)),"")
 
Upvote 0
Try

Excel Formula:
=IFERROR(IF(XLOOKUP(B7,'Comp Changes'!A:A,'Comp Changes'!H:H,"",0,1)="","",XLOOKUP(B7,'Comp Changes'!A:A,'Comp Changes'!H:H,"",0,1)),"")

That almost worked, but it blanked out cells that should not be blank so it did something more than it should have. :(
 
Upvote 0
Try

Excel Formula:
=IFERROR(IF(XLOOKUP(B7,'Comp Changes'!A:A,'Comp Changes'!H:H)="","",XLOOKUP(B7,'Comp Changes'!A:A,'Comp Changes'!H:H)),"")
 
Upvote 0
Solution
Try

Excel Formula:
=IFERROR(IF(XLOOKUP(B7,'Comp Changes'!A:A,'Comp Changes'!H:H)="","",XLOOKUP(B7,'Comp Changes'!A:A,'Comp Changes'!H:H)),"")

Thank you so much. That worked!
 
Upvote 0

Forum statistics

Threads
1,215,350
Messages
6,124,430
Members
449,158
Latest member
burk0007

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