Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default combining cells and array from different sheets into an array to pass to IRR()

I'm trying to combine two cells and and array from a call to OFFSET()
as a single array to pass to IRR(). The two cells are in the current
sheet and the offset call references ranges and cells in a separate
sheet.

If I put everything in the same sheet and make the call
=IRR(($D$49,OFFSET($C$40:$AZ$47,1, 1,1,6),$D$50))
It works fine.

Also, if I make this call from a separate sheet it works:
=IRR((Flows!$D$49,OFFSET(Flows!$C$40:$AZ$47,1, 1,1,6),Flows!$D$50))

However, if I make the following call (where the value of C4 and
Flows!$D$49 are the same):
=IRR((C4,OFFSET(Flows!$C$40:$AZ$47,1, 1,1,6),Flows!$D$50))
it doesn't work. It returns a #VALUE! error. Seems like Excel doesn't
like me combining cells and results across sheets...

Does anyone how to make this work?

Thanks!

  #2   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default combining cells and array from different sheets into an array to p

=IRR((C4,OFFSET(Flows!$C$40:$AZ$47,1, 1,1,6),Flows!$D$50))

Untested, but think we could try it with INDIRECT wrapped around C4:
=IRR((INDIRECT(C4),OFFSET(Flows!$C$40:$AZ$47,1, 1,1,6),Flows!$D$50))
where C4 contains the text: Flows!$D$49
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
" wrote:
I'm trying to combine two cells and and array from a call to OFFSET()
as a single array to pass to IRR(). The two cells are in the current
sheet and the offset call references ranges and cells in a separate
sheet.

If I put everything in the same sheet and make the call
=IRR(($D$49,OFFSET($C$40:$AZ$47,1, 1,1,6),$D$50))
It works fine.

Also, if I make this call from a separate sheet it works:
=IRR((Flows!$D$49,OFFSET(Flows!$C$40:$AZ$47,1, 1,1,6),Flows!$D$50))

However, if I make the following call (where the value of C4 and
Flows!$D$49 are the same):
=IRR((C4,OFFSET(Flows!$C$40:$AZ$47,1, 1,1,6),Flows!$D$50))
it doesn't work. It returns a #VALUE! error. Seems like Excel doesn't
like me combining cells and results across sheets...

Does anyone how to make this work?

Thanks!


  #3   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 3
Default combining cells and array from different sheets into an array to p

Hmmm.. that doesn't work for me. I can't have C4 contain the text
"Flows!$D$49", because I'd essentially be replicating the "Flows" sheet
in the current sheet (there are many cells that I'm trying to do this
for).

The call I need to make is something like:
=IRR((C4, OFFSET(Flows!$C40:$AZ$47,1,1,1,6),Flows!$D$50))

Trying:
=IRR((INDIRECT("C4"), OFFSET(Flows!$C40:$AZ$47,1,1,1,6),Flows!$D$50))
doesn't work either...

any other suggestions??

Max wrote:
=IRR((C4,OFFSET(Flows!$C$40:$AZ$47,1, 1,1,6),Flows!$D$50))


Untested, but think we could try it with INDIRECT wrapped around C4:
=IRR((INDIRECT(C4),OFFSET(Flows!$C$40:$AZ$47,1, 1,1,6),Flows!$D$50))
where C4 contains the text: Flows!$D$49
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
" wrote:
I'm trying to combine two cells and and array from a call to OFFSET()
as a single array to pass to IRR(). The two cells are in the current
sheet and the offset call references ranges and cells in a separate
sheet.

If I put everything in the same sheet and make the call
=IRR(($D$49,OFFSET($C$40:$AZ$47,1, 1,1,6),$D$50))
It works fine.

Also, if I make this call from a separate sheet it works:
=IRR((Flows!$D$49,OFFSET(Flows!$C$40:$AZ$47,1, 1,1,6),Flows!$D$50))

However, if I make the following call (where the value of C4 and
Flows!$D$49 are the same):
=IRR((C4,OFFSET(Flows!$C$40:$AZ$47,1, 1,1,6),Flows!$D$50))
it doesn't work. It returns a #VALUE! error. Seems like Excel doesn't
like me combining cells and results across sheets...

Does anyone how to make this work?

Thanks!



  #4   Report Post  
Posted to microsoft.public.excel.misc
Max Max is offline
external usenet poster
 
Posts: 9,221
Default combining cells and array from different sheets into an array

Sorry, pl dismiss the earlier suggestion.

Ref your orig. post, I wasn't even able to get either
of the expressions below that you mentioned working:
=IRR(($D$49,OFFSET($C$40:$AZ$47,1,1,1,6),$D$50))
=IRR((Flows!$D$49,OFFSET(Flows!$C$40:$AZ$47,1,1,1, 6),Flows!$D$50))

Hang around for better insights from others ..
--
Max
Singapore
http://savefile.com/projects/236895
xdemechanik
---
" wrote:
Hmmm.. that doesn't work for me. I can't have C4 contain the text
"Flows!$D$49", because I'd essentially be replicating the "Flows" sheet
in the current sheet (there are many cells that I'm trying to do this
for).

The call I need to make is something like:
=IRR((C4, OFFSET(Flows!$C40:$AZ$47,1,1,1,6),Flows!$D$50))

Trying:
=IRR((INDIRECT("C4"), OFFSET(Flows!$C40:$AZ$47,1,1,1,6),Flows!$D$50))
doesn't work either...

any other suggestions??

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
adding cells within an array beecher Excel Worksheet Functions 11 August 30th 06 08:29 AM
How to multiply all cells in array by factor rhauff Excel Discussion (Misc queries) 2 March 21st 06 03:01 PM
Can an array be made of discontinuous cells of the same row? vanillawand Excel Discussion (Misc queries) 0 February 3rd 06 11:20 AM
checking that cells have a value before the workbook will close kcdonaldson Excel Worksheet Functions 8 December 5th 05 04:57 PM
Array Brad Excel Worksheet Functions 9 October 17th 05 09:00 PM


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