How to make INDEX and MATCH formula return blank instead of 0

Sean15

Well-known Member
Joined
Jun 25, 2005
Messages
700
Office Version
  1. 2010
Platform
  1. Windows
Hi:
The formula =INDEX(WhoDoesIt,MATCH(A2,MainAccount,0)) returns 0 when there is a blank cell in the INDEX range. How can I adapt formula so Excel return blank instead of 0
Thanks for your help.

Regards
Sean
 

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
Are the returned values text, or numbers?
 
Upvote 0
Hi:
Returned values are text but there are several cells in the INDEX range that are blank.

Regards
 
Upvote 0
First Select all the Index Range and Ctrl+Find
Find
Replace With '.
In this way Blank Cell will be converted into Text "" and it will not result in "Zero".

This is a option
Or can use If (Index Formula=0,"",Indexformula)
 
Upvote 0
In that case try
=Iferror(T(INDEX(WhoDoesIt,MATCH(A2,MainAccount,0))),"")
 
Upvote 0
First Select all the Index Range and Ctrl+Find
Find
Replace With '.
In this way Blank Cell will be converted into Text "" and it will not result in "Zero".
IMO this is a very bad idea, because the cells are no longer blank & that could cause all sorts of problems.
 
Upvote 0
In that case try
=Iferror(T(INDEX(WhoDoesIt,MATCH(A2,MainAccount,0))),"")

That works. Thanks so much.
What is the purpose of the T in your formula?

Regards,
 
Upvote 0
It checks if a value is text, if it is, it returns the text otherwise it returns a null string "", which will then return an error.
 
Upvote 0
So if there are Number and Text both in the returned value you can use Index(..........)&""
It will convert Number into Text,. Blank into null string, and Text will remain as Text.

However I have a query is there any way through which you can convert the Number which is converted to text because of using &"" back into Number. And also not returning value error when text is returned while using Index function.

@Fluff
 
Upvote 0

Forum statistics

Threads
1,216,757
Messages
6,132,538
Members
449,735
Latest member
Gary_M

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