Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1
Default =(INDIRECT(ADDRESS(ROW(),#))) with SUMPRODUCT returning #VALUE!

=SUMPRODUCT(--(B2:B1000=(INDIRECT(ADDRESS(ROW(),2)))),T2:T1000)
returns #Value!

both
=(INDIRECT(ADDRESS(ROW(),2)))
=(INDIRECT(ADDRESS(2,2)))
alone returns the lookup value from b2:b1000 that i am searching for.


=SUMPRODUCT(--(B2:B1000=(INDIRECT(ADDRESS(2,2)))),T2:T1000)
returns what i need

=SUMPRODUCT(--(B2:B1000=(INDIRECT(ADDRESS(2,2)))),T2:T1000) & " " & ROW()

returns what i need + 2
which is the row im looking to acquire in this example

I need row() or something similar to work because this function will need to
be on every line between 2 and 1000 with the corrosponding row.

any help is appreciated. thanks in advance.

  #3   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,231
Default =(INDIRECT(ADDRESS(ROW(),#))) with SUMPRODUCT returning #VALUE!

"Peo Sjoblom" wrote...
Try

=SUMPRODUCT(--(B2:B1000=N(INDIRECT(ADDRESS(ROW(),2)))),T2:T1000)

....
"Brian Williams" wrote...
=SUMPRODUCT(--(B2:B1000=(INDIRECT(ADDRESS(ROW(),2)))),T2:T1000)
returns #Value!

both
=(INDIRECT(ADDRESS(ROW(),2)))
=(INDIRECT(ADDRESS(2,2)))
alone returns the lookup value from b2:b1000 that i am searching
for.


Never any need to use INDIRECT(ADDRESS(..)). To date, no one has
posted anything that couldn't be done more simply using INDEX, OFFSET
or INDIRECT alone with R1C1 address syntax.

Looks like this would be the formula in some cell in row 2. You could
use

=SUMPRODUCT(--(B2:B1000=INDEX(2:2,2)),T2:T1000)

or if you simply must use INDIRECT,

=SUMPRODUCT(--(B2:B1000=INDIRECT("RC2",0)),T2:T1000)

Both formulas are immune to column insertion or deletion.

  #4   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,231
Default =(INDIRECT(ADDRESS(ROW(),#))) with SUMPRODUCT returning #VALUE!

"Harlan Grove" wrote...
....
=SUMPRODUCT(--(B2:B1000=INDEX(2:2,2)),T2:T1000)

....

Hate it when I notice something just after posting. Why not just use

=SUMIF(T2:T1000,B2)

?

  #5   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 1,231
Default =(INDIRECT(ADDRESS(ROW(),#))) with SUMPRODUCT returning #VALUE!

"Harlan Grove" wrote...
...
=SUMIF(T2:T1000,B2)


Ugh! Make that

=SUMIF(B2:B1000,B2,T2:T1000)



  #6   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default =(INDIRECT(ADDRESS(ROW(),#))) with SUMPRODUCT returning #VALUE

I have multiple conditions i need to satisfy. I took the formula done to the
basic form for troubleshooting, but still need to satisfy 3 conditions in the
future.

I need the formula to be dynamic also because I will be getting the
information from the database.

INDEX didnt work for me.


"Harlan Grove" wrote:

"Harlan Grove" wrote...
...
=SUMIF(T2:T1000,B2)


Ugh! Make that

=SUMIF(B2:B1000,B2,T2:T1000)


  #7   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default =(INDIRECT(ADDRESS(ROW(),#))) with SUMPRODUCT returning #VALUE

This returns 0 instead of an error, and doesnt return the correct value when
i use
N(INDIRECT(ADDRESS(2,2))) returns 0
INDIRECT(ADDRESS(2,2)) return the correct data.

Brian



"Peo Sjoblom" wrote:

Try

=SUMPRODUCT(--(B2:B1000=N(INDIRECT(ADDRESS(ROW(),2)))),T2:T1000)


Regards,

Peo Sjoblom


"Brian Williams" <Brian wrote in message
...
=SUMPRODUCT(--(B2:B1000=(INDIRECT(ADDRESS(ROW(),2)))),T2:T1000)
returns #Value!

both
=(INDIRECT(ADDRESS(ROW(),2)))
=(INDIRECT(ADDRESS(2,2)))
alone returns the lookup value from b2:b1000 that i am searching for.


=SUMPRODUCT(--(B2:B1000=(INDIRECT(ADDRESS(2,2)))),T2:T1000)
returns what i need

=SUMPRODUCT(--(B2:B1000=(INDIRECT(ADDRESS(2,2)))),T2:T1000) & " " & ROW()

returns what i need + 2
which is the row im looking to acquire in this example

I need row() or something similar to work because this function will need
to
be on every line between 2 and 1000 with the corrosponding row.

any help is appreciated. thanks in advance.




  #8   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 3
Default =(INDIRECT(ADDRESS(ROW(),#))) with SUMPRODUCT returning #VALUE!

=SUMPRODUCT(--($B$2 B$6000=INDEX(INDIRECT(ADDRESS(ROW(),2)),1)),$T$2 T$6000)
& " " & ROW()

bam!!!

during evaluate formula i noticed
INDIRECT(ADDRESS(ROW(),2))
was returning an array that had brackets { }
INDIRECT(ADDRESS(2,2))
was returning a value

thanks to both of you for your help.


"Brian Williams" wrote:

=SUMPRODUCT(--(B2:B1000=(INDIRECT(ADDRESS(ROW(),2)))),T2:T1000)
returns #Value!

both
=(INDIRECT(ADDRESS(ROW(),2)))
=(INDIRECT(ADDRESS(2,2)))
alone returns the lookup value from b2:b1000 that i am searching for.


=SUMPRODUCT(--(B2:B1000=(INDIRECT(ADDRESS(2,2)))),T2:T1000)
returns what i need

=SUMPRODUCT(--(B2:B1000=(INDIRECT(ADDRESS(2,2)))),T2:T1000) & " " & ROW()

returns what i need + 2
which is the row im looking to acquire in this example

I need row() or something similar to work because this function will need to
be on every line between 2 and 1000 with the corrosponding row.

any help is appreciated. thanks in advance.

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
Returning Multiple Text or Address Locations jdurrmsu Excel Worksheet Functions 3 February 3rd 06 06:34 AM
INDIRECT(ADDRESS... Across worksheets MikeDH Excel Worksheet Functions 3 August 12th 05 07:37 PM
Indirect and Address in Reference to other sheets MikeDH Excel Worksheet Functions 0 August 11th 05 09:53 PM
Summing a range using INDIRECT & ADDRESS Todd Excel Worksheet Functions 3 June 7th 05 10:53 PM


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