#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.
 

Excel Facts

Waterfall charts in Excel?
Office 365 customers have access to Waterfall charts since late 2016. They were added to Excel 2019.
Care to explain in words what this formula is intended to do?

I should have explained more but wanted first to know if there is a visible error with the formula. I had this working in another spreadsheet program and now trying to get it to function in Excel. I didn't make the formula myself, I got help.

It is intended to collect and sum two teams' goals count for each of the five most recent games played.
 
Upvote 0
What are you referring to with:

ROW()1

Jim, Sorry I can't really answer this. But maybe I should add that there is one help column for this that has the below formula:

=IFERROR(IF(OR(B:B=I$1,C:C=I$1),DATEDIF(A:A,TODAY(),"D"),9999),999)
 
Upvote 0
I should have explained more but wanted first to know if there is a visible error with the formula. I had this working in another spreadsheet program and now trying to get it to function in Excel. I didn't make the formula myself, I got help.

It is intended to collect and sum two teams' goals count for each of the five most recent games played.

Jim posted ROW()1 which looks like a typo...

Is Result!$I$2:$I$552 sorted in ascending order? LOOKUP would require that...

Care to post the formula directly as is from its source?
 
Upvote 0
Jim posted ROW()1 which looks like a typo...

Is Result!$I$2:$I$552 sorted in ascending order? LOOKUP would require that...

Care to post the formula directly as is from its source?

No, the "I" column is not sorted in ascending order. I try it now and it really messes up my sheet but the #N/A error disapears:). Instead insane number value.

The original formula was for mac and iWorks Numbers and it looked like this. It worked perfectly in Numbers, but Numbers is so slow, so I wanted to give it a go in Excel. Can I not use ROW() like this in Excel?

=IF(LOOKUP(SMALL(Main :: $F,ROW()-1),Main :: $F,Main :: $B)=A$1,LOOKUP(SMALL(Main :: $F,ROW()-1),Main :: $F,Main :: $D),LOOKUP(SMALL(Main :: $F,ROW()-1),Main :: $F,Main :: $E))

Thanks for helping me!
 
Upvote 0
No, the "I" column is not sorted in ascending order. I try it now and it really messes up my sheet but the #N/A error disapears:). Instead insane number value.

The original formula was for mac and iWorks Numbers and it looked like this. It worked perfectly in Numbers, but Numbers is so slow, so I wanted to give it a go in Excel. Can I not use ROW() like this in Excel?

=IF(LOOKUP(SMALL(Main :: $F,ROW()-1),Main :: $F,Main :: $B)=A$1,LOOKUP(SMALL(Main :: $F,ROW()-1),Main :: $F,Main :: $D),LOOKUP(SMALL(Main :: $F,ROW()-1),Main :: $F,Main :: $E))

Thanks for helping me!

I for one am unfamiliar with this syntax...

ROW() and ROW()-1 are admissible in Excel.

If the current row is 1, you'd get {0} with ROW()-1.
 
Upvote 0
Aladin,

After sorting "I" column in ascending order I now get the correct result :). Thank you!:)
Only problem now it really messes up the workbook. Column "I" is even hidden.

Anyway, thank you for solving this.
 
Upvote 0
Aladin,

After sorting "I" column in ascending order I now get the correct result :). Thank you!:)
Only problem now it really messes up the workbook. Column "I" is even hidden.

Anyway, thank you for solving this.

That's great. Would you post the formula as you have it in Excel and in which cell you enter the first instance of it?
 
Upvote 0

Forum statistics

Threads
1,224,606
Messages
6,179,866
Members
452,948
Latest member
UsmanAli786

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