Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 30
Default SUMIF & INDIRECT Returns #Value!

In the formula below, the reference 'Activity Metrics'!$J$6:$J$143 will shift
one column each month:
SUMIF('Activity Metrics'!$B$6:$B$143,'Team Leader Cross Check'!G$8,'Activity
Metrics'!$J$6:$J$143) Returns 98

I'm trying to automate this with the following formula:
=SUMIF('Activity Metrics'!$B$6:$B$143,'Team Leader Cross
Check'!G$8,INDIRECT(ADDRESS(6,6+MONTH(Index!$C$3), 1,TRUE,"Activity
Metrics")):INDIRECT(ADDRESS(143,6+MONTH(Index!$C$3 )))) Returns #Value!

formula cross-checks:
=MONTH(Index!$C$3) Returns 4
=ADDRESS(6,6+MONTH(Index!$C$3),1,TRUE,"Activity Metrics") Returns 'Activity
Metrics'!$J$6

What have I done wrong? Any help is greatly appreciated.


  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default SUMIF & INDIRECT Returns #Value!

Your INDIRECT formula works ok for me.

You don't need to build the range that way. You can do something like this:

=SUMIF('Activity Metrics'!$B$6:$B$143,'Team Leader Cross
Check'!G$8,INDEX('Activity Metrics$C$6:$Z$143,,6+MONTH(Index!$C$3)))

You haven't provided enough info to be more specific but you'd need to
adjust for the correct range and adjust for the correct offset where you're
doing 6+MONTH.

Maybe you have a column header that defines which column is to be used as
the sum_range? It's be better to match that column header.

--
Biff
Microsoft Excel MVP


"Christi" wrote in message
...
In the formula below, the reference 'Activity Metrics'!$J$6:$J$143 will
shift
one column each month:
SUMIF('Activity Metrics'!$B$6:$B$143,'Team Leader Cross
Check'!G$8,'Activity
Metrics'!$J$6:$J$143) Returns 98

I'm trying to automate this with the following formula:
=SUMIF('Activity Metrics'!$B$6:$B$143,'Team Leader Cross
Check'!G$8,INDIRECT(ADDRESS(6,6+MONTH(Index!$C$3), 1,TRUE,"Activity
Metrics")):INDIRECT(ADDRESS(143,6+MONTH(Index!$C$3 )))) Returns #Value!

formula cross-checks:
=MONTH(Index!$C$3) Returns 4
=ADDRESS(6,6+MONTH(Index!$C$3),1,TRUE,"Activity Metrics") Returns
'Activity
Metrics'!$J$6

What have I done wrong? Any help is greatly appreciated.




  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 30
Default SUMIF & INDIRECT Returns #Value!

Your solution is genius. Thank you!

"T. Valko" wrote:

Your INDIRECT formula works ok for me.

You don't need to build the range that way. You can do something like this:

=SUMIF('Activity Metrics'!$B$6:$B$143,'Team Leader Cross
Check'!G$8,INDEX('Activity Metrics$C$6:$Z$143,,6+MONTH(Index!$C$3)))

You haven't provided enough info to be more specific but you'd need to
adjust for the correct range and adjust for the correct offset where you're
doing 6+MONTH.

Maybe you have a column header that defines which column is to be used as
the sum_range? It's be better to match that column header.

--
Biff
Microsoft Excel MVP


"Christi" wrote in message
...
In the formula below, the reference 'Activity Metrics'!$J$6:$J$143 will
shift
one column each month:
SUMIF('Activity Metrics'!$B$6:$B$143,'Team Leader Cross
Check'!G$8,'Activity
Metrics'!$J$6:$J$143) Returns 98

I'm trying to automate this with the following formula:
=SUMIF('Activity Metrics'!$B$6:$B$143,'Team Leader Cross
Check'!G$8,INDIRECT(ADDRESS(6,6+MONTH(Index!$C$3), 1,TRUE,"Activity
Metrics")):INDIRECT(ADDRESS(143,6+MONTH(Index!$C$3 )))) Returns #Value!

formula cross-checks:
=MONTH(Index!$C$3) Returns 4
=ADDRESS(6,6+MONTH(Index!$C$3),1,TRUE,"Activity Metrics") Returns
'Activity
Metrics'!$J$6

What have I done wrong? Any help is greatly appreciated.





  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 15,768
Default SUMIF & INDIRECT Returns #Value!

You're welcome. Thanks for the feedback!

--
Biff
Microsoft Excel MVP


"Christi" wrote in message
...
Your solution is genius. Thank you!

"T. Valko" wrote:

Your INDIRECT formula works ok for me.

You don't need to build the range that way. You can do something like
this:

=SUMIF('Activity Metrics'!$B$6:$B$143,'Team Leader Cross
Check'!G$8,INDEX('Activity Metrics$C$6:$Z$143,,6+MONTH(Index!$C$3)))

You haven't provided enough info to be more specific but you'd need to
adjust for the correct range and adjust for the correct offset where
you're
doing 6+MONTH.

Maybe you have a column header that defines which column is to be used as
the sum_range? It's be better to match that column header.

--
Biff
Microsoft Excel MVP


"Christi" wrote in message
...
In the formula below, the reference 'Activity Metrics'!$J$6:$J$143 will
shift
one column each month:
SUMIF('Activity Metrics'!$B$6:$B$143,'Team Leader Cross
Check'!G$8,'Activity
Metrics'!$J$6:$J$143) Returns 98

I'm trying to automate this with the following formula:
=SUMIF('Activity Metrics'!$B$6:$B$143,'Team Leader Cross
Check'!G$8,INDIRECT(ADDRESS(6,6+MONTH(Index!$C$3), 1,TRUE,"Activity
Metrics")):INDIRECT(ADDRESS(143,6+MONTH(Index!$C$3 )))) Returns #Value!

formula cross-checks:
=MONTH(Index!$C$3) Returns 4
=ADDRESS(6,6+MONTH(Index!$C$3),1,TRUE,"Activity Metrics") Returns
'Activity
Metrics'!$J$6

What have I done wrong? Any help is greatly appreciated.







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
Help with Sumif and INDIRECT JHL Excel Worksheet Functions 9 January 19th 09 08:43 PM
Is there something like a SUMIF that just returns the info. in a c markholt Excel Worksheet Functions 1 October 29th 08 10:59 PM
Using Indirect in a Sumif Function returns the wrong answer Grahin Excel Discussion (Misc queries) 4 December 21st 07 02:11 PM
indirect returns #REF! regardless of where it is used. Shaz Excel Worksheet Functions 1 December 27th 05 03:28 PM
Sumif range returns #NUM! BAC Excel Worksheet Functions 3 December 6th 04 05:10 PM


All times are GMT +1. The time now is 08:33 AM.

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

About Us

"It's about Microsoft Excel"