ISNA with Index,Match formula - need to add on

n8dine

New Member
Joined
Apr 15, 2011
Messages
11
I have the following formula and need to add to it:

=IF(A2="","",IF(ISNA(IF(BA2="1. Phase","Project",INDEX(Sheet1!O:O,MATCH(TEXT(D2,"00000")&'2-Details'!BZ2,Sheet1!D:D,0)))),0,IF(BA2="1. Phase","Project",INDEX(Sheet1!O:O,MATCH(TEXT(D2,"00000")&'2-Details'!BZ2,Sheet1!D:D,0)))))

After the first test where if A2="","", I need to specify that if G2=Lists H1 or H2 then return Project, otherwise continue with above.

Any ideas for writing this in Excel 2003 would be greatly appreciated.

Nadine
 

Excel Facts

Copy formula down without changing references
If you have =SUM(F2:F49) in F50; type Alt+' in F51 to copy =SUM(F2:F49) to F51, leaving the formula in edit mode. Change SUM to COUNT.
I have the following formula and need to add to it:

=IF(A2="","",IF(ISNA(IF(BA2="1. Phase","Project",INDEX(Sheet1!O:O,MATCH(TEXT(D2,"00000")&'2-Details'!BZ2,Sheet1!D:D,0)))),0,IF(BA2="1. Phase","Project",INDEX(Sheet1!O:O,MATCH(TEXT(D2,"00000")&'2-Details'!BZ2,Sheet1!D:D,0)))))

After the first test where if A2="","", I need to specify that if G2=Lists H1 or H2 then return Project, otherwise continue with above.

Any ideas for writing this in Excel 2003 would be greatly appreciated.

Nadine
Hmmm...

Why is this expression inside the ISNA function:

IF(BA2="1. Phase","Project"

If there's a #N/A error it will come from the MATCH fucntion.

What is the data type of the result of the INDEX/MATCH? Is it a TEXT value?
 
Upvote 0
The Index, Match result is a text value if there is a match.
Off the top of my head...

=IF(A2="","",IF(OR(G2=Lists!H1,G2=Lists!H2,BA2="1. Phase"),"Project",LOOKUP("zzzzz",CHOOSE({1,2},"",INDEX(Sheet1!O:O,MATCH(TEXT(D2,"00000")&'2-Details'!BZ2,Sheet1!D:D,0))))))
 
Upvote 0
Thank you for trying. Unfortunately, the formula is not working where it looks to Lists H1 or H2. When I manually look up the value in G I find it on the Lists worksheet but the formula is returning #N/A. I also get #N/A in those instances where there is no match to Sheet1.
 
Upvote 0
Thank you for trying. Unfortunately, the formula is not working where it looks to Lists H1 or H2. When I manually look up the value in G I find it on the Lists worksheet but the formula is returning #N/A. I also get #N/A in those instances where there is no match to Sheet1.
If you're getting #N/A errors there must be #N/A errors in some of the cells being referenced.

I have no idea what's in any of your cells but in my test file I the formula works (no #N/A errors).
 
Upvote 0
The problem with some of the #N/A's are that I can manually find the matches that the formula cannot find. I guess I'm just out of luck with adjusting the formula since it doesn't work with my data. Thanks for trying, though. I truly appreciate the effort.
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,286
Members
452,902
Latest member
Knuddeluff

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