IFERROR, VLOOKUP and another IF statement HELP!!

Dimsum06

New Member
Joined
Jul 29, 2022
Messages
11
Office Version
  1. 365
Platform
  1. Windows
Is there a way to add another criteria to this current formula? I want to add if this range/column has a certain word, in my case OUTSTANDING, to return BLANK"".
Current Formula: IFERROR(VLOOKUP(B9,'REPORT!A:C,3,FALSE),"")

Thank you!!!
 

Excel Facts

Ambidextrous Undo
Undo last command with Ctrl+Z or Alt+Backspace. If you use the Undo icon in the QAT, open the drop-down arrow to undo up to 100 steps.
Which range/column? Do you mean "if the result of the VLOOKUP function is "OUTSTANDING" then return "" instead? If so, use:

=IF(ISERROR(VLOOKUP(B9,REPORT!A:C,3,0)),"",IF(VLOOKUP(B9,REPORT!A:C,3,0)="OUTSTANDING","",VLOOKUP(B9,REPORT!A:C,3,0)))
 
Upvote 0
Which range/column? Do you mean "if the result of the VLOOKUP function is "OUTSTANDING" then return "" instead? If so, use:

=IF(ISERROR(VLOOKUP(B9,REPORT!A:C,3,0)),"",IF(VLOOKUP(B9,REPORT!A:C,3,0)="OUTSTANDING","",VLOOKUP(B9,REPORT!A:C,3,0)))
This is exactly what I needed. Thank you thank you thank you!!!!
 
Upvote 0
Does just doing the lookup once like this also work?

Excel Formula:
=SUBSTITUTE(IFNA(VLOOKUP(B9,REPORT!A:C,3,0),""),"OUTSTANDING","")

If not, try
Excel Formula:
=SUBSTITUTE(IFERROR(VLOOKUP(B9,REPORT!A:C,3,0),""),"OUTSTANDING","")
 
  • Like
Reactions: jxb
Upvote 0
Does just doing the lookup once like this also work?

Excel Formula:
=SUBSTITUTE(IFNA(VLOOKUP(B9,REPORT!A:C,3,0),""),"OUTSTANDING","")

If not, try
Excel Formula:
=SUBSTITUTE(IFERROR(VLOOKUP(B9,REPORT!A:C,3,0),""),"OUTSTANDING","")
I will try and let you know!
 
Upvote 0
Does just doing the lookup once like this also work?

Excel Formula:
=SUBSTITUTE(IFNA(VLOOKUP(B9,REPORT!A:C,3,0),""),"OUTSTANDING","")

If not, try
Excel Formula:
=SUBSTITUTE(IFERROR(VLOOKUP(B9,REPORT!A:C,3,0),""),"OUTSTANDING","")
try and let you know!
Tried both and it did not work. But it's ok the other user assisted! Thanks for trying!
 
Upvote 0
Tried both and it did not work.
I'm interested in what way it (especially the second one) did not work? Here are four circumstances that I can think of and post 2 formula in column C (in second mini-sheet below) and my second formula in column D are returning the same results. What have I missed?

Dimsum06.xlsm
ABC
1a#DIV/0!
2cOUTSTANDING
3dxx
REPORT


Dimsum06.xlsm
BCDE
9a  Lookup finds a value but it is an error value
10b  Lookup cannot find the lookup value (b) so an error is returned
11c  Look result is OUTSTANDING
12dxxxxLookup finds a non-OUTSTANDING value
Sheet1
Cell Formulas
RangeFormula
C9:C12C9=IF(ISERROR(VLOOKUP(B9,REPORT!A:C,3,0)),"",IF(VLOOKUP(B9,REPORT!A:C,3,0)="OUTSTANDING","",VLOOKUP(B9,REPORT!A:C,3,0)))
D9:D12D9=SUBSTITUTE(IFERROR(VLOOKUP(B9,REPORT!A:C,3,0),""),"OUTSTANDING","")
 
Upvote 0
I'm interested in what way it (especially the second one) did not work? Here are four circumstances that I can think of and post 2 formula in column C (in second mini-sheet below) and my second formula in column D are returning the same results. What have I missed?

Dimsum06.xlsm
ABC
1a#DIV/0!
2cOUTSTANDING
3dxx
REPORT


Dimsum06.xlsm
BCDE
9a  Lookup finds a value but it is an error value
10b  Lookup cannot find the lookup value (b) so an error is returned
11c  Look result is OUTSTANDING
12dxxxxLookup finds a non-OUTSTANDING value
Sheet1
Cell Formulas
RangeFormula
C9:C12C9=IF(ISERROR(VLOOKUP(B9,REPORT!A:C,3,0)),"",IF(VLOOKUP(B9,REPORT!A:C,3,0)="OUTSTANDING","",VLOOKUP(B9,REPORT!A:C,3,0)))
D9:D12D9=SUBSTITUTE(IFERROR(VLOOKUP(B9,REPORT!A:C,3,0),""),"OUTSTANDING","")
2nd formula was still returning OUTSTANDING when I'd like it to return "".
 
Upvote 0
2nd formula was still returning OUTSTANDING when I'd like it to return "".
That is not happening with the sample above and I cannot see how it is possible since the formula contains SUBSTITUTE(...,"OUTSTANDING","") ...
... unless your "OUTSTANDING" is not all upper case like is written in each case above?

Excel Formula:
=LET(v,IFERROR(VLOOKUP(B9,REPORT!A:C,3,0),""),IF(v="OUTSTANDING","",v))
 
Upvote 0

Forum statistics

Threads
1,215,465
Messages
6,124,973
Members
449,200
Latest member
Jamil ahmed

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