Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 131
Default Indirect - error

Hi,

=SUMPRODUCT((Hiren!B4:B1000=B10)*(Hiren!C4:C1000=C 10)*(Hiren!I4:I1000=L1)*Hiren!G4:G1000)

I'm trying above formula with indirect as below but I'm not getting result
from below formula..

Where am I going wrong?

=SUMPRODUCT((INDIRECT("'"&H10&"'!B4:B1000"=B10))*( INDIRECT("'"&H10&"'!C4:C1000"=C10))*(INDIRECT("'"& H10&"'!I4:I1000"=$L$1))*(INDIRECT("'"&H10&"'!G4:G1 000")))


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,298
Default Indirect - error

=SUMPRODUCT( (INDIRECT(H10&"'!B4:B1000")=B10)
*(INDIRECT(H10&"'!C4:C1000")=C10)
*(INDIRECT(H10&"'!I4:I1000")=$L$1)
*(INDIRECT(H10&"'!G4:G1000"))
)



"Kashyap" wrote:

Hi,

=SUMPRODUCT((Hiren!B4:B1000=B10)*(Hiren!C4:C1000=C 10)*(Hiren!I4:I1000=L1)*Hiren!G4:G1000)

I'm trying above formula with indirect as below but I'm not getting result
from below formula..

Where am I going wrong?

=SUMPRODUCT((INDIRECT("'"&H10&"'!B4:B1000"=B10))*( INDIRECT("'"&H10&"'!C4:C1000"=C10))*(INDIRECT("'"& H10&"'!I4:I1000"=$L$1))*(INDIRECT("'"&H10&"'!G4:G1 000")))


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 35,218
Default Indirect - error

A typo warning.

That leading apostrophe was lost in your suggestion, Patrick.

Maybe...

=SUMPRODUCT((INDIRECT("'"&H10&"'!B4:B1000")=B10)
*(INDIRECT("'"&H10&"'!C4:C1000")=C10)
*(INDIRECT("'"&H10&"'!I4:I1000")=$L$1)
*(INDIRECT("'"&H10&"'!G4:G1000")))



Patrick Molloy wrote:

=SUMPRODUCT( (INDIRECT(H10&"'!B4:B1000")=B10)
*(INDIRECT(H10&"'!C4:C1000")=C10)
*(INDIRECT(H10&"'!I4:I1000")=$L$1)
*(INDIRECT(H10&"'!G4:G1000"))
)

"Kashyap" wrote:

Hi,

=SUMPRODUCT((Hiren!B4:B1000=B10)*(Hiren!C4:C1000=C 10)*(Hiren!I4:I1000=L1)*Hiren!G4:G1000)

I'm trying above formula with indirect as below but I'm not getting result
from below formula..

Where am I going wrong?

=SUMPRODUCT((INDIRECT("'"&H10&"'!B4:B1000"=B10))*( INDIRECT("'"&H10&"'!C4:C1000"=C10))*(INDIRECT("'"& H10&"'!I4:I1000"=$L$1))*(INDIRECT("'"&H10&"'!G4:G1 000")))



--

Dave Peterson
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,298
Default Indirect - error

it was supposed not to be there. my indirect worked without -- at last in my
workbook!

"Dave Peterson" wrote:

A typo warning.

That leading apostrophe was lost in your suggestion, Patrick.

Maybe...

=SUMPRODUCT((INDIRECT("'"&H10&"'!B4:B1000")=B10)
*(INDIRECT("'"&H10&"'!C4:C1000")=C10)
*(INDIRECT("'"&H10&"'!I4:I1000")=$L$1)
*(INDIRECT("'"&H10&"'!G4:G1000")))



Patrick Molloy wrote:

=SUMPRODUCT( (INDIRECT(H10&"'!B4:B1000")=B10)
*(INDIRECT(H10&"'!C4:C1000")=C10)
*(INDIRECT(H10&"'!I4:I1000")=$L$1)
*(INDIRECT(H10&"'!G4:G1000"))
)

"Kashyap" wrote:

Hi,

=SUMPRODUCT((Hiren!B4:B1000=B10)*(Hiren!C4:C1000=C 10)*(Hiren!I4:I1000=L1)*Hiren!G4:G1000)

I'm trying above formula with indirect as below but I'm not getting result
from below formula..

Where am I going wrong?

=SUMPRODUCT((INDIRECT("'"&H10&"'!B4:B1000"=B10))*( INDIRECT("'"&H10&"'!C4:C1000"=C10))*(INDIRECT("'"& H10&"'!I4:I1000"=$L$1))*(INDIRECT("'"&H10&"'!G4:G1 000")))



--

Dave Peterson

  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,298
Default Indirect - error

however, having checked - obviously you're correct. Thats bizarre since i
just cut/pasted into the mail the formula that i had, which definitely worked
- i wouldn't have posted otherwise.
However, without the apostrophe, i get the expected #Ref error. Hmmmm

apologies & thanks

Patrick

"Patrick Molloy" wrote:

it was supposed not to be there. my indirect worked without -- at last in my
workbook!

"Dave Peterson" wrote:

A typo warning.

That leading apostrophe was lost in your suggestion, Patrick.

Maybe...

=SUMPRODUCT((INDIRECT("'"&H10&"'!B4:B1000")=B10)
*(INDIRECT("'"&H10&"'!C4:C1000")=C10)
*(INDIRECT("'"&H10&"'!I4:I1000")=$L$1)
*(INDIRECT("'"&H10&"'!G4:G1000")))



Patrick Molloy wrote:

=SUMPRODUCT( (INDIRECT(H10&"'!B4:B1000")=B10)
*(INDIRECT(H10&"'!C4:C1000")=C10)
*(INDIRECT(H10&"'!I4:I1000")=$L$1)
*(INDIRECT(H10&"'!G4:G1000"))
)

"Kashyap" wrote:

Hi,

=SUMPRODUCT((Hiren!B4:B1000=B10)*(Hiren!C4:C1000=C 10)*(Hiren!I4:I1000=L1)*Hiren!G4:G1000)

I'm trying above formula with indirect as below but I'm not getting result
from below formula..

Where am I going wrong?

=SUMPRODUCT((INDIRECT("'"&H10&"'!B4:B1000"=B10))*( INDIRECT("'"&H10&"'!C4:C1000"=C10))*(INDIRECT("'"& H10&"'!I4:I1000"=$L$1))*(INDIRECT("'"&H10&"'!G4:G1 000")))



--

Dave Peterson

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
indirect w/ vlookup = #REF error jatman Excel Worksheet Functions 1 May 30th 08 09:31 PM
help me(indirect function error) tom taol Excel Programming 0 May 23rd 08 06:12 AM
Error when using Indirect dragea Excel Worksheet Functions 5 October 5th 06 07:34 PM
Error Embedding Row() within Indirect() g-boy Excel Worksheet Functions 7 May 8th 05 12:07 AM
INDIRECT function error Anthony Slater Excel Discussion (Misc queries) 3 February 21st 05 06:26 PM


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