Return specific text if the cell is empty

lunatu

Board Regular
Joined
Feb 5, 2021
Messages
77
Office Version
  1. 2010
Platform
  1. Windows
  2. Web
Hi,

Im using formula below when I want to update text from Sheet2 to cell in Sheet1. The formula is working as should BUT if the cell VLOOKUP is looking is empty in Sheet2 the formula returns value 0 and I would like it to return text "Done" instead of value 0. Any ideas how to fix the formula?

=IF(AND(H8="SalesPerson1";J8="Done");VLOOKUP(B8;'Sheet2'!$E$3:$Q$1000;13;FALSE))

I tried to add IFERROR but that did not work.

=IFERROR(IF(AND(H8="SalesPerson1";J8="Done");VLOOKUP(B8;'Sheet2'!$E$3:$Q$1000;13;FALSE));"Done")
 

Excel Facts

Can you sort left to right?
To sort left-to-right, use the Sort dialog box. Click Options. Choose "Sort left to right"
Try this

=IF(AND(H8="SalesPerson1";J8="Done");IF(VLOOKUP(B8;'Sheet2'!$E$3:$Q$1000;13;FALSE)="";"Done";VLOOKUP(B8;'Sheet2'!$E$3:$Q$1000;13;FALSE)))
 
Upvote 0
Solution
Sorry. Because I met a friend
You can start a personal conversation (using the Conversation functionality) for that sort of thing.
That will take it off-line, and it will be private, just between the two of you.
We really do not want to jumble up other people's questions with personal conversations on the public fourms.
 
Upvote 0
Try this

=IF(AND(H8="SalesPerson1";J8="Done");IF(VLOOKUP(B8;'Sheet2'!$E$3:$Q$1000;13;FALSE)="";"Done";VLOOKUP(B8;'Sheet2'!$E$3:$Q$1000;13;FALSE)))
This is working perfectly, thanks! :)
 
Upvote 0

Forum statistics

Threads
1,214,813
Messages
6,121,706
Members
449,049
Latest member
THMarana

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