lookup 2,1/ over an array of values

jimblimm

Board Regular
Joined
May 11, 2012
Messages
219
i have the following formula
in the formula i am trying to find the last time a value showed


LOOKUP(2,1/('MAIN DATA'!$BT$20:$BV$4000=A11),'MAIN DATA'!$A$20:$A$4000))

max index of bt:bt=a11 bu:bu=a11 bv:bv=a11


for some reason, it is not calculating right

i think i need to use mmulti function but dont know exactly how

i guess i need

index(max('MAIN DATA'!$BT$20:$Bt$4000=A11,'MAIN DATA'!$Bu$20:$Bu$4000=A11,'MAIN DATA'!$Bv$20:$BV$4000=A11 or something
 

Some videos you may like

Excel Facts

Excel motto
Not everything I do at work revolves around Excel. Only the fun parts.

pgc01

MrExcel MVP
Joined
Apr 25, 2006
Messages
19,884
Hi

Try:

=IF(COUNTIF($BT$20:$BV$4000,A11)=0,"Not found!",INDEX($A:$A,MAX(IF($BT$20:$BV$4000=A11,ROW($BT$20:$BV$4000)))))

This is an array formula, you have to confirm it with CTRL-SHIFT-ENTER.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,842
Messages
5,598,396
Members
414,235
Latest member
sucosama

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
Top