What is that slash in LOOKUP?

fred3

New Member
Joined
May 1, 2011
Messages
39
I have a formula that works but I don't know how to read the formula:
Code:
=+LOOKUP(2,1/($AZ$2:INDIRECT("AZ"&ROW())<>0))

What the heck is that slash after the 1 in the second argument? What does it do?
I can't find any examples with a slash like this in them...
 

Excel Facts

Formula for Yesterday
Name Manager, New Name. Yesterday =TODAY()-1. OK. Then, use =YESTERDAY in any cell. Tomorrow could be =TODAY()+1.
1 no need for +
=LOOKUP(2,1/($AZ$2:INDIRECT("AZ"&ROW())<>0))
2
($AZ$2:INDIRECT("AZ"&ROW())<>0)
will return an array of
from az2 to whatever row the formula is in so say its in row 5
($AZ$2:INDIRECT("AZ"&ROW())
will be
az2:az5
it then looks to see which values do not = 0
and returns true or false
so you would get eg {true,false,false,true}
use 1/{true,false,false,true}
gives
{1,#DIV/0!,#DIV/0!,1}
lookup 2 at that array
since lookup ignores errors like #DIV/0!it will find the last value that is "
the largest value in the array that is less than or equal to lookup_value." in this case
{1,#DIV/0!,#DIV/0!,1}







,
 
Upvote 0
also i cant see what the purpose of that formula is as it will only return n/a or 1
you need the second part of lookup
=LOOKUP(2,1/($AZ$2:INDIRECT("AZ"&row())<>0),$AZ$2:INDIRECT("AZ"&row()))
even then you wil have problems if the row is less than 2
 
Upvote 0
It was a snippet. The entire cell contents are:
Code:
=IF(SUM(CR54:CW54)<>0,IF(INDIRECT("AU" & LOOKUP(2, 1/($AZ$2:INDIRECT("AZ" & ROW())<>0), ROW($AZ$2:INDIRECT("AZ" & ROW())) - ROW($AZ$2) + 2))=TRUE,BT54,0),0)
and I'd like to get rid of the INDRECT usage.
 
Upvote 0

Forum statistics

Threads
1,215,140
Messages
6,123,270
Members
449,093
Latest member
Vincent Khandagale

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