Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 142
Default Vary sheet name & sum across multiple sheets

Hi,

I am using the formula =SUM('1:31'!K51) to get sum across multiple
sheets.

In cell
A1= 1
A2= 31

I want something like.

=SUM('cell(A2):cell(A2)'!K51) in which I can vary values in cells A1 &
A2.
If A1 & A2 are same, it should return one value instead of sum.
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Vary sheet name & sum across multiple sheets

=SUMPRODUCT(N(INDIRECT("'"&ROW(INDIRECT(""&A1&":"& A2))&"'!K51")))

--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Sinner" wrote in message
...
Hi,

I am using the formula =SUM('1:31'!K51) to get sum across multiple
sheets.

In cell
A1= 1
A2= 31

I want something like.

=SUM('cell(A2):cell(A2)'!K51) in which I can vary values in cells A1 &
A2.
If A1 & A2 are same, it should return one value instead of sum.



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 142
Default Vary sheet name & sum across multiple sheets

On Mar 5, 12:47*am, "Bob Phillips" wrote:
=SUMPRODUCT(N(INDIRECT("'"&ROW(INDIRECT(""&A1&":"& A2))&"'!K51")))

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my addy)

"Sinner" wrote in message

...



Hi,


I am using the formula =SUM('1:31'!K51) to get sum across multiple
sheets.


In cell
A1= 1
A2= 31


I want something like.


=SUM('cell(A2):cell(A2)'!K51) in which I can vary values in cells A1 &
A2.
If A1 & A2 are same, it should return one value instead of sum.- Hide quoted text -


- Show quoted text -


Hi Bob,
Worked like a charm : )
I wanna return blank in case both A1 & A2 are blank?


Thx again man.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 10,593
Default Vary sheet name & sum across multiple sheets

=IF(OR(A1="",A2=""),"",SUMPRODUCT(N(INDIRECT("'"&R OW(INDIRECT(""&A1&":"&A2))&"'!K51"))))


--
---
HTH

Bob


(there's no email, no snail mail, but somewhere should be gmail in my addy)



"Sinner" wrote in message
...
On Mar 5, 12:47 am, "Bob Phillips" wrote:
=SUMPRODUCT(N(INDIRECT("'"&ROW(INDIRECT(""&A1&":"& A2))&"'!K51")))

--
---
HTH

Bob

(there's no email, no snail mail, but somewhere should be gmail in my
addy)

"Sinner" wrote in message

...



Hi,


I am using the formula =SUM('1:31'!K51) to get sum across multiple
sheets.


In cell
A1= 1
A2= 31


I want something like.


=SUM('cell(A2):cell(A2)'!K51) in which I can vary values in cells A1 &
A2.
If A1 & A2 are same, it should return one value instead of sum.- Hide
quoted text -


- Show quoted text -


Hi Bob,
Worked like a charm : )
I wanna return blank in case both A1 & A2 are blank?


Thx again man.


Reply
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
add information from multiple sheets into one box on another sheet create button to unhide rows Excel Discussion (Misc queries) 0 January 21st 07 10:01 PM
Summary Sheet help with multiple sheets lacey125 Excel Discussion (Misc queries) 1 September 21st 06 08:40 PM
multiple sheets vs. 1 sheet Wally Excel Worksheet Functions 1 July 1st 05 02:49 AM
Combine multiple sheets into one sheet? Blueluck Excel Discussion (Misc queries) 2 June 8th 05 08:56 AM
one sheet to another, when teh lines vary Jim Excel Worksheet Functions 2 December 11th 04 04:51 AM


All times are GMT +1. The time now is 04:39 AM.

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"