Help using an IF function in a formula that uses IFERROR & INDEX

wind0wlicker

New Member
Joined
Oct 3, 2022
Messages
2
Office Version
  1. 2010
Platform
  1. Windows
Hello, I'm fairly new to excel and was hoping I could get some help. I'm trying to add an IF statement to the following so that if a cell has 0 then it will change to a blank/empty cell/nothing shows. The 0's populate in columns A and B of another sheet that is not Sheet1 (source data), but instead called "Ent". Is this possible? Any help would be appreciated.

=IFERROR(INDEX(Sheet1!A:A,Match(E2,Sheet1!E:E,)),"")

I was thinking of something along the lines of:
=IF(A2=0,"",A2) or =IF(A:A=0,"",A:A)
 

Excel Facts

Excel Joke
Why can't spreadsheets drive cars? They crash too often!
Instead of trying to change column A from 0 to "", change in formula to get "" if column A = 0

Code:
=IFERROR(IF(INDEX(Sheet1!A:A,Match(E2,Sheet1!E:E,))=0,"",INDEX(Sheet1!A:A,Match(E2,Sheet1!E:E,))),"")
 
Upvote 0
Solution
Instead of trying to change column A from 0 to "", change in formula to get "" if column A = 0

Code:
=IFERROR(IF(INDEX(Sheet1!A:A,Match(E2,Sheet1!E:E,))=0,"",INDEX(Sheet1!A:A,Match(E2,Sheet1!E:E,))),"")
Thank you very much
 
Upvote 0

Forum statistics

Threads
1,214,902
Messages
6,122,161
Members
449,069
Latest member
msilva74

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