View Single Post
  #4   Report Post  
Biff
 
Posts: n/a
Default

Hi!

=LOOKUP(9.99999999999999E+307,INDIRECT("'"&A1&"'!H :H"))


Thanks, it worked! Just one question though: what is the
9.99999999999999E+307 for?


That is the largest numerical value that can be entered into a cell. Since
there is probably a 100% chance that that number will not be found in the
Lookup range, the formula returns the last numeric value in the range. I'm
not sure of the exact technical explanation of why it works that way.

Normally, I would use a "more realistic" lookup value.

Say for example, there is absolutely no way possible that any of your
account balances would ever be as high as 1,000,000.

Then you could use that as the lookup value:

=LOOKUP(1000000,INDIRECT("'"&A1&"'!H:H"))

You could adjust that down to reflect the "reality" of your specific
situation.

Usually when I post this type of formula (which really isn't that often) I
get "scolded" for not using that unrealistic number! <g

"Better to use that unrealistic number, just in case."

I better get flood insurance too, even though I live in the middle of the
Sahara desert ........ just in case! <vbg

Biff

"Pedro Fonseca" wrote in message
om...
Hi there!

So, it sounds like you want to display the current balance of each
account
on one sheet?


Yup... Right on. ;)

I'll bet your sheet names are account numbers or institution names?
Anyhow,
list the sheet names in a range, say A1:An.


Right again... :)

=LOOKUP(9.99999999999999E+307,INDIRECT("'"&A1&"'!H :H"))


Thanks, it worked! Just one question though: what is the
9.99999999999999E+307 for?

Best regards!