Help with a combined INDEX() and MATCH() formula

TheRiddler

New Member
Joined
Jul 31, 2011
Messages
23
Hello guys,

Last night I've run across an error with a formula in my table :mad:

Let me put the table:

cqiwork.jpg


Now let me explain a little bit:
- ColumnI and ColumnJ in some cases they have no value! (like J5, J10 or J13 in my table)
- Usually these 2 columns have the following 3 possible values: blank (or none), 0 and >0 (above 0)

I've tried to use the following formula to extract the data from one column (exemple ColumnJ) on another sheet:

=INDEX(J2:J15,MATCH("Agent 4",E2:E15,0),1)

Instead of returning a blank value, I get in the cell the value 0! :(

If I use the IFERROR() around the formula itself:

=IFERROR(INDEX(J2:J15,MATCH("Agent 4",E2:E15,0),1), "N/A")

Instead of returning the "N/A" value in the cell that I'm calling this formula I still get the value 0! :eeek:

Basically what I want is the following:
- return value "N/A" if the cell match in ColumnJ is blank
- return value of the cell (doesn't matter if it is 0 or above 0 - like 100)

Any ideas on to work this out ?

Regards,
Riddler
 
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
This should work:

=IF(INDEX(J2:J15,MATCH("Agent 4",E2:E15,0),1)="","N/A",INDEX(J2:J15,MATCH("Agent 4",E2:E15,0),1))
 
Upvote 0

Forum statistics

Threads
1,224,609
Messages
6,179,877
Members
452,949
Latest member
Dupuhini

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