Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 27
Default sumif with nested address

I need help creating a sumif formula with a range that changes. I think I
can use a nested address function, but the formula results in an error.

Here is what i did, please correct where i went wrong:

I have 2 sheets in a workbook.
Sheet 1 is titled raw, and is set up like this:

Week Product a Product b
200639 1,000 500
200640 900 700

Sheet 2 is my summary with the sumif which isn't working as I need it to work
This formula works
200639
Product a =SUMIF(raw!$A$5:$A$401,C$3,raw!$E$5:$E$401)


This formula doesn't work
200639
Product a
=SUMIF(raw!(ADDRESS(MATCH(C3,raw!A:A,0),1)):$A$401 ,C$3,raw!$E$5:$E$401)
***the result of this formula is $A$5 (ADDRESS(MATCH(C3,raw!A:A,0),1))

How do I get the address function that results in $A$5 to be recogized in
the SumIf formula?
Many thanks for your help!
  #2   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 341
Default sumif with nested address

try this. you are missing INDIRECT

=SUMIF(INDIRECT("raw!"&ADDRESS(MATCH(C3,raw!A:A,0) ,1)&":$A$401"),C$3,raw!$E$5:$E$401)
--
Allllen


"alison" wrote:

I need help creating a sumif formula with a range that changes. I think I
can use a nested address function, but the formula results in an error.

Here is what i did, please correct where i went wrong:

I have 2 sheets in a workbook.
Sheet 1 is titled raw, and is set up like this:

Week Product a Product b
200639 1,000 500
200640 900 700

Sheet 2 is my summary with the sumif which isn't working as I need it to work
This formula works
200639
Product a =SUMIF(raw!$A$5:$A$401,C$3,raw!$E$5:$E$401)


This formula doesn't work
200639
Product a
=SUMIF(raw!(ADDRESS(MATCH(C3,raw!A:A,0),1)):$A$401 ,C$3,raw!$E$5:$E$401)
***the result of this formula is $A$5 (ADDRESS(MATCH(C3,raw!A:A,0),1))

How do I get the address function that results in $A$5 to be recogized in
the SumIf formula?
Many thanks for your help!

  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 4,393
Default sumif with nested address

You have left the reader with lots of questions: what is in C3 etc.
But I think you need to convert the text A5 into a cell reference with
INDIRECT
So although I do not really see what you are doing I suggest you try
=SUMIF(INDIRECT("raw!"&ADDRESS(MATCH(C3,raw!A:A,0) ,1)):$A$401,C$3,raw!$E$5:$E$401)
but I cannot test this
--
Bernard V Liengme
www.stfx.ca/people/bliengme
remove caps from email

"alison" wrote in message
...
I need help creating a sumif formula with a range that changes. I think I
can use a nested address function, but the formula results in an error.

Here is what i did, please correct where i went wrong:

I have 2 sheets in a workbook.
Sheet 1 is titled raw, and is set up like this:

Week Product a Product b
200639 1,000 500
200640 900 700

Sheet 2 is my summary with the sumif which isn't working as I need it to
work
This formula works
200639
Product a =SUMIF(raw!$A$5:$A$401,C$3,raw!$E$5:$E$401)


This formula doesn't work
200639
Product a
=SUMIF(raw!(ADDRESS(MATCH(C3,raw!A:A,0),1)):$A$401 ,C$3,raw!$E$5:$E$401)
***the result of this formula is $A$5 (ADDRESS(MATCH(C3,raw!A:A,0),1))

How do I get the address function that results in $A$5 to be recogized in
the SumIf formula?
Many thanks for your help!



  #4   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,688
Default sumif with nested address

Hi!

Try this:

=SUM(E5:INDEX(E5:E401,MATCH(C3,A5:A401,0)))

Biff

"alison" wrote in message
...
I need help creating a sumif formula with a range that changes. I think I
can use a nested address function, but the formula results in an error.

Here is what i did, please correct where i went wrong:

I have 2 sheets in a workbook.
Sheet 1 is titled raw, and is set up like this:

Week Product a Product b
200639 1,000 500
200640 900 700

Sheet 2 is my summary with the sumif which isn't working as I need it to
work
This formula works
200639
Product a =SUMIF(raw!$A$5:$A$401,C$3,raw!$E$5:$E$401)


This formula doesn't work
200639
Product a
=SUMIF(raw!(ADDRESS(MATCH(C3,raw!A:A,0),1)):$A$401 ,C$3,raw!$E$5:$E$401)
***the result of this formula is $A$5 (ADDRESS(MATCH(C3,raw!A:A,0),1))

How do I get the address function that results in $A$5 to be recogized in
the SumIf formula?
Many thanks for your help!



  #5   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 1,688
Default sumif with nested address

Ooops!

I think I have it backwards. Try this:

=SUM(E401:INDEX(E5:E401,MATCH(C3,A5:A401,0)))

Biff

"Biff" wrote in message
...
Hi!

Try this:

=SUM(E5:INDEX(E5:E401,MATCH(C3,A5:A401,0)))

Biff

"alison" wrote in message
...
I need help creating a sumif formula with a range that changes. I think I
can use a nested address function, but the formula results in an error.

Here is what i did, please correct where i went wrong:

I have 2 sheets in a workbook.
Sheet 1 is titled raw, and is set up like this:

Week Product a Product b
200639 1,000 500
200640 900 700

Sheet 2 is my summary with the sumif which isn't working as I need it to
work
This formula works
200639
Product a =SUMIF(raw!$A$5:$A$401,C$3,raw!$E$5:$E$401)


This formula doesn't work
200639
Product a
=SUMIF(raw!(ADDRESS(MATCH(C3,raw!A:A,0),1)):$A$401 ,C$3,raw!$E$5:$E$401)
***the result of this formula is $A$5 (ADDRESS(MATCH(C3,raw!A:A,0),1))

How do I get the address function that results in $A$5 to be recogized in
the SumIf formula?
Many thanks for your help!





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
how can i convert an email address to a web address Arvind Sikar Excel Worksheet Functions 3 October 3rd 06 08:06 PM
Hyperlink Address and SubAddress not concatenating correctly EagleOne Excel Discussion (Misc queries) 0 September 11th 06 03:49 PM
Formular to add to a IP address Sean Excel Discussion (Misc queries) 5 September 9th 06 06:47 AM
Excel email address hyperlink does not update Michael Excel Discussion (Misc queries) 1 August 2nd 05 02:36 PM
How do I find the contents of a cell using the "ADDRESS" function. sweeney Excel Worksheet Functions 2 April 5th 05 03:23 AM


All times are GMT +1. The time now is 12:43 PM.

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"