A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Formulas with named ranges with 2 or more range areas



 
 
Thread Tools Display Modes
  #1  
Old September 7th, 2004, 01:27 AM
agarwaldvk
external usenet poster
 
Posts: n/a
Default Formulas with named ranges with 2 or more range areas

Hi All


I have a SUMIF() formula (reproduced below for immediate reference)

"=SUMIF(INDEX(Memberships_SBUSouth,,1),"Hosp
only",INDEX(Memberships_SBUSouth,,3))".

This works fine when the named range "Memberships_SBUSouth" contains
one range area e.g Sheet1!A1:C250. However, when the above named range
is expanded to include more than one (1) range areas (realized using
VBA through unionising multiple range areas) like so for example, if
the named range "Memberships_SBUSouth" refers to the range below :-


='[Combined National Monthly
Report.xlt]Memberships'!$B$601:$N$699,'[Combined National Monthly
Report.xlt]Memberships'!$B$106:$N$204


then the formula only gives the values corresponding to the "first" of
the multiple range areas ignoring all subsequent range areas.

Is there a way to get the result using named ranges consisting of
multiple range areas - these range areas may happen to be contiguous
but need not be so as in my example above.

Any assistance shall be highly valued.



Best regards



Deepak Agarwal


---
Message posted from http://www.ExcelForum.com/

  #2  
Old September 7th, 2004, 07:33 AM
Niek Otten
external usenet poster
 
Posts: n/a
Default

HI Deepak,

I suggest you create an area which just duplicates the values in the source
areas into one contiguous area.

--

Kind Regards,

Niek Otten

Microsoft MVP - Excel

"agarwaldvk " wrote in message
...
Hi All


I have a SUMIF() formula (reproduced below for immediate reference)

"=SUMIF(INDEX(Memberships_SBUSouth,,1),"Hosp
only",INDEX(Memberships_SBUSouth,,3))".

This works fine when the named range "Memberships_SBUSouth" contains
one range area e.g Sheet1!A1:C250. However, when the above named range
is expanded to include more than one (1) range areas (realized using
VBA through unionising multiple range areas) like so for example, if
the named range "Memberships_SBUSouth" refers to the range below :-


='[Combined National Monthly
Report.xlt]Memberships'!$B$601:$N$699,'[Combined National Monthly
Report.xlt]Memberships'!$B$106:$N$204


then the formula only gives the values corresponding to the "first" of
the multiple range areas ignoring all subsequent range areas.

Is there a way to get the result using named ranges consisting of
multiple range areas - these range areas may happen to be contiguous
but need not be so as in my example above.

Any assistance shall be highly valued.



Best regards



Deepak Agarwal


---
Message posted from http://www.ExcelForum.com/



 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Reference Cell in Named Range mark1 General Discussion 1 September 7th, 2004 01:15 AM
Dynamic Named Ranges Sam Benson General Discussion 1 August 24th, 2004 09:03 AM
Using Named Ranges with Data validation Kevin General Discussion 3 June 20th, 2004 10:34 PM
Copying Worksheets with Named Ranges Anthony Cravero Worksheet Functions 3 December 19th, 2003 06:05 PM
create array of values returned by named formulas Rob Hick Charts and Charting 4 September 27th, 2003 04:53 AM


All times are GMT +1. The time now is 07:00 AM.


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