LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Junior Member
 
Posts: 1
Default Using SUM(INDIRECT())

I have the following formula that I'm still in the process of developing:

=IF(G3="Head",SUM(INDIRECT("F"&ROW()&":F"&SMALL(IF ($G$2:$G$1000="Head",ROW($G$2:$G$1000)),COUNTIF($G $2:G3,"Head")+1)-1)),"")

Essentially, it should boil down to: =IF(G3="Head",SUM(F3:F14),"") for example. However, since the range reference is in text I have added the INDIRECT so that it reads SUM(INDIRECT("F3:F14")).

On its own, this works fine but when incorporated into my long function above it doesn't work. I'm wondering whether it's because it's an array function as using the Evaluate Formula tool shows that the formula gets all the way to SUM(INDIRECT({"F3:F14"})) which returns SUM(INDIRECT({#VALUE!})), which in turn returns SUM(INDIRECT(0)), which equals 0.

Can anyone help with a way of getting the sum range in a format that the SUM function will understand?

Thanks.
 
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
Help with INDIRECT Anita Taylor Excel Worksheet Functions 5 March 6th 08 12:50 AM
INDEX("a"&COLUMNS(INDIRECT(A1):INDIRECT(A2)):A30,4) Dave F[_2_] Excel Discussion (Misc queries) 3 September 20th 07 08:36 PM
Indirect? moose0507 Excel Worksheet Functions 1 March 2nd 06 04:29 PM
indirect using name tocguy Excel Worksheet Functions 2 February 24th 06 06:57 AM


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