#N/A

300m

New Member
Joined
Sep 11, 2011
Messages
23
=IF(LOOKUP(SMALL(Result!$I$2:$I$552,ROW()1),Result!$I$2:$I$552,Result!$B$2:$B$552)=A$1,LOOKUP(SMALL(Result!$I$2:$I$552,ROW()1),Result!$I$2:$I$552,Result!$D$2:$D$552),LOOKUP(SMALL(Result!$I$2:$I$552,ROW()1),Result!$I$2:$I$552,Result!$E$2:$E$552))

Hi,

I am having trouble with this formula. I get a #N/A error. Is there something wrong with above formula? I tried many variations but I keep getting error values.

Any help much appreciated.
 
=IFERROR(IF(OR(B:B=I$1,C:C=I$1),DATEDIF(A:A,TODAY(),"D"),9999),999)

Entered in cell "I2".
 
Upvote 0

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.
I meant the LOOKUP formula.

By the way, why do you need those two constants: 9999 and 999?

Sorry. Ok I enter that formula in another sheet in cell A2. Looks like below. Sorry I don't know about those constants, but formula works real good.

=IF(LOOKUP(SMALL(Result!$I:$I,ROW()-1),Result!$I:$I,Result!$B:$B)=A$1,LOOKUP(SMALL(Result!$I:$I,ROW()-1),Result!$I:$I,Result!$F:$F),LOOKUP(SMALL(Result!$I:$I,ROW()-1),Result!$I:$I,Result!$G:$G))

Is there no way I can get away from the sorting of column "I"?. I cannot enter results when the workbook is so messed up:(
 
Upvote 0
Sorry. Ok I enter that formula in another sheet in cell A2. Looks like below. Sorry I don't know about those constants, but formula works real good.

I would think that

I2, copied down:

=IFERROR(IF(OR(B:B=I$1,C:C=I$1),DATEDIF(A:A,TODAY(),"D"),""),"")

=IFERROR(IF(OR(B2=I$1,C2=I$1),DATEDIF(A2,TODAY(),"D"),""),"")

would also work.

=IF(LOOKUP(SMALL(Result!$I:$I,ROW()-1),Result!$I:$I,Result!$B:$B)=A$1,LOOKUP(SMALL(Result!$I:$I,ROW()-1),Result!$I:$I,Result!$F:$F),LOOKUP(SMALL(Result!$I:$I,ROW()-1),Result!$I:$I,Result!$G:$G))

Is there no way I can get away from the sorting of column "I"?. I cannot enter results when the workbook is so messed up:(

In A2 enter and copy down:

=IFERROR(IF(INDEX(Result!$B:$B,MATCH(SMALL(Result!$I:$I,ROWS($A$2:A2))=A$1,INDEX(Result!$F:$F,MATCH(SMALL(Result!$I:$I,ROWS($A$2:A2)),INDEX(Result!$G:$G,MATCH(SMALL(Result!$I:$I,ROWS($A$2:A2)),"")

which is meant to implement (although not sure about the intended working)

=IF(LOOKUP(SMALL(Result!$I:$I,ROW()-1),Result!$I:$I,Result!$B:$B)=A$1,LOOKUP(SMALL(Result!$I:$I,ROW()-1),Result!$I:$I,Result!$F:$F),LOOKUP(SMALL(Result!$I:$I,ROW()-1),Result!$I:$I,Result!$G:$G))

for unsorted match-reference.

Hope this helps.
 
Upvote 0
Aladin,:)

The second formula you gave me below is giving me an error? Are there maybe parentheses missing? There is also a space between R and O in ROWS, should I remove that space?

In A2 enter and copy down:

=IFERROR(IF(INDEX(Result!$B:$B,MATCH(SMALL(Result!$I:$I,ROWS($A$2:A2))=A$1,INDEX(Result!$F:$F,MATCH(SMALL(Result!$I:$I,R OWS($A$2:A2)),INDEX(Result!$G:$G,MATCH(SMALL(Result!$I:$I,ROWS($A$2:A2)),"")
 
Upvote 0
Aladin,:)

The second formula you gave me below is giving me an error? Are there maybe parentheses missing? There is also a space between R and O in ROWS, should I remove that space?

In A2 enter and copy down:

=IFERROR(IF(INDEX(Result!$B:$B,MATCH(SMALL(Result!$I:$I,ROWS($A$2:A2))=A$1,INDEX(Result!$F:$F,MATCH(SMALL(Result!$I:$I,R OWS($A$2:A2)),INDEX(Result!$G:$G,MATCH(SMALL(Result!$I:$I,ROWS($A$2:A2)),"")

There should be no space. The Match bits are also incomplete.
Rich (BB code):
=IFERROR(IF(INDEX(Result!$B:$B,MATCH(SMALL(Result!$I:$I,ROWS($A$2:A2)),Result!$I:$I,0))=A$1,
     INDEX(Result!$B:$B,MATCH(SMALL(Result!$I:$I,ROWS($A$2:A2)),Result!$I:$I,0)),
     INDEX(Result!$G:$G,MATCH(SMALL(Result!$I:$I,ROWS($A$2:A2)),Result!$I:$I,0))),"")
 
Upvote 0
Aladin,

Your formulas perform exactly as I wanted, really nice. :)
Thank you so much for your time and effort!

HTML:
I would think that

I2, copied down:

=IFERROR(IF(OR(B:B=I$1,C:C=I$1),DATEDIF(A:A,TODAY(),"D"),""),"")

=IFERROR(IF(OR(B2=I$1,C2=I$1),DATEDIF(A2,TODAY(),"D"),""),"")

would also work.

The above 2 formulas both works. Which one do I choose, does it matter, is one better than the other?
Thank you so much! You saved me a lot of headache.
 
Upvote 0
Aladin,

Your formulas perform exactly as I wanted, really nice. :)
Thank you so much for your time and effort!

That's great. Thanks for providing feedback.

HTML:
I would think that
 
I2, copied down:
 
=IFERROR(IF(OR(B:B=I$1,C:C=I$1),DATEDIF(A:A,TODAY(),"D"),""),"")
 
=IFERROR(IF(OR(B2=I$1,C2=I$1),DATEDIF(A2,TODAY(),"D"),""),"")
 
would also work.

The above 2 formulas both works. Which one do I choose, does it matter, is one better than the other?
Thank you so much! You saved me a lot of headache.

I'd opt myself for the latter for it shows per record what is addressed.
 
Upvote 0

Forum statistics

Threads
1,224,609
Messages
6,179,874
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