Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 34
Default using indirect to sum range

I have a sheet that references data in another sheet within a workbook
in its same corresponding row. For example, for an item in Sheet1 in
row 6 the formula might be:

=Sheet2!F6+Sheet2!G6

Due to the way that the data is loaded (this is part of a complicated
process that I cannot change and I only am able to make updates to my
own sheet) I cannot just define the cell in row 6 to be =Sheet2!
F6+Sheet2!G6 but I can get my desired result by using:

=Indirect("Sheet2!F"&row())+Indirect("Sheet2!G"&ro w())

However, I cannot figure out how to do this when my formula should be
something like:

=Sum(Sheet2!B6:E6)

Any ideas?

  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default using indirect to sum range

Have you tried:

=SUM(INDIRECT("Sheet2!B"&row()&":E"&row()))

?

Hope this helps.

Pete

On Sep 17, 4:18 pm, Edward wrote:
I have a sheet that references data in another sheet within a workbook
in its same corresponding row. For example, for an item in Sheet1 in
row 6 the formula might be:

=Sheet2!F6+Sheet2!G6

Due to the way that the data is loaded (this is part of a complicated
process that I cannot change and I only am able to make updates to my
own sheet) I cannot just define the cell in row 6 to be =Sheet2!
F6+Sheet2!G6 but I can get my desired result by using:

=Indirect("Sheet2!F"&row())+Indirect("Sheet2!G"&ro w())

However, I cannot figure out how to do this when my formula should be
something like:

=Sum(Sheet2!B6:E6)

Any ideas?



  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 34
Default using indirect to sum range

On Sep 17, 11:28 am, Pete_UK wrote:
Have you tried:

=SUM(INDIRECT("Sheet2!B"&row()&":E"&row()))

?

Hope this helps.

Pete

On Sep 17, 4:18 pm, Edward wrote:



I have a sheet that references data in another sheet within a workbook
in its same corresponding row. For example, for an item in Sheet1 in
row 6 the formula might be:


=Sheet2!F6+Sheet2!G6


Due to the way that the data is loaded (this is part of a complicated
process that I cannot change and I only am able to make updates to my
own sheet) I cannot just define the cell in row 6 to be =Sheet2!
F6+Sheet2!G6 but I can get my desired result by using:


=Indirect("Sheet2!F"&row())+Indirect("Sheet2!G"&ro w())


However, I cannot figure out how to do this when my formula should be
something like:


=Sum(Sheet2!B6:E6)


Any ideas?- Hide quoted text -


- Show quoted text -


Clearly not because this works!

Thanks.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 8,856
Default using indirect to sum range

You're welcome, Edward - thanks for feeding back.

I wasn't sure I understood what the problem was.

Pete

On Sep 17, 4:30 pm, Edward wrote:
On Sep 17, 11:28 am, Pete_UK wrote:





Have you tried:


=SUM(INDIRECT("Sheet2!B"&row()&":E"&row()))


?


Hope this helps.


Pete


On Sep 17, 4:18 pm, Edward wrote:


I have a sheet that references data in another sheet within a workbook
in its same corresponding row. For example, for an item in Sheet1 in
row 6 the formula might be:


=Sheet2!F6+Sheet2!G6


Due to the way that the data is loaded (this is part of a complicated
process that I cannot change and I only am able to make updates to my
own sheet) I cannot just define the cell in row 6 to be =Sheet2!
F6+Sheet2!G6 but I can get my desired result by using:


=Indirect("Sheet2!F"&row())+Indirect("Sheet2!G"&ro w())


However, I cannot figure out how to do this when my formula should be
something like:


=Sum(Sheet2!B6:E6)


Any ideas?- Hide quoted text -


- Show quoted text -


Clearly not because this works!

Thanks.- Hide quoted text -

- Show quoted text -



  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 459
Default using indirect to sum range

Nel ups.com,
Edward ha scritto:
I have a sheet that references data in another sheet within a workbook
in its same corresponding row. For example, for an item in Sheet1 in
row 6 the formula might be:

=Sheet2!F6+Sheet2!G6

Due to the way that the data is loaded (this is part of a complicated
process that I cannot change and I only am able to make updates to my
own sheet) I cannot just define the cell in row 6 to be =Sheet2!
F6+Sheet2!G6 but I can get my desired result by using:

=Indirect("Sheet2!F"&row())+Indirect("Sheet2!G"&ro w())

However, I cannot figure out how to do this when my formula should be
something like:

=Sum(Sheet2!B6:E6)

Any ideas?


Hi Edward,

Should be something like this:

=Sum(Indirect("Sheet2!B"&row()&":E"&row()))

(written directly here, so some test is needed...)


--
(I'm not sure of names of menus, options and commands, because
translating from the Italian version of Excel...)

Hope I helped you.


Thanks in advance for your feedback.


Ciao


Franz Verga from Italy
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
Allow EXCEL INDIRECT(ADDRESS()) and INDIRECT(RANGE()) functions Mike Barlow Excel Worksheet Functions 7 May 21st 23 07:42 PM
INDIRECT for range of sheets mr tom Excel Worksheet Functions 6 April 23rd 07 09:13 PM
Indirect Range Referencing jeaton Charts and Charting in Excel 0 February 10th 06 02:25 PM
Indirect Range [email protected] Excel Worksheet Functions 0 September 28th 05 05:01 PM
Indirect range in SUMPRODUCT? BobT Excel Discussion (Misc queries) 2 February 16th 05 08:51 PM


All times are GMT +1. The time now is 06:15 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"