Formula using OFFSET and LOOKUP in an array not calculating correctly.

Johnpow

New Member
Joined
Feb 19, 2017
Messages
18
Hello all,

Working on a Footy Performance selection EXCEL 2010 matrix to enable experienced assessors to record player performance and then select a team of performing players.

The formula I am trying to use is not working correctly but I cannot find the error.

'=IFERROR(IF(G20>=OFFSET(K20,,LOOKUP(E20,{"F1","F2","T1","T2","E1","E2","E3","M"},{0,1,2,3,4,5,6,7})),$A$22,IF(G20>=$J$21*OFFSET(K20,,LOOKUP(E20,{"F1","F2","T1","T2","E1","E2","E3","M"},{0,1,2,3,4,5,6,7})),$A$21,$A$20)),"")

Seems Lookup will not look up more than 4 columns to the right, where I need to look at 8 columns. Columns 5,6,7,8, present a blank cell.
Hope someone can assist with corrections to the formula please.
Maybe should be using different functions?
 

Excel Facts

Excel Can Read to You
Customize Quick Access Toolbar. From All Commands, add Speak Cells or Speak Cells on Enter to QAT. Select cells. Press Speak Cells.
the lookup() function works with the array in order, try change your lookup array from

{"F1","F2","T1","T2","E1","E2","E3","M"},{0,1,2,3,4,5,6,7}

to

{E1 E2 E3 F1 F2 M T1 T2} and {4 5 6 0 1 7 2 3}
 
Upvote 0
I have been reading where Arrays require specific ascending order and AlanY, you come up with the solution.

Thank you for speedy assistance.
 
Upvote 0
Further to the above solution, is there a non-Array based and non -VBA. formula for the same data which does not require the cells to be in specific order please?
Maybe using different functions?
 
Last edited:
Upvote 0
you can use a vlookup() instead

Code:
=VLOOKUP(D1,{"F1",0;"F2",1;"T1",2;"T2",3;"E1",4;"E2",5;"E3",6;"M",7},2,0)

or with a table


Book1
ABCDE
1F10E25
2F21
3T12
4T23
5E14
6E25
7E36
8M7
Sheet1
Cell Formulas
RangeFormula
E1=VLOOKUP(D1,$A$1:$B$8,2,0)
 
Upvote 0
Thank you again AllanY.

That still contains and Array within the Vlookup?
Will INDEX MATCH also work? so I don't have to worry about which direction the lookup column is? - or maybe I am over-thinking this?
 
Upvote 0
index/match will also contain array, unless you can use a nested if(), like this

=if(A1="F1",0,if(A1="F2",1,if(etc. etc...)))))

can't really see the benefit though
 
Upvote 0

Forum statistics

Threads
1,224,820
Messages
6,181,155
Members
453,021
Latest member
Justyna P

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