Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default can I test if a variable is a member of an array

I have a very large spreadsheet containing raw data for the whole world. I am
only interested in certain countries, and I have to group the countries into
market groupings, such as Benelux for Belgium, Netherlands and Luxembourg.

I have set up an array containing all the countries required (70 of them),
and several other arrays for each market grouping.

As I read through the spreadsheet, row by row, I want to test if the country
is one that I am interested in. Therefore, it would be best if there was a
function to test if the country is a member of my countries array.

At the moment, I am looping and testing if each country is member1, then
member 2, etc. Therefore, there is a 70-stage loop for each row in the
spreadsheet. And then I test again to see which market grouping they belong
to ...

There must be a much more efficient way of doing this.

Any ideas?

Thanks
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
PivotTable with Member Property - how to subtotal on Member Proper swordsman Excel Programming 0 June 23rd 06 10:01 PM
REPOST: VBA Acessing Member Variable in C# Com AddIn Matthew Wieder[_3_] Excel Programming 0 June 15th 06 06:23 PM
VBA Acessing Member Variable in C# Com AddIn Matthew Wieder[_3_] Excel Programming 1 June 15th 06 04:25 PM
Is member of an array? Shatin Excel Programming 7 January 28th 04 06:17 PM


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