Index Match Function with blank cell

SAXON10

Board Regular
Joined
Jun 1, 2017
Messages
109
Greeting,


I am apply the following formula, the formula return blank cells as a number instead of returning as blank. Is there a way to fix this, so that it returns just a blank value?

[TABLE="width: 70"]
<tbody>[TR]
[TD="class: xl64, width: 70"]=IF(INDEX(DATA!$D$3:$D$25,MATCH(1,INDEX((DATA!$C$3:$C$25=$B3)*(MID(DATA!$B$3:$B$23,1,2)=MID($A3,2,2))*(DATA!$A$3:$A$25=C$2),0),0))="OK","OK",INDEX(DATA!$B$3:$B$25,MATCH(1,INDEX((DATA!$C$3:$C$25=$B3)*(MID(DATA!$B$3:$B$23,1,2)=MID($A3,2,2))*(DATA!$A$3:$A$25=C$2),0),0)))[/TD]
[/TR]
</tbody>[/TABLE]

https://www.dropbox.com/s/ef9kaipp0ucryyt/BLANKS.XLSX?dl=0

https://www.dropbox.com/s/snmjfvoxc3o9thb/MEE.PNG?dl=0

https://www.dropbox.com/s/auays7a10mb5j1c/MEEE.PNG?dl=0
 
Last edited:

Excel Facts

Pivot Table Drill Down
Double-click any number in a pivot table to create a new report showing all detail rows that make up that number
Maybe...

Formula in C3 of RESULT sheet, copied across and down
=IF(COUNTIFS(DATA!$C$3:$C$25,$B3,DATA!$A$3:$A$25,C$2,DATA!$D$3:$D$25,"OK"),"OK",IF(COUNTIFS(DATA!$C$3:$C$25,$B3,DATA!$A$3:$A$25,C$2,DATA!$D$3:$D$25,""),"",INDEX(DATA!$B$3:$B$25,MATCH(1,INDEX((DATA!$C$3:$C$25=$B3)*(DATA!$A$3:$A$25=C$2),0),0))))

Hope this helps

M.
 
Upvote 0
Maybe...

Formula in C3 of RESULT sheet, copied across and down
=IF(COUNTIFS(DATA!$C$3:$C$25,$B3,DATA!$A$3:$A$25,C$2,DATA!$D$3:$D$25,"OK"),"OK",IF(COUNTIFS(DATA!$C$3:$C$25,$B3,DATA!$A$3:$A$25,C$2,DATA!$D$3:$D$25,""),"",INDEX(DATA!$B$3:$B$25,MATCH(1,INDEX((DATA!$C$3:$C$25=$B3)*(DATA!$A$3:$A$25=C$2),0),0))))

Hope this helps

M.


Thank for your help and formula working fine.

How to add and match the additional range the same formula

In data sheet Column B first two character "88" and its matched to "desired result sheet" in column A second two character

Please refer my previous formula mid function ((MID(DATA!$B$3:$B$23,1,2)=MID($A3,2,2))).

Please advice me.
 
Last edited:
Upvote 0
You can add this condition in the COUNTIFS
DATA!$B$3:$B$25,MID($A3,2,2)&"*"

M.
 
Last edited:
Upvote 0
C3 copied across and down

=IF(COUNTIFS(DATA!$B$3:$B$25,MID($A3,2,2)&"*",DATA!$C$3:$C$25,$B3,DATA!$A$3:$A$25,C$2,DATA!$D$3:$D$25,"OK"),"OK",IF(COUNTIFS(DATA!$B$3:$B$25,MID($A3,2,2)&"*",DATA!$C$3:$C$25,$B3,DATA!$A$3:$A$25,C$2,DATA!$D$3:$D$25,""),"",INDEX(DATA!$B$3:$B$25,MATCH(1,INDEX((DATA!$C$3:$C$25=$B3)*(DATA!$A$3:$A$25=C$2),0),0))))

M.
 
Upvote 0

Forum statistics

Threads
1,223,264
Messages
6,171,081
Members
452,377
Latest member
bradfordsam

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