Show zero from a formula result but not show zero where there are blanks

Arts

Well-known Member
Joined
Sep 28, 2007
Messages
775
Office Version
  1. 365
  2. 2016
Platform
  1. Windows
Hi all

I'm sure there is a simple fix for this but can't seem to find it.

I am doing a look up which works fine and this is pulling back ranking numbers.

The issue I am having that some tasks are ranked 0. (this is so they have been acknowledged and soon to be ranked so a 0 has been marked next to it)

The issue I am having is that it doesn't seem to pull back the "0" where there is a "0" value and if I turn on show zero values through the advanced setting (screen shot below) this brings back zero values for all the blanks.

1677586683359.png


Is there anyway to just show the 0 from the values below when doing the look up but not show zero for the blanks. (the below is dummy data I have a dataset with over 2,000 rows where I need to apply this)


Task 1Ranking
Audit
0​
Complaince
2​
Testing
4​
Monitoring
Attendence
3​
Systen Check
5​
Network
1​
Technology
Desks
0​
Lighting


Thanks
 
can you post a mini workbook using the xl2bb add in?

I'm currently at work and won't be able to install the xl2bb player unfortunately. I'll keep plugging away as I want to try and avoid doing this manually again soon.

I've checked the basics ie cell formatting and conditional formats, all seem fine there too...
 
Upvote 0

Excel Facts

Select all contiguous cells
Pressing Ctrl+* (asterisk) will select the "current region" - all contiguous cells in all directions.
"Task" - is the name of the spreadsheet the formula is on
Thanks. You should never use that sheet name in a formula that is on that sheet. It can lead to errors in some cases (not the problem here though)
=IFERROR(INDEX('Tasks List'!$D$10:$CZ$2296,MATCH('Task'!$C10,'Tasks List'!$C$10:$C$2296,FALSE),MATCH('Task'!D$9,'Tasks List'!$D$9:$CZ$9,FALSE)),"")

See if this is what you want.

Arts.xlsm
CDEF
9Task 1RankingAmountSize
10Audit03
11Complaince230
12Testing400
13Monitoring0
14Attendence30
15Systen Check55
16Network12
17Technology60
18Desks00
19Lighting30
Tasks List


Arts.xlsm
CDEF
9AmountSizeRanking
10Audit 30
11Complaince302
12Testing004
13Monitoring0  
14Attendence0 3
15Systen Check5 5
16Network 21
17Technology60 
18Desks 00
19Lighting30 
Task
Cell Formulas
RangeFormula
D10:F19D10=IFERROR(IF(INDEX('Tasks List'!$D$10:$CZ$2296,MATCH($C10,'Tasks List'!$C$10:$C$2296,FALSE),MATCH(D$9,'Tasks List'!$D$9:$CZ$9,FALSE))="","",INDEX('Tasks List'!$D$10:$CZ$2296,MATCH($C10,'Tasks List'!$C$10:$C$2296,FALSE),MATCH(D$9,'Tasks List'!$D$9:$CZ$9,FALSE))),"")
 
Upvote 0
Thanks. You should never use that sheet name in a formula that is on that sheet. It can lead to errors in some cases (not the problem here though)
=IFERROR(INDEX('Tasks List'!$D$10:$CZ$2296,MATCH('Task'!$C10,'Tasks List'!$C$10:$C$2296,FALSE),MATCH('Task'!D$9,'Tasks List'!$D$9:$CZ$9,FALSE)),"")

See if this is what you want.

Arts.xlsm
CDEF
9Task 1RankingAmountSize
10Audit03
11Complaince230
12Testing400
13Monitoring0
14Attendence30
15Systen Check55
16Network12
17Technology60
18Desks00
19Lighting30
Tasks List


Arts.xlsm
CDEF
9AmountSizeRanking
10Audit 30
11Complaince302
12Testing004
13Monitoring0  
14Attendence0 3
15Systen Check5 5
16Network 21
17Technology60 
18Desks 00
19Lighting30 
Task
Cell Formulas
RangeFormula
D10:F19D10=IFERROR(IF(INDEX('Tasks List'!$D$10:$CZ$2296,MATCH($C10,'Tasks List'!$C$10:$C$2296,FALSE),MATCH(D$9,'Tasks List'!$D$9:$CZ$9,FALSE))="","",INDEX('Tasks List'!$D$10:$CZ$2296,MATCH($C10,'Tasks List'!$C$10:$C$2296,FALSE),MATCH(D$9,'Tasks List'!$D$9:$CZ$9,FALSE))),"")

Thanks for this Peter will give this a whirl, I'm not due at work until the afternoon today but wanted to acknowledge your reply.
 
Upvote 0

Forum statistics

Threads
1,223,911
Messages
6,175,334
Members
452,636
Latest member
laura12345

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