LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 56
Default INDIRECT Function and adding cells across multiple sheets

I have a workbook with multiple sheets and I want to add only numbers
that are less than zero from a particular cell (K12) across sheets.


This approach is not elegant, but it seems to get the right result in Excel 2010.

The column Sheets!B is used as a workspace.

In B1, put
=IF(A1="",0,MIN(0,INDIRECT("'"&A1&"'"&"!K12",TRUE) ))
and copy down as far as the list can ultimatele reach.

Where the answer is to go, put
=SUM(Sheets!B:B)

If a "running total" is required to showing all weekly totals, put this in a Sheets!C1
=SUM(Sheets!B$1:B1)
and copy down. (Another workspace).

If you need each Sheet to contain the total of all the previous sheets, build on Column C by using this:
=INDEX(Sheets!C:C,MATCH(MID(CELL("filename"),FIND( "]",CELL("filename"))+1,255),Sheets!A:A,0)-1)
in any sheet except the first. The MID(...) part privides the tab name of the sheet in which it occurs.

Hope this helps getting started.
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Indirect - Multiple Sheets/Cells Keep It Simple Stupid Excel Worksheet Functions 5 November 8th 07 04:39 PM
Adding a single function onto multiple cells that already have Num J@Y Excel Discussion (Misc queries) 5 January 23rd 07 08:07 PM
Adding Cells from Multiple Sheets Kevin G[_3_] Excel Programming 3 June 1st 05 06:55 PM
Sum Indirect function through multiple sheets Andre Croteau Excel Discussion (Misc queries) 2 May 6th 05 10:44 AM
Need Function for adding rows on multiple sheets... struggling rookie ;) Thanks. Steve Excel Worksheet Functions 6 November 24th 04 12:10 AM


All times are GMT +1. The time now is 11:29 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"