Microsoft Office Forums

Go Back   Microsoft Office Forums > >

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #3  
Old 06-17-2014, 08:54 AM
BobBridges's Avatar
BobBridges BobBridges is offline Worksheet defined cell sums Windows 7 64bit Worksheet defined cell sums Office 2010 32bit
Expert
 
Join Date: May 2013
Location: USA
Posts: 700
BobBridges has a spectacular aura aboutBobBridges has a spectacular aura about
Default

The syntax if you already knew the sheet names would be like this:
Code:
=SheetA!H2+SheetB!H2
Since you don't know the sheet names to plug in, you have to get them from C2 and C4, where the user put in the sheet names, and you have to construct a reference using the INDIRECT function, like this:
Code:
=INDIRECT(C2&"!H2")+INDIRECT(C4&"!H2")
The INDIRECT function takes a character string and interprets it as a cell reference, you see. Does this make sense to you?
Reply With Quote
 



Similar Threads
Thread Thread Starter Forum Replies Last Post
Worksheet defined cell sums getting the worksheet name in a cell derohanes Excel 9 02-14-2013 01:29 PM
Worksheet defined cell sums Help with SUMs in tables mhurford Word Tables 1 09-02-2012 03:06 AM
Worksheet defined cell sums Range.Information(wdStartOfRangeRowNumber): Application-defined or Object-defined err tinfanide Excel Programming 2 06-09-2012 10:19 AM
Worksheet defined cell sums Cell formating on Protected worksheet AHB Excel Programming 2 02-27-2012 10:25 AM
click a cell to go to a worksheet victor Excel 0 10-27-2006 02:57 PM

Other Forums: Access Forums

All times are GMT -7. The time now is 10:11 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft