How do I handle an IFERROR that returns blank instead of an error?

Matt_has_questions

New Member
Joined
Oct 14, 2020
Messages
1
Office Version
  1. 365
Hi all,

Thanks in advance for your help. My formula is below, I've staggered it to show the nesting a bit more clearly. The final Vlookup is not being triggered because my formula is returning blank

Excel Formula:
=IFERROR(
    IF(V2="","",IFERROR(
    TEXTJOIN(", ",1,VLOOKUP(V2,Props!A:Z,$AH$3,FALSE),VLOOKUP(V2,Props!A:Z,$AH$4,FALSE),VLOOKUP(V2,Props!A:Z,$AH$5,FALSE),VLOOKUP(V2,Props!A:Z,$AH$6,FALSE),VLOOKUP(V2,Props!A:Z,$AH$7,FALSE)),
    VLOOKUP(V2,'Props_all (Opt)'!A:B,$AH$17,FALSE))),"")

Is there an equivalent of IFBLANK, or anyway to make a normal IF statement return the output of the comparison if it's not blank? I suppose having a way to make the TEXTJOIN return an error would also work.

The layout of my sheets are that I have one called Props that contains detailed property addresses, but can miss entries. Then Props_all which doesn't miss any, but only has partial addresses. So I want to lookup the property on Props, and if nothing is returned then fall back to Props_all.

Thanks,
Matt
 
Last edited by a moderator:

Excel Facts

Back into an answer in Excel
Use Data, What-If Analysis, Goal Seek to find the correct input cell value to reach a desired result
Hi & welcome to MrExcel.
What are the values in AH3 to AH7?
 
Upvote 0
If AH3 to AH7 are consecutive numbers, you could use
Excel Formula:
=IFERROR(TEXTJOIN(", ",1,FILTER(FILTER(Props!A:Z,Props!A:A=V2),(COLUMN(Props!A:Z)>=$AH$3)*(COLUMN(Props!A:Z)<=$AH$7))),VLOOKUP(V2,'Props_all (Opt)'!A:B,$AH$17,FALSE))

Although I would advise against using whole column references, as it can slow down the workbook.
 
Upvote 0

Forum statistics

Threads
1,224,823
Messages
6,181,178
Members
453,021
Latest member
Justyna P

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