Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chriss Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with excel formula and row referance from another cell 1

Status
Not open for further replies.

ls62

Programmer
Oct 15, 2001
179
US
Hi,

I have a formula =sum('sheeta'!$b$69,'sheeta'!$e$69) and I now need to have the row ($69) change based upon the value of another cell. For example if cell 'a1' has 5 in it then the formula would evaluate to:

=sum('sheeta'!$b$5,'sheeta'!$e$5)

Every time you change the 'a1' cell it would cause the formula's to evaluate differently.

I was thinking something like:

=sum('sheeta'!$b$ & cell("contents",a1), ...)

but it doesn't seem to work.

Can this be done and how?
 
Try
=SUM(Sheeta!$B$5,INDIRECT("Sheeta!$E$"&B1))

My name is John, and I approved this post.

To get the best answers fast, please read faq181-2886
 
anotherhiggins,

Thank you! That works great and is just what I wanted. I figured it was something like that but wasn't sure what to use or what the syntax was.

Thanks again for your quick response. [smarty]

LEE
 
Gald to help!

My name is John, and I approved this post.

To get the best answers fast, please read faq181-2886
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top